[Bug 252874] pf cant't bind interface dynamically

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 21 04:52:13 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252874

            Bug ID: 252874
           Summary: pf cant't bind interface dynamically
           Product: Base System
           Version: 12.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: dcp2k at 163.com

when i add a nat rule to pf like this
nat on re0 inet from 192.168.2.0/24 to any -> re0
                                               ^
                                               |
                                               |
                                          this is destination out interface

the pf nat forward the packet to the ip of re0 ,not interface re0

pfctl -s nat i can see the rule change to  this

nat on re0 inet from 192.168.2.0/24 to any -> 192.168.2.3  (re0 ip)

it means that when i change the re0 ip address other the nat will not work,
because the nat rule do not bind the interface but bind to the ip of re0
interface,


i wish the pf nat could bind the interface rather then  interface's ip.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list