Quantcast
Channel: SNBForums
Viewing all articles
Browse latest Browse all 94791

Trying to connect via a proxy with IP tables- but stuck

$
0
0
Sorry if this has been discussed before - but I have been trying for hours with various options to connect to a proxy server, I have put the following in my jffs/scripts/firewall-start file:

Code:
PROXY_IP=87.246.54.12
PROXY_PORT=3128
LAN_IP=`nvram get lan_ipaddr`
LAN_NET=$LAN_IP/`nvram get lan_netmask`

/usr/sbin/iptables -t nat -A PREROUTING -i br0 -s $LAN_NET -d $LAN_NET -p tcp --dport 80 -j ACCEPT
/usr/sbin/iptables -t nat -A PREROUTING -i br0 -s ! $PROXY_IP -p tcp --dport 80 -j DNAT...
Trying to connect via a proxy with IP tables- but stuck

Viewing all articles
Browse latest Browse all 94791

Trending Articles