Re: Two ISPs, One NAT'ed Internal Subnet, Firewall Policys

From: Bill Rugolsky Jr. (brugolsky_at_telemetry-investments.com)
Date: 09/20/04

  • Next message: Thierry Sayegh: "Re: / space usage"
    Date: Mon, 20 Sep 2004 17:02:10 -0400
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    On Mon, Sep 20, 2004 at 03:10:30PM +0100, Daniel Bartlett wrote:
    > We wish to use one connection primarly, if that connection dies switch
    > to the second.

    Presumably you have separate (possibly dynamic) IP addresses from the two
    ISPs, and intend to use the connections for outbound (client) traffic,
    and not inbound (e.g., webserving) traffic? If so, an active/passive
    configuration can be rather simple.

    > Updating IPtables at the same time.

    If the connections to the ISPs are configured to use two different
    interfaces, the netfilter configuration can be static; have separate
    SNAT rules for each interface, and update the default route instead,
    which amounts to

            /sbin/ip route replace default via $GATEWAY dev $DEV

    That's the simple part. The more interesting part is detecting the "dead"
    gateway, for some definition of "dead". In the typical external ADSL
    or cable modem configuration, there can be a failure of communication
    between the Linux firewall and the ADSL/cable router, between the
    ADSL/cable router and the ISP, and between the ISP and the wider Internet
    (usually due to routing screwups, etc., at the ISP). So detecting whether
    the local gateway (i.e., the ADSL/cable router) is alive is of only
    marginal utility; one usually wants to detect reachability of the wider
    Internet, via pinging highly-available sites, or an equivalent method.

    Then there is the issue of DNS resolution. For many clients, if the ISP's
    DNS servers are not working, the route to the internet is again of marginal
    utility. One can configure DNS to use the nameservers of both ISP's, though
    that doesn't help with certain Byzantine failures (that seem to occur in
    real life), where one ISP's nameserver returns nonsense. For this and
    other reasons, it is generally desirable to give priority to the DNS server
    of the ISP that you are routing through, and a more active approach to
    DNS server monitoring is often used.

    > I was wondering if anyone could point me in a direction in this. I
    > have looked at the failoverd daemon but as it's not supported anymore
    > i was thinking there might be somthing newer.

    These topics are oft-discussed on the Linux Advanced Routing and
    Traffic Control (lartc.org) mail list,

            http://mailman.ds9a.nl/pipermail/lartc/

    Julian Anastasov and others have invested considerable effort in
    multiple *active* gateways (in contrast to an active/passive failover
    configuration). See

       http://www.ssi.bg/~ja/#routes

    It is generally agreed that multiple active gateways are easier to
    manage with Julian's patches. The patches effectively allow one to
    statically configure a useful routing policy which otherwise would need
    to be implemented with dynamic configuration in userspace. For your
    simple active/passive failover configuration, the patches are unnecessary.

    A tool that is useful with the multiple-ISP configuration is TCP cutter,

       http://www.lowth.com/cutter/

    which is used to forcibly abort TCP sessions through a NAT gateway.

    Regards,

            Bill Rugolsky

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Thierry Sayegh: "Re: / space usage"

    Relevant Pages

    • Re: Network Configuration hand-holding for ISPs
      ... > on connecting Microsoft operating systems to the internet, ... In recent years I haven't had too much trouble with ISP configurations ... > Configuration tool has ALL the same options that the Microsoft one ... Trying to make a recipe to set up your dial-up connection is fraught ...
      (Fedora)
    • Re: VPN Authentication & Mapping Issue
      ... As I have users using checkpoint securemote... ... Once this connection is established they use the ... Part of this configuration is a DNS address that points the the ... >> the DNS server on your LAN. ...
      (microsoft.public.windows.server.networking)
    • Re: CEICW Fails at Firewall
      ... NIC and internal NIC configuration. ... Plug the one connect to your ISP, named it "ISP Connection". ... More detail information about to how to configure internet access, ...
      (microsoft.public.windows.server.sbs)
    • Re: Two ISPs, One NATed Internal Subnet, Firewall Policys
      ... ISP is a static subnet of 8 IPs the other dynamic. ... failover(and regularly for the dynamic connection). ... the netfilter configuration can be static; ... > DNS server monitoring is often used. ...
      (Fedora)
    • Re: TTL question?
      ... If the backup link is not up, ... initial connection and will then try the other IP. ... if your DNS server is using "round-robin" as to which ... disrupted when you fell-over to the backup ISP. ...
      (comp.dcom.sys.cisco)