Announcement

Collapse
No announcement yet.

How to configure IPTABLES for DHCP server?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to configure IPTABLES for DHCP server?

    Can any of you clever linux mavens tell me how to configure my iptables on my SC server so that a dhcp server on that box will work? I came across this:
    Code:
    # iptables -I INPUT -i eth0 -p udp --sport 67:68 --dport -j ACCEPT
    ..but Fedora 8's iptables returns an error message, saying that "-j" is not a port. Anyone know the correct arguments offhand?

    #2
    --dport takes an argument.

    What I do is allow all traffic from any internal IP address so I don't have to add a rule for each internal service my system provides.
    Code:
    # Allow any connection from this host.
    iptables -A INPUT -i lo -j ACCEPT
    # Allow any connection from the local network.
    iptables -A INPUT -s 192.168.1.0/24 -j ACCEPT
    # Allow all broadcast traffic.
    iptables -A INPUT -m pkttype --pkt-type broadcast -j ACCEPT
    Dave
    Squeezeboxes: 3 (a.k.a. Classic), Duet, Boom

    Comment

    Working...
    X