<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 12/24/21 10:31, samg wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:9d4a8f41-3bdc-4906-af0c-4127547501d7@www.fastmail.com">
      <pre class="moz-quote-pre" wrap="">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?

Thanks,
Sam

On Fri, Dec 24, 2021, at 5:54 AM, Bill Yuan wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Hi,

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?

Regards,
Bill Yuan

On Fri, 24 Dec 2021 at 07:43, samg <a class="moz-txt-link-rfc2396E" href="mailto:samg@fastmail.com"><samg@fastmail.com></a> wrote:
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">Hello,

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.

Thanks,
Sam
</pre>
        </blockquote>
      </blockquote>
    </blockquote>
    <p><br>
    </p>
    <p>From the manual:</p>
    <pre class="body">[ifX<b>:net</b>]
                     Matches the IPv4 network of the first IPv4 address
                     assigned to the <i>ifX</i>.  It is intended to help matching the
                     IPv4 network of the IPv4 address assigned to the <i>ifX</i>
                     dynamically, e.g. by DHCP.</pre>
    <p><br>
    </p>
  </body>
</html>