Installing poptop RAS and Squid on one box

Discussion in 'Installation/Configuration' started by freesqrt, Dec 14, 2009.

  1. freesqrt

    freesqrt New Member

    Hi guys,

    I've just installed a poptop VPN RAS on a machine. For monitoring purpose, I had to set up a squid on the same machine. but unlike to normal setup that port 80 traffic redirected to port 3128 in squid, here I can not redirect web traffic to port 3128!!!.
    I try rules such as:

    -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
    and
    -A PREROUTING -i ppp+ -p tcp --dport 80 -j REDIRECT --to-port 3128

    in iptables, but no success!!!

    does anyone knows about setting the right rule(s) for this situation?

    Thank you all,
     
  2. freesqrt

    freesqrt New Member

    I found it!!!!!!!!!!!!!!!!!

    Hey,

    I found it as bellow rules:

    -A PREROUTING -i ppp+ -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.1.1:3128
    -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128

    that 192.168.1.1 is the internal IP on the squid.

    Good lock,
     

Share This Page