On Wed, Nov 13, 2002 at 12:50:22PM -0600, Ed McGough wrote:
> ----------------------------------------------------------------------------
> --
> #Local Loopback Interface lo0
> #DC0 = Public Interface
> #DC1 = Private Interface
> #tun0 = PPPoE Interface
> 
> pass out quick on lo0
> pass in  quick on lo0
> 
> pass out quick on dc1
> pass in  quick on dc1
> 
> pass out quick on tun0 proto tcp from any to any keep state
> pass out quick on tun0 proto udp from any to any keep state
> 
> #Lets block everything else as nothing else needs to be allowed in
> block return-icmp-as-dest(port-unr) in log level auth.alert quick on tun0
> proto tcp from any to any
> block return-icmp-as-dest(port-unr) in log level auth.alert quick on tun0
> proto udp from any to any
> ----------------------------------------------------------------------------
> -------
> 
> As you can see the packets that I am denying I'm sending the
> return-icmp-as-dest(port-unr), but I'm not sure if this is working
> correctly.  I have installed Samba lately on my home BSD machine and when I
> scan my system from a friends system using nmap with the -sT flag I get the
> following results.
> 
> (The 1551 ports scanned but not shown below are in state: closed)
> Port       State       Service
> 137/tcp    filtered    netbios-ns
> 138/tcp    filtered    netbios-dgm
> 139/tcp    filtered    netbios-ssn
> 
> Nmap run completed -- 1 IP address (1 host up) scanned in 13 seconds
> 
> 
> Why are the netbios ports showing up when I have the return-icmp-as-dest
> flag setup?  Am I doing something wrong, or have I interpretted this flag
> incorrectly?  Is there a way to elimate those type of results from a scan?

>From where are you running nmap? I know some ISPs filter 137-139
universally, so it may be that you're not even reaching your box.
Check your logs to see if any requests ever made it to those ports.

-c

Reply via email to