I would like to force transparently web traffic destined only for a certain ip address eg 1.1.1.1 to go through the proxy 192.168.0.1 port 8080. Looking at the wiki this can be done with ip tables, what would the appropriate rule be, if not this what?
The proxy is running on the router.
iptables -I PREROUTING -t nat -p udp -s `nvram get lan_ipaddr`/`nvram get lan_netmask` ! -d `nvram get lan_ipaddr`/`nvram get lan_netmask` --d 1.1.1.1 --dport 80 -j DNAT --to-destination `nvram get lan_ipaddr`:8080
thanks
The proxy is running on the router.
iptables -I PREROUTING -t nat -p udp -s `nvram get lan_ipaddr`/`nvram get lan_netmask` ! -d `nvram get lan_ipaddr`/`nvram get lan_netmask` --d 1.1.1.1 --dport 80 -j DNAT --to-destination `nvram get lan_ipaddr`:8080
thanks
Last edited: