IP table commands on dd wrt not working

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
hsyeda
DD-WRT Novice


Joined: 16 Feb 2017
Posts: 6

PostPosted: Wed Mar 01, 2017 11:31    Post subject: IP table commands on dd wrt not working Reply with quote
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?
Sponsor
hsyeda
DD-WRT Novice


Joined: 16 Feb 2017
Posts: 6

PostPosted: Wed Mar 01, 2017 18:04    Post subject: Ip commands Reply with quote
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
hsyeda
DD-WRT Novice


Joined: 16 Feb 2017
Posts: 6

PostPosted: Wed Mar 01, 2017 18:31    Post subject: Reply with quote
Thanks mate. So I connect one device my lan and one by wan ... Should It work ?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum