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

    transparent squid

    I want to configure transparent squid and dhcp on RHEL5.3 How will I do it ? need details(step by step ) DHCP configured properly and it's assigning IP. But in squid I am unable to configure transparent.

  2. #2
    It applies for Squid 3

    #vi /etc/squid.conf

    search and locate http_port

    http_port 3128 transparent

    save and restart squid.

    iptables -t nat -A PREROUTING -i ethx(wan interface) -p tcp --dport 80 -j DNAT --to wan_ip:3128
    iptables -t nat -A PREROUTING -i ethx(lan interface) -p tcp --dport 80 -j REDIRECT --to-port 3128

    #service iptables save

    #service iptables restart

Posting Permissions

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