ipfw3 nat to dynamic ip
Edgar Pettijohn
edgar at pettijohn-web.com
Sat Dec 25 12:35:49 PST 2021
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 <samg at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20211225/1deff094/attachment-0002.htm>
More information about the Users
mailing list