Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Andrew Smith" <nfml@k1k2.com>
To: netfilter@lists.netfilter.org
Subject: Re: Netfilter and multiple internet connections
Date: Wed, 16 Oct 2002 07:22:16 +1000 (EST)	[thread overview]
Message-ID: <34894.192.168.7.14.1034716936.squirrel@iw.k1k2.com> (raw)
In-Reply-To: <00d701c27441$c9578e90$0100a8c0@obsidian>

> Hello,
> 
> I have a kernel 2.4.19 machine running netfilter (1.2.7a) and
> performing NAT for my internal network.  The machine has two internet
> connections, one ADSL and one via a cable provider.  I select the
> provider by changing the default gateway at the netfilter machine.
> 
> The strange thing I noticed:  when I am using cable as the default
> gateway, my firewall ruleset shows the multicast query the provider's
> router is sending me on a regular base.  But when I change the default
> gateway to direct all outgoing traffic via the ADSL link, there are no
> more log entries showing the multicast query over the cable modem.
> 
> Although when I dump the packets on the cable interface, I do see the
> Multicast queries.  The firewall ruleset stays the same.  I compared
> the loaded version, only different in packet counters.
> 
> I suspect one of the kernel parameters (/proc/sys/net/...) influences
> this behaviour.  But I don't know which one.
> Or is this behaviour netfilter specific?
> Do the packets which netfilter doesn't see get further into my machine?
>  Or are they dropped by the kernel?
> 
> Thanks,
> Jan

My guess, based on how my dual ADSL connection works, is that you will
need an extra route to send out the replies to the cable modem supplier
via the cable modem

Assume Cable is NETC and ADSL is NETA
If your default route sends everything out NETA, then even anything
that "should" be sent to the cable modem provider via NETC will go
out NETA
(e.g. cable here in Australia on Telstra requires a heartbeat sent
back to Telstra and that MUST go out the Telstra connection)

Also, if both connections are masqueraded then anything that goes out
NETA will say it is from an IP address provided by your ADSL provider
and thus will also be the wrong source for any "connection keep-alive"
traffic

As far as I understand also - it is common practice in the USA to use
egress filters that stop you from sending data out the wrong connection
(this is only relevant if either connection is not masqueraded)
- so you will need to check that also
(my ISP's in Aus don't do this - lucky me - no need for iproute2 :-)

Hope there is something here that helps you

-- 
-Cheers
-Andrew

MS ... if only he hadn't been hang gliding!



  reply	other threads:[~2002-10-15 21:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-15 11:55 Netfilter and multiple internet connections Jan
2002-10-15 21:22 ` Andrew Smith [this message]
2002-10-15 23:42   ` Jan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=34894.192.168.7.14.1034716936.squirrel@iw.k1k2.com \
    --to=nfml@k1k2.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox