ipfw3 nat to dynamic ip
edgar at pettijohn-web.com
Fri Dec 24 10:05:22 PST 2021
On 12/24/21 10:31, samg wrote:
> The network looks like this:
> WAN ----- [ ISP Router ] ------ [ My Router ] ---- [ My Clients ]
> The ISP router is set for IP passthrough, so 1-1 NAT. I don't have a static IP address, the ISP router gets an IP from the ISP via dhcp. So on my router, eth0 is connected to the ISP router, and gets an ip via dhcp, which will be whatever ip the isp router got, and this ip can change from time to time. I'd like to NAT traffic out via eth0, or whatever ip eth0 happens to have at the time.
> An aside: does ipfw3 support ipv6 ip's?
> On Fri, Dec 24, 2021, at 5:54 AM, Bill Yuan wrote:
>> Yes, Currently, it supports IP address only.
>> What do you mean by "Dynamic IP address"?
>> Do you mean NAT to iface instead of IP address during the configuration?
>> Or can you please help to elaborate?
>> Bill Yuan
>> On Fri, 24 Dec 2021 at 07:43, samg<samg at fastmail.com> wrote:
>>> Is there a way to setup ipfw3 nat to a dynamic ip address? I get an ip from my isp via dhcp. This looks like it used to be possible by nat-ing to an interface, but the current version only accepts ip addresses.
From the manual:
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users