All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Harald Welte <laforge@netfilter.org>,
	Netfilter Development Mailinglist
	<netfilter-devel@lists.netfilter.org>
Subject: Re: MASQUERADE + DHCP problem
Date: Mon, 12 Sep 2005 01:57:22 +0200	[thread overview]
Message-ID: <4324C462.9040804@trash.net> (raw)
In-Reply-To: <1126481675.9832.3.camel@localhost.localdomain>

Rusty Russell wrote:
> On Sun, 2005-09-11 at 17:07 +0200, Patrick McHardy wrote:
> 
>>2) Add a special hack to masquerade to handle DHCP while no
>>   local address exists by looking at the port and src/dst
>>   address. Incredibly ugly and wrong :)
> 
> 
> If IP src is 0.0.0.0, let it through untouched.  Those packets are
> presumably not supposed to be masqueraded, so it's the Right Think
> AFAICT.
> 
> Will that fix DHCP?

Absolutely. Since these packets never get routed, the only possibility
when they can occur is when a local raw socket with IP_HDRINCL chooses
a source address of 0. In that case it definitely seems right to leave
the packet alone.

Thanks!

Patrick

  reply	other threads:[~2005-09-11 23:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-11 15:07 MASQUERADE + DHCP problem Patrick McHardy
2005-09-11 23:34 ` Rusty Russell
2005-09-11 23:57   ` Patrick McHardy [this message]
2005-09-12  3:07     ` David S. Miller
2005-09-12  8:52       ` Patrick McHardy

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=4324C462.9040804@trash.net \
    --to=kaber@trash.net \
    --cc=laforge@netfilter.org \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=rusty@rustcorp.com.au \
    /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.