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

    iptable and redirect

    i have linux server 7.2 with squid as proxy server, ihave configured two network card on my linux machine
    one with external ip i.e isp and one with internal i.e lan ip i have setup iptable for routing.
    The client uses internal ip as gateway so they can use messenger etc but i want all the http i.e port 80 request to be redirect on my local squid proxy port 3128 how can i do it.
    bcoz i m authenticating my users with squid ncsa..
    plz help.

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Täby, Sweden
    Add a rule with the REDIRECT target, like this:
    iptables -t nat -A PREROUTING -p tcp -s --dport 80 -j REDIRECT --to-port 3128

Posting Permissions

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