On 12/24/21 20:19, Bill Yuan wrote:
Hi,

I fully agree with you. it must be very helpful during the configuration, especially in your network scenario.

Maybe, you can try to implement a script to do that, update the ipfw3 whenever the IP changes.

Regards,
Bill Yuan

On Sat, 25 Dec 2021 at 04:32, samg <s...@fastmail.com> wrote:

    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]]


Just curious if you've tried it anyway. Might be an undocumented feature. Or maybe you can assign an alias ip to the interface and use that ip for natting to.

Reply via email to