From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: No internet connection
Date: Thu, 09 Sep 2004 12:25:45 -0400 [thread overview]
Message-ID: <1094747145.15528.21.camel@wolfpack.ljm.dom> (raw)
In-Reply-To: <20040909160053.GN8419@metastasis.org.uk>
On Thu, 2004-09-09 at 12:00, Nick Drage wrote:
> > for the sake of the list archives:
> >
> > # DHCP server -> client
> > iptables -A INPUT -p udp --sport 67 --dport 68 -j ACCEPT
> >
> > # DHCP client -> server
> > iptables -A OUTPUT -p udp --sport 68 --dport 67 -j ACCEPT
>
> Not wishing to be paranoid, buuuuuuuuutttttttt..... couldn't you
> usefully restrict those by source and destination IP?
i dunno. assuming you know the IP address of the DHCP server in
advance...it could be this:
iptables -A OUTPUT -p udp -s 0.0.0.0/32 --sport 68 \
-d 255.255.255.255/32 --dport 67 -j ACCEPT
iptables -A OUTPUT -p udp --sport 68 \
-d $DHCP_SRV --dport 67 -j ACCEPT
iptables -A INPUT -p udp -s $DHCP_SRV --sport 67 \
--dport 68 -j ACCEPT
with some scripting, you could programatically add in the IP of the FW
to those rules and re-run the iptables script every time the address
changes...
i guess i was trying to show the building blocks of what it takes to
allow a firewall to be a DHCP client...paranoia is left as an exercise
for the reader... ;-)
-j
--
Jason Opperisano <opie@817west.com>
next prev parent reply other threads:[~2004-09-09 16:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20040909144044.27300.qmail@web50208.mail.yahoo.com>
2004-09-09 15:02 ` No internet connection Jason Opperisano
2004-09-09 16:00 ` Nick Drage
2004-09-09 16:25 ` Jason Opperisano [this message]
2004-09-09 17:00 ` Aleksandar Milivojevic
2004-09-10 14:49 No Internet Connection Giancarlo Boaron
2004-09-10 15:33 ` Jason Opperisano
2004-09-10 16:41 ` Aleksandar Milivojevic
2004-09-10 16:56 ` Jason Opperisano
2004-09-10 17:24 ` Aleksandar Milivojevic
2004-09-10 17:28 ` Giancarlo Boaron
-- strict thread matches above, loose matches on Subject: below --
2004-09-09 14:06 No internet connection Piszcz, Justin Michael
2004-09-09 14:04 Giancarlo Boaron
2004-09-09 14:15 ` Jason Opperisano
2004-09-09 16:02 ` Nick Drage
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=1094747145.15528.21.camel@wolfpack.ljm.dom \
--to=opie@817west.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 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.