LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   ipchains & dhcp for internal network (https://www.linuxquestions.org/questions/linux-security-4/ipchains-and-dhcp-for-internal-network-7568/)

jmelgin 10-15-2001 03:07 PM

ipchains & dhcp for internal network
 
I am trying to configure dhcp for my internal network and am having trouble with my firewall blocking it. I am using ipchains (configured through "newbie" settings on webmin at "low" setting) and have the following text show up when logging:

DHCPDISCOVER from 00:a0:cc:73:bb:d2 via eth1
DHCPOFFER on 192.168.0.3 to 00:a0:cc:73:bb:d2 via eth1
send_packet: Operation not permitted

My internal (LAN) interface is eth1 with an IP of 192.168.0.254. I've set up the dhcp script to lease from a range of 192.168.0.1 to 192.168.0.10.

Here's the section labeled for DHCP rules in my firewall script:

ipchains -A input -i eth1 -s 0.0.0.0 68 -d 255.255.255.255 67 -p udp -j ACCEPT
ipchains -A output -i eht1 -s 192.168.0.254 67 -d 192.168.0.0/255.255.255.0 68 -p udp -j ACCEPT

When I turn off the firewall, the dhcp stuff works like a charm, but as soon as I turn the firewall back on, the clients can't grab an IP from the dhcp server.

Any thoughts on what to do to fix the ipchains?

jmelgin 10-15-2001 08:29 PM

fixed it!
 
edit second line to be:

ipchains -A output -i eth1 -s 192.168.0.254 67 -d 255.255.255.255 68 -p udp -j ACCEPT


All times are GMT -5. The time now is 10:58 PM.