Ipfw rules ?

Joseph Koshy joseph.koshy at gmail.com
Wed Oct 13 19:58:29 PDT 2004


> I have a ipfw rule:
> add 40000 count ip from 10.127.0.2 to any MAC any 00:50:56:e4:79:6c in
> via lnc0
> But ipfw shows it like:
> 40000   0     0 count ip from 10.127.0.2 MAC any 00:50:56:e4:79:6c any
> in via lnc0
> 
> Is ipfw really correctly showing the rule ?

Moving the 'MAC' predicate to after the 'in' predicate seems to make
the rule print as entered:

# ipfw add 4000 count ip from 10.127.0.2 to any in mac any \
  00:50:56:e4:79:6c via rl0 
04000 count ip from 10.127.0.2 to any in MAC any 00:50:56:e4:79:6c via
rl0


More information about the freebsd-current mailing list