jabelone DD-WRT Novice
Joined: 23 Jul 2013 Posts: 6
|
Posted: Fri Sep 25, 2015 6:29 Post subject: Redirect all traffic to one ip, except for a few computers? |
|
Hi,
I have just flashed dd-wrt (Firmware: DD-WRT v24-sp2 (10/30/08 ) micro) to a linksys WRT54G2 V1. I want to redirect all traffic to one ip, except for a few computers. For example, computers 1 to 4 (on physical ports) should be the only ones that can access everything and don't get redirected. All other computers should be redirected to a certain IP and blocked from everything else. I'm going to be offering a live stream available via WiFi but don't want the public to be able to access the computers running everything. (It doesn't have to be bullet proof as I doubt hackers have any interest)
I tried the following commands but they don't appear to be doing anything and I don't think they're saving. The command Code: | iptables -t filter -n -L | shows only Code: | Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination |
These are the commands I have tried just to block access. My logic being if any packets come from these computers, allow them, if anyone else is trying to access them, deny it.
Code: | iptables -I FORWARD -s 192.168.1.20 ACCEPT
iptables -I FORWARD -s 192.168.1.21 ACCEPT
iptables -I FORWARD -s 192.168.1.22 ACCEPT
iptables -I FORWARD -s 192.168.1.23 ACCEPT
iptables -I FORWARD -d 192.168.1.20 DROP
iptables -I FORWARD -d 192.168.1.21 DROP
iptables -I FORWARD -d 192.168.1.22 DROP
iptables -I FORWARD -d 192.168.1.23 DROP |
|
|