Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Forward 80 traffic

    Hi, How can I forward all my http and https traffic to my transparent proxy? I'm not able to do this at router level right now, so I need to know how to do this from my local box.

  2. #2
    Linux Newbie
    Join Date
    Feb 2008
    Bangalore, India
    Please always post your host, os details. it help us to suggest platform specific solutions.

    Which os are you using. ? Are you using squid to setup transparent proxy?

    iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
    Registered Linux User: #476440

  3. #3
    I'm running ubuntu hardy, yes squid as my proxy on port 80. My squid is running on another server, running debian, so I think I am looking for basically the command you gave, except I need to be able to put in a ip for another server.

    iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to
    iptables v1.3.8: IP address not permitted


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts