ipfilter problem - seems simple, but I'm stuck.
- From: Dave <INVALID-see-signature-for-how-to-determine@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 26 Dec 2005 15:35:24 +0000
I have sent this to the ipfilter mailing list, but perhaps someone here will answer first.
I've got a Sun Ultra 60 running Solaris 10, with the Sun installed ipfilter (4.0.2). It uses an on IP address of 192.168.1.15. The machine is:
a) A web server b) An ssh server on ports 80 and 8080.
It logs domain names in the web server logs, which it does via DNS lookups. Hence it needs to make outgoing requests for DNS.
Here are my ipfilter rules
block in log all block out log all
# There are two DNS servers I might use, on IP's 212.67.120.148 # and 212.67.96.128.
pass out log on hme0 from 191.168.1.15/32 to 212.67.120.148/32 pass out log on hme0 from 191.168.1.15/32 to 212.67.96.128/32
# Allow ssh, http on ports 80 and 8080 into the box.
pass in quick on hme0 proto tcp from any to 192.168.1.15/32 port = 22 keep state
pass in quick on hme0 proto tcp from any to 192.168.1.15/32 port = 80 keep state
pass in quick on hme0 proto tcp from any to 192.168.1.15/32 port = 8080 keep state
However, all outgoing DNS entries are blocked. Here is what is shown by ipmon, which logs the firewall, where I type "nslookup www.sun.com"
# ipmon
26/12/2005 14:46:45.822511 hme0 @0:1 b 192.168.1.15,32925 -> 212.67.120.148,53 PR udp len 20 57 OUT
26/12/2005 14:46:46.830913 hme0 @0:1 b 192.168.1.15,32926 -> 212.67.96.128,53 PR udp len 20 57 OUT
26/12/2005 14:46:51.840468 hme0 @0:1 b 192.168.1.15,32925 -> 212.67.120.148,53 PR udp len 20 57 OUT
26/12/2005 14:46:52.850364 hme0 @0:1 b 192.168.1.15,32926 -> 212.67.96.128,53 PR udp len 20 57 OUT
Hence outgoing requests to my DNS servers are being blocked.
But I've specifically allowed IP's 212.67.120.148 & 212.67.96.128, so why should they be blocked?
-- Dave K
http://www.southminster-branch-line.org.uk/
Please note my email address changes periodically to avoid spam. It is always of the form: month-year@domain. Hitting reply will work for a couple of months only. Later set it manually. The month is always written in 3 letters (e.g. Jan, not January etc) .
- Follow-Ups:
- Prev by Date: Re: gcc failure
- Next by Date: ...
- Previous by thread: Ultrasparc Enterprise 2 value?
- Next by thread: Re: ipfilter problem - seems simple, but I'm stuck.
- Index(es):
Relevant Pages
|