RE: Multi-Homed Routing

From: Sten Daniel Sørsdal (sten.daniel.sorsdal_at_wan.no)
Date: 08/30/03

  • Next message: Mark Radabaugh: "Re: Multi-Homed Routing"
    Date: Sat, 30 Aug 2003 05:07:46 +0200
    To: "Thomas Dwyer" <tom@dwyers.ca>, <freebsd-isp@freebsd.org>
    
    

    >
    > I have a FreeBSD box for hosting as well as a Gateway for a LAN.
    >
    > I have recently added a 2nd Internet source (for redundancy)
    > and I want to know how to make FreeBSD choose a primary
    > outbound internet source, and chose the other if the primary is down?

    There has been lots of talk about this, most will suggest doing a BGP solution.
    BGP would be the more correct way of doing it.
    Automatic routing feeds usually cost money and then often lots of money.

    To achieve BGP feeds for both ISPs you would need to (over simplified):

    1. Get an AS number that are in great shortage, so it's a real pain and
       usually cost money, because you cant do it directly but have to go
       through someone who already have an AS number.

    2. You need to apply for your own address range from your LIR.

    3. Upgrade your connections to BGP peering connections at both your isp's.
       which usually costs ALOT more than your regular internet connections.
       You might have to hire or contract someone to configure this, make sure
       they are available after it's configured because like everything else
       it breaks.

    4. quite possibly have to upgrade your server to handle 2 full bgp feeds
       and hire someone to manage it. (It -does- break, like everything else)

    Now all this sounds easy, but is virtually unattainable for anyone but
    the ones with really deep pockets.

    However.

    You could achieve almost the same effect by using a script to
    check if both gateways are up and if one goes down it automatically
    changes the default route to the working ISP.
    Then automatically adjust your DNS pointers to the new ip address(es).

    Your public ip address(es) will change, and hence some people wont be
    able to reach your site until their DNS's are updated. Some people have
    caching DNS's that wont expire a record for a long time to not generate
    alot of traffic and wont reach your site at all.

    If you are -lucky- and your ISP's suck (for not doing source filtering)
    you could use both pipes for uploads but only one for download.
    Consult the archives.

    >
    > Am I correct to assume that FreeBSD will automatically return
    > incoming requests back through the interface that it arrived on?
    >
    Not necessarily, this is a routing issue in which you only control
    the outgoing bit. In short it will go where the routes point.
    The routing/forwarding engine in FreeBSD works on a packet
    by packet basis (afaik, and a general advantage if you ask me).

    - Sten
    _______________________________________________
    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: Mark Radabaugh: "Re: Multi-Homed Routing"

    Relevant Pages

    • Re: ISPs?
      ... How does FreeBSD with $preferred_BGP_daemon scales on IX with dozens or hundred ... Our border routers run Quagga but we are in the ... The quagga version we use get's real busy if one of our BGP ... Have you tried going SMP so one CPU can dio the BGP thread and the other ...
      (freebsd-isp)
    • Re: ISPs?
      ... We do use it for routing, using FreeBSD, booting from flash, running completely in RAM. ... Our border routers run Quagga (bgp and ospf) but we are in the process of moving to OpenBGPD / OpenOSPFD. ...
      (freebsd-isp)
    • Re: netflow v5 - src AS/dst AS
      ... A> bgp implementation quagga project work on isis ospf ospf6 ... A> bgp and most of freebsd routers is used for IGP not for BGP ...
      (freebsd-net)
    • Re: ISPs?
      ... and not really for routing (BGP, OSPF/ISIS etc.), right? ... Although we have a hosting arm that uses FreeBSD. ... FreeBSD/Quagga (BGP, OSPF) for our IPv4 and IPv6. ...
      (freebsd-isp)
    • Re: D-Link DSL-300T
      ... >> ADSL connection. ... I've got FreeBSD 4.10 running as a gateway at home. ... > configuration, how do you access the modem for configuration and ...
      (comp.unix.bsd.freebsd.misc)