From: Patrick McHardy <kaber@trash.net>
To: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Cc: Harald Welte <laforge@netfilter.org>,
Rusty Russell <rusty@rustcorp.com.au>
Subject: MASQUERADE + DHCP problem
Date: Sun, 11 Sep 2005 17:07:18 +0200 [thread overview]
Message-ID: <43244826.5020405@trash.net> (raw)
Hi,
in 2.6.13 I removed this part from MASQUERADE to get more consistency
in source address selection:
- /* FIXME: For the moment, don't do local packets, breaks
- testsuite for 2.3.49 --RR */
- if ((*pskb)->sk)
- return NF_ACCEPT;
-
Unfortunately this broke pump, it uses a regular UDP socket for
DHCP requests while no IP address is configured and fails in
MASQUERADE because no IP can be found. I'm not much in favour
of putting the check back in, so I want to discuss other
possiblities to keep pump working.
So far what's come to my mind is:
1) Tell users not to masquerade DHCP queries - makes most sense
in my opinion, but breaks existing setups
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 :)
3) Combination of the above - add the hack and print a warning
to tell users to fix their ruleset, remove the hack after
6 month
None of them is perfect, any other suggestions are welcome.
next reply other threads:[~2005-09-11 15:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-11 15:07 Patrick McHardy [this message]
2005-09-11 23:34 ` MASQUERADE + DHCP problem Rusty Russell
2005-09-11 23:57 ` Patrick McHardy
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=43244826.5020405@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.