Wednesday, 15 September 2010

ddwrt iptables issue - I want to forward all traffic to an external proxy -



ddwrt iptables issue - I want to forward all traffic to an external proxy -

i have external squid 3 proxy server in florida. in michigan. want tunnel traffic through router proxy server in florida. sure need iptables not getting it. have read ddwrt transparent proxy wiki , problem proxy server not on same subnet - it's external public ip. there tutorial out there can help me improve understand this?

my router ip 192.168.1.1 , proxy 69.29.x.x

i tried this:

proxy_ip=69.29.x.x proxy_port=6000 lan_ip=`nvram lan_ipaddr` lan_net=$lan_ip/`nvram lan_netmask` iptables -t nat -a prerouting -i br0 -s $lan_net -d $lan_net -p tcp --dport 80 -j take iptables -t nat -a prerouting -i br0 -p tcp --dport 80 -j dnat --to $proxy_ip:$proxy_port iptables -t nat -i postrouting -o br0 -s $lan_net -d $proxy_ip -p tcp -j snat --to $lan_ip iptables -i forwards -i br0 -o br0 -s $lan_net -d $proxy_ip -p tcp --dport $proxy_port -j take

internet works lan ports not redirected transparently squid proxy server. not understand above. got http://phinfinity.com/2012/09/20/setting-up-a-transparent-pass-through-proxy-with-iptables/

proxy external tunnel

No comments:

Post a Comment