Re: iptables rule not working as expected



Hello,

Greg Russell a écrit :
I feel we have a fairly restrictive firewall in place, but my attempts to
allow DHCP from a range of IP addresses seem to fail.

What do you mean by "allow DHCP from a range of IP" ?

Using a simple script I wrote, we see:

Resolved_Address Packets Bytes Protocol(s) Dest.Port(s)
...
148.78.249.200 3 560 UDP 54366
Totals 4 0.7KB for search pattern "UNSOLICITED"

What does this script do ? Can you send the complete messages from the
LOG rule ?

The ruleset is:

*filter
:INPUT DROP [wlan0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -i wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i wlan0 -p udp -s 148.78.249.200/28 -m state --state NEW -j
ACCEPT

Note that 148.78.249.200/28 is not a valid prefix ; 148.78.249.192/28 is.

-A INPUT -i wlan0 -m state --state NEW -j LOG --log-level 7 --log-prefix
UNSOLICITED:
COMMIT
.



Relevant Pages

  • RE: OSD issues
    ... > some machines where unable to get a DHCP address before timeout would occur. ... >> indentical machines side by side - one will work and the other will fail. ... >>> Could it be a network latency issue? ... >>> Have you looked at the log files that OSD creates? ...
    (microsoft.public.sms.admin)
  • getLocalHost()
    ... consider a Linux machine with a temporary internet connection that is ... so why does it fail? ... still that one assigned by the DHCP server, which is now invalid, ... by why is *that* address of any interest since "localhost" would ...
    (comp.lang.java.programmer)
  • Re: Unc Path mapping - Problems
    ... When you say fail what error are you getting? ... Newbie Coder ... The pc obtains an IP address by DHCP and is obtaining one fine ... I have tried connecting via unc using both ip address and name- both ...
    (microsoft.public.windowsxp.general)
  • Re: dhcpagent + ipfilter := delayed loss of IP functionality?
    ... If the DHCP server is chanign the IP, ... some rules will fail. ... And my dhcpagent debug logs show operational DHCP. ...
    (comp.unix.solaris)
  • Re: Running DHCP on Firewall
    ... >> running DHCP. ... And any I did would fail a security audit. ... >Please point me at a documented security problem in current DHCP servers ...
    (comp.security.firewalls)