ipfw3 nat to dynamic ip

samg samg at fastmail.com
Fri Dec 24 12:31:41 PST 2021


On Fri, Dec 24, 2021, at 10:05 AM, Edgar Pettijohn wrote:
> From the manual:
>
> [ifX*:net*]
>                      Matches the IPv4 network of the first IPv4 address
>                      assigned to the *ifX*.  It is intended to help matching the
>                      IPv4 network of the IPv4 address assigned to the *ifX*
>                      dynamically, e.g. by DHCP.

Thats from the ipfw manual, not the ipfw3 manual. ipfw3 doesn't support that syntax in the nat config. Looking at the source, it parses the ip with inet_aton, which only accepts ips in the form xxx.xxx[.xxx[.xxx]]


More information about the Users mailing list