All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesse Molina <jesse@opendreams.net>
To: netfilter@vger.kernel.org
Subject: Re: How do we arp for NAT?  Secondary IPs, proxy arp? something else?
Date: Sun, 24 May 2009 14:15:06 -0700	[thread overview]
Message-ID: <4A19B8DA.8020108@opendreams.net> (raw)
In-Reply-To: <20090524164956.6f3fa24e@catlap>


Assume we have no control over the services -- they pick any old IP (and 
I assure you, they do, this isn't just academic) from that public-facing 
IP physical interface and start using ephemeral ports, which then can 
conflict with RPC or whatever for the SNAT/DNAT host that the IP is 
supposed to exclusively support.

Furthermore, let's say that an upstream firewall counts packets from 
source/destination IPs for the purposes of auditing traffic.  By a local 
service on the GNU/Linux firewall using these IPs that they are not 
supposed to, it creates the false illusion that the host for which the 
IP is supposed to be exclusively used for is sending/receiving traffic. 
  If we had such upstream filtering going on, this could even 
permit/deny traffic unintended from policy.

There might be some other unintended consequences that I've not thought 
of.  Either way, it just seems wrong that there isn't a way to do this 
if GNU/Linux is going intended to be used as a modern fully featureless 
firewall that can perform NAT/PAT.



M**** K**** wrote:
> Hello,
> 
>> The problem with this is that the firewall itself runs some services
>> and they have the potential to use these secondary IPs as their
>> ...
>> It seems like using these secondary addresses is not the right thing to
>> do.
> 
> One non-invasive approach is to launch local services on firewall box
> specifying bind address (0.0.0.0 is default and binds to all
> addressess).
> 
> Method mentioned by Tore Anderson is the cleanest way out, but you'd
> have to persuade your upstream provider to route a subnet of public IPs
> throu your firewall box. This way you wouldn't have to assing secondary
> addresses for SNAT/DNAT to work.
> 
> Cheers,

-- 
# Jesse Molina
# Mail = jesse@opendreams.net
# Page = page-jesse@opendreams.net
# Cell = 1.602.323.7608
# Web  = http://www.opendreams.net/jesse/



  parent reply	other threads:[~2009-05-24 21:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-24 10:37 How do we arp for NAT? Secondary IPs, proxy arp? something else? Jesse Molina
2009-05-24 11:19 ` Tore Anderson
2009-05-24 21:02   ` Jesse Molina
2009-05-24 21:55     ` Tore Anderson
2009-05-24 23:27     ` Mike Wright
2009-05-25  9:14     ` Pascal Hambourg
2009-05-29  8:09       ` Jesse Molina
2009-06-12  7:12       ` Jesse Molina
     [not found] ` <20090524164956.6f3fa24e@catlap>
2009-05-24 21:15   ` Jesse Molina [this message]
2009-05-25  4:51 ` Robert Nichols
2009-05-25  7:21 ` Покотиленко Костик

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=4A19B8DA.8020108@opendreams.net \
    --to=jesse@opendreams.net \
    --cc=netfilter@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.