duplicate nat rules listed by pfctl

David DeSimone fox at verio.net
Wed Mar 11 13:22:28 PDT 2009


Gianni <gdoe6545 at yahoo.it> wrote:
>
> With the following nat rules pfctl lists duplicate entries, can anyone  
> explain why this is?
>
> ext_if = "tun0"
> nat on $ext_if from $localnet to any -> ($ext_if)
> no nat on $ext_if from $localnet to $vpn_nets

What is the definition of $localnet?

> # pfctl -s nat
> nat on tun0 inet from 192.168.200.0/24 to any -> (tun0) round-robin
> nat on tun0 inet from 192.168.200.0/24 to any -> (tun0) round-robin
> no nat on tun0 inet from 192.168.200.0/24 to 192.168.0.0/24
> no nat on tun0 inet from 192.168.200.0/24 to 192.168.0.0/24

Also, don't you think you should put the "no nat" rule before the "nat"
rules?

-- 
David DeSimone == Network Admin == fox at verio.net
  "I don't like spinach, and I'm glad I don't, because if I
   liked it I'd eat it, and I just hate it." -- Clarence Darrow


This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free.  Thank you.


More information about the freebsd-pf mailing list