Quantcast
Channel: Tomato Firmware
Viewing all articles
Browse latest Browse all 11025

Iptables troubles

$
0
0
Hello everybody !

I have some issues with using iptables.

I currently have two separated vlans on my router. They're working as intended. I want to be able to let only one PC of a vlan to communicate with the other subnetwork.

I added this command to the firewall script but it doesn't seem to work.
iptables -I FORWARD -s 192.168.1.10 -o vlan1 -j ACCEPT;
-------------------------------

Here are my vlan configs :

vlan1: 192.168.2.0/24
vlan3: 192.168.1.0/24

Here is my full firewall script :...

Iptables troubles

Viewing all articles
Browse latest Browse all 11025

Trending Articles