Re: Running DHCP on Firewall
From: Capps (capps_at_iozone.org)
Date: 08/13/03
- Next message: MyndPhlyp: "Re: linksys befw11s4 v4 won't log"
- Previous message: Eric W. Williams: "experience with hotbrick VPN 600/2"
- In reply to:(deleted message) Leythos: "Re: Running DHCP on Firewall"
- Next in thread: Beoweolf: "Re: Running DHCP on Firewall"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 13 Aug 2003 15:20:02 GMT
My two cents:
If I were to run DHCP on the firewall then I would want to
have inbound traffic (from the external NIC) that is
coming from port 68, to be dropped. And, outbound traffic
(to the external NIC) that is going to UDP port 68 to be dropped.
/sbin/iptables -A INPUT -i $EXTERNAL_INTERFACE -p UDP \
--sport 68 -j DROP
/sbin/iptables -A OUTPUT -o $EXTERNAL_INTERFACE -p UDP \
--dport 68 -j DROP
Also, start the DHCP server so that it is bound to the internal
interface.
/usr/sbin/dhcpd $INTERNAL_INTERFACE
The tricky part is if one is using DHCP and DNS with dynamic updates.
One needs to be careful to only permit dynamic updates to the DNS
from the internal network, and not relay these updates to your ISP's
DNS server :-)
Note: If you don't know exactly what you are doing with DHCP, then
don't do it. Your ISP would not like it, if you start handing out
IP addresses that are in its IP block, and may promptly terminate
your account.
Enjoy,
Don Capps
"Leythos" <void@nowhere.com> wrote in message
news:MPG.19a3ed0a3a02c34f989b60@news-server.columbus.rr.com...
> In article <5fa8f772.0308121344.47f2661@posting.google.com>,
> bobneworleans@yahoo.com says...
> > I'm thinking about setting up a firewall using linux and iptables. Is
> > it considered acceptable practice to run DHCP on the same box?
>
> The only thing that should be running on the firewall box is the
> firewall. If someone makes it through the firewall your DHCP service
> will provide them with a valid IP on your network - do you really think
> that's a good idea?
>
> --
> --
> spamfree999@rrohio.com
> (Remove 999 to reply to me)
- Next message: MyndPhlyp: "Re: linksys befw11s4 v4 won't log"
- Previous message: Eric W. Williams: "experience with hotbrick VPN 600/2"
- In reply to:(deleted message) Leythos: "Re: Running DHCP on Firewall"
- Next in thread: Beoweolf: "Re: Running DHCP on Firewall"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|