Posted: Mon Nov 06, 2006 22:03 Post subject: iptables
I have DD-WRT v23 SP2 installed using chillspot which is assigned 192.168.182.0/24. I note that the users on the wlan can still gain access to some web-gui that I don't want them to access. ie 192.168.1.1 and 192.168.0.1. How can I block these addresses using command shell?
under Administration -> Commands
type in the iptable commands
Then save firewall and they should appear under your firewall script _________________ EA6900 DD-WRT v3.0-r48305 std
EA6900 FreshTomato 2022.1
DIR825 B1 DD-WRT v3.0-r30949 std
retired:
WRT54GL v1.1 DD-WRT v24-SP2 vpn - build 10550
WRT610N v1 DD-WRT v24-preSP2 - build 14929 mega
under Administration -> Commands
type in the iptable commands
Then save firewall and they should appear under your firewall script
Thanks.. Now if I understand things, say I want to add block port 25 from 192.168.182.0/24 I would use the following:
iptables -I FORWARD 2 -s 192.168.182.0/24 -p tcp --dport 25 -j DROP or should it be
iptables -I FORWARD 2 -s 192.168.182.0/24 -d anywhere -p tcp --dport 25 -j DROP