Skip to main content

Thread: iptables routing through proxy


i'm trying iptables route traffic through proxy if i'm connected specific subnet, did setup prerouting nothing happen, counters show zeros (iptables -t nat -vn -l). before using proxy should ssh tunnel setup http://embraceubuntu.com/2006/12/08/...cure-browsing/
php code:
iptables -t nat -a prerouting -p tcp -s $subnet-proxy --dport 80  -m state --state new,established -j dnat --to 127.0.0.1:9999 
is there i'm missing, default nat policy prerouting, input, output, forward, postrouting accept. should more thing added, haven't made more changes iptables except 1 above. normal iptables (iptables -vn -l) allow loopback should accept packages.

maybe should @ redirect target.

anyhoo, in experience, easiest ways route traffic 'route' (surprise!) , 'socat'.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Security [ubuntu] iptables routing through proxy


Ubuntu

Comments

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

uppercase letters in url - Joomla! Forum - community, help and support

Joomla! Update is not offering Joomla 3 - Joomla! Forum - community, help and support