Re: Tranparent Proxy

From: Hugh Blandford (hugh_at_island.net.au)
Date: 06/19/03

  • Next message: Troy Settle: "List dead"
    To: "apellido jr., wilfredo p" <hazecast@yahoo.com>
    Date: Thu, 19 Jun 2003 12:07:49 +1000
    
    

    Hi,

    I had a bit of sweat and tears over this but it turned out to be easy in the
    end.

    To create the gre tunnels you will need to have:

    pseudo-device gre

    in your kernel along with:

    options IPFIREWALL
    options IPFIREWALL_FORWARD

    assuming that your proxy server is 192.168.1.37 and the routers interface is
    192.168.1.34 I setup the following entries in rc.local. The main thing that
    caused me problems was that some GRE packets come from a loopback interface
    and some come from the LAN interface facing the proxy server. This is why I
    had to create two GRE tunnels and two ipfw rules. Assume the loopback is
    10.11.44.254

    You can either run tcpdump to find out what GRE traffic is being sent to
    your proxy or alternatively you could find it being used by sh ip wccp

    Global WCCP information:
        Router information:
            Router Identifier: 10.11.44.254
            Protocol Version: 1.0

    ifconfig gre0 create
    ifconfig gre0 192.168.1.37 10.20.30.40 netmask 255.255.255.255 link1 tunnel
    192.168.1.37 10.11.44.254 up
    ifconfig gre1 create
    ifconfig gre1 192.168.1.37 10.20.30.41 netmask 255.255.255.255 link1 tunnel
    192.168.1.37 192.168.1.34 up

    the 10.20.30.40 & 10.20.30.41 addresses are dummies to avoid problems with
    GRE endpoints being on the same network. Since the GRE traffic is just one
    way from the router to the proxy it doesn't matter what address you put in
    there.

    Lastly I setup the following IP firewall rules (I have configured squid as
    per the FAQ Ch 17? and have squid listening on port 80)

    allow ip from 192.168.1.37 to any
    fwd 127.0.0.1 tcp from any to any 80 in recv gre0
    fwd 127.0.0.1 tcp from any to any 80 in recv gre1
    allow ip from any to any

    Hope that helps, feel free to contact me if you need more help.

    Hugh

    ----- Original Message -----
    From: "apellido jr., wilfredo p" <hazecast@yahoo.com>
    To: <freebsd-isp@freebsd.org>
    Sent: Wednesday, June 18, 2003 11:22 PM
    Subject: Tranparent Proxy

    > does anyone tried to configure Tranparent proxy using
    > gre tunneling between CISCO router <---WCCP--->
    > FreeBSD 4.8?
    >
    > =====
    > If you can't hear me, it's because i'm in parentheses. [ apellido jr.,
    wilfredo p. ]
    >
    > __________________________________
    > Do you Yahoo!?
    > SBC Yahoo! DSL - Now only $29.95 per month!
    > http://sbc.yahoo.com
    > _______________________________________________
    > freebsd-isp@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    > To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
    >

    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Troy Settle: "List dead"

    Relevant Pages

    • Re: Problem with large pings with dont fragment set
      ... > pings with the DF bit set over a GRE tunnel. ... I don't know about GRE tunnels but they very likely add ... > the MTU on the tunnel interface is 552. ...
      (comp.os.linux.networking)
    • Re: Carry layer 2 ethernet between vlans over an IP network, anyone?
      ... IP network (dlsw, l2tp, l2tpv3, possibly gre) but none of them, as far ... I suspect that DLSW+ recognises and passes ONLY Netbios and SNA. ... You should look at the interface command "xconnect". ... Connected to other 6500 by arbitrary IP network. ...
      (comp.dcom.sys.cisco)
    • RE: GRE TESTING - newbie
      ... Talking about GRE tunnels... ... guides/howtos on setting up GRE tunnels on cisco routers.. ... other than the intended recipient is prohibited. ... anti-virus service working around the clock, around the globe, visit: ...
      (Security-Basics)
    • Re: GRE Tunnels
      ... > does anybody have some information about GRE tunnels in Solaris 2.8? ... > Is there some support by the kernel for GRE and where can I find some ... there's no support for that. ...
      (comp.unix.solaris)
    • Re: 6.3(5) pppoe & pptp on outside interface
      ... interface of my 501 running 6.3 ... PPPoE and PPTP both require forms of GRE. ...
      (comp.dcom.sys.cisco)