Redirecting all traffic through HTTP proxy using iptables
I would like to redirect all traffic to a known HTTP proxy my ISP owns and which i have access to it.
Is this possible via IPTABLES?
If yes, could you give me a hint on the rules?
Thanks in advance.
What actually you want to do ..??
and what is your network map...??
No, you can only redirect HTTP traffic via HTTP proxy, Iptables will not add the CONNECT line that is required forward non-HTTP traffic, and can not redirect IPv6 traffic.
Something like this should work:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-destination proxy.example.com
|All times are GMT -5. The time now is 07:43 AM.|