Posted: Thu Dec 24, 2015 10:46 Post subject: Route only specific IP addresses to proxy server
Hi
I've got a "transparent" proxy successfully set up on a DD-WRT router that sends all port 80 traffic to the proxy, using the default proxy firewall script from the dd-wrt wiki.
I want to modify the script, so it only redirects specific IP addresses to the proxy and lets all other IP addresses through as normal.
I've done lots of googling and came across this, which appears to do the reverse of what I want (it allows specific IP addressses through and redirects everything else to the proxy):
Since I have lots of IP addresses I want to bypass the proxy and only two IP addresses I want to send to the proxy, it'd be more sensible to do the reverse of the script, so it specifies those that are sent to the proxy only.
The only problem is, even aafter googling, I don't understand how to achieve this. Can any one help?
FYI, the usercase is, I have two kids (3 & 5) who are about to get (tomorrow!) some old tablets and I will be using privoxy and e2guardian to filter their web traffic. I know eventually they can spoof their IP address to bypass the proxy, but that is a problem to face in 5 years
Many thanks for the response. To confirm, the set up is currently working using the following script - sending ALL traffic to the proxy for ALL IP addresses:
Code:
#!/bin/sh
PROXY_IP=192.168.1.10
PROXY_PORT=3128
LAN_IP=`nvram get lan_ipaddr`
LAN_NET=$LAN_IP/`nvram get lan_netmask`
Hi - so, from what I see, I simply use -s to specify the source IP addresses for the two machines in question. Awesome, I'll give it a whirl, many thanks and merry xmas