gray network and ipfw2

Alexander Motin mav at alkar.net
Tue Dec 30 02:20:23 PST 2003


al vanyushenkov wrote:
> hi all
> i have freebsd 4.8 installed and i use ipfw2 with the rules

> #!/bin/sh
> ipfw='/sbin/ipfw'
> $ipfw -f flush
> 
> $ipfw add divert natd all from any to any via ppp0
> $ipfw add allow log all from any to any
^^^^^ this rule matches packets on all innterfaces. Internal too. On 
internal interface you really have grey addresses.

> 
> my local ethernet card has 192.168.133.7 ip address
> and my ppp0 interface has 217.15.x.x ip address.
> 
> when i tried to connect to 195.54.192.44:21 from my local box i got the lines
> 
> Accept TCP 172.16.202.106:4802 195.54.192.44:21 out via ppp0
> Accept TCP 195.54.192.44:21 172.16.202.106:4802 in via ppp0
> and so on.
> 
> as i know 172.16.0.0 are gray addresses and i haven't got any 172.16.x.x networks
> in my environment.
> Could anybody tell me what 172.16.202.106:4802 does in my log file.


-- 
Alexander Motin mav at alkar.net
ISP "Alkar-Teleport"


More information about the freebsd-ipfw mailing list