Objective: Don't allow two hosts connected to my wrt54g to share files using windows file sharing. A little research says this can be done by blocking ports 135-139 and 445. One host is plugged into port 1 and another is plugged into port 2.
I've adding the following two lines to the firewall script:
iptables -A FORWARD -i br0 -p tcp --dport 135:139 -j DROP
iptables -A FORWARD -i br0 -p tcp --dport 445 -j DROP
These two lines are right before this standard line which lets all traffic pass:
iptables -A FORWARD -i br0 -o br0 -j ACCEPT
I've re-run the script and also rebooted the router and I'm still able to fileshare between the two hosts. Can anybody shed some light here?
(Last edited by fizgig on 17 Jun 2005, 18:50)
