Posted: Wed Mar 01, 2017 11:31 Post subject: IP table commands on dd wrt not working
I have set up a local network using dd wrt router.My question is that I have tried to run IP table commands on my dd wrt but it is not working. It shows that the rules have been inserted to the chains but it doesn't follow the rules for local traffic. I have tried same commands on my laptop and they are working fine.Can you please suggest that where I am wrong?
Posted: Wed Mar 01, 2017 18:04 Post subject: Ip commands
I am trying these commands which Deny access to a specific IP address (192.168.1.110) which I found on the official website (https://www.dd-wrt.com/wiki/index.php/Iptables_command#Deny_access_to_a_specific_IP_address)
- iptables -I FORWARD -d 192.168.1.110 -j DROP (K24 Only)
- iptables -I FORWARD 1 -d 192.168.1.110 -j DROP (K26 and K3.x)
With forward chain I also tried with NAT's PREROUTING, POSTROUTING and OUTPUT, but nothing seems to work and I use the command iptables -L to list all the rules it shows the rules but they seems not to be effective.
P.S: I am in local network there is no traffic from the outer network and My machine IP is 192.168.1.149