Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    14

    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
    Location
    Bangalore, India
    Posts
    112
    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?

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

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Posts
    14
    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 192.168.1.88
    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
  •