Re: pf.conf and cable modem
- From: alex@xxxxxxxxxxxx
- Date: Wed, 28 Feb 2007 12:44:21 -0500
Quoting RW <fbsd06@xxxxxxxxxxxxxxxxxxx>:
On Tue, 27 Feb 2007 14:55:55 -0800
"Josh Carroll" <josh.carroll@xxxxxxxxx> wrote:
> I am converting from DSL to RoadRunner this week and wondering if
> there is anything special I need to do to my pf.conf for passing
> DHCP into my NIC?
I think all you'll need is:
pass in quick on $ext_if proto udp from any port 67 to any port 68
keep state
When I used DHCP with PF, I found that it just worked without any rules
at all.
That's been my experience as well (admittedly on OpenBSD, but it's basically the same PF). Remember, your NIC's initialization sequence, which is where the DHCP request will come, happens before PF is enabled, so you're essentially at a "pass all" sort of a state when the request happens.
The one thing to keep in mind is that if you're doing, say, NAT for some clients behind the box, you can use a rule like this to deal with any changes in your dynamic IP (which should be extremely rare -- on Comcast I've had one IP change in 1.5 years, and that was because I was down for a significant chunk of time):
nat on $ext_if from $int_if:network to any -> (nfe0)
The "(nfe0)" here says "use the IP address of the nfe0 interface, instead of requiring you to specify the address manually.
HTH,
Alex Kirk
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: pf.conf and cable modem
- From: RW
- Re: pf.conf and cable modem
- References:
- pf.conf and cable modem
- From: J.D. Bronson
- Re: pf.conf and cable modem
- From: Josh Carroll
- Re: pf.conf and cable modem
- From: RW
- pf.conf and cable modem
- Prev by Date: Re: pf.conf and cable modem
- Next by Date: Re: Using source control to manage system configs
- Previous by thread: Re: pf.conf and cable modem
- Next by thread: Re: pf.conf and cable modem
- Index(es):
Relevant Pages
|