Outbound port 80 to remote squid?

Discussion in 'Tomato Firmware' started by Knobee, Dec 27, 2007.

  1. Knobee

    Knobee Network Guru Member

    Greetings, Merry Christmas and Happy New Year to all!

    I'm trying to configure a Tomato/OpenVPN based Buffalo router to pass all outbound port 80 traffic to a remote Squid proxy.

    I'm sure that there is some magic with iptables that will do this, but being a BSD guy and not a Linux guy, I'll take the coward's way out and ask for help. :)

  2. maxzerker

    maxzerker LI Guru Member

    Proxy Server Port 3128

    iptables -t nat -I PREROUTING 1 -s ! -d ! -p tcp -m tcp --dport 80 -j DNAT --to-destination
  3. Knobee

    Knobee Network Guru Member

    Ok, that's if the Proxy is within your NAT'd network -- (Sorry, I should have given more info):

    Local NAT'd network:
    Local router:
    Squid: (note, outside the NAT, password protected) port 3128

    (no, it's not really on 172.16, but I'm obfuscating just a bit)

    BTW, thanks for the quick response..

  4. Knobee

    Knobee Network Guru Member

    And I just discovered (and I should have known this, but didn't think about it) that you can't use authenticated (password protected) Squid in a transparent proxy configuration...

    I have to re-think my entire configuration.

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice