Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jan 2021 04:52:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 252874] pf cant't bind interface dynamically
Message-ID:  <bug-252874-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252874

            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@FreeBSD.org
          Reporter: dcp2k@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.

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



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