Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 2009 14:50:08 -0500
From:      "David DeSimone" <fox@verio.net>
To:        <freebsd-pf@freebsd.org>
Subject:   Re: duplicate nat rules listed by pfctl
Message-ID:  <20090311195007.GE3436@verio.net>
In-Reply-To: <6BCCA4DE-FD38-494B-A947-4C1D63775A1A@yahoo.it>
References:  <6BCCA4DE-FD38-494B-A947-4C1D63775A1A@yahoo.it>

next in thread | previous in thread | raw e-mail | index | archive | help

Gianni <gdoe6545@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090311195007.GE3436>