Howdy, I'm trying to NAT using only a single Ethernet interface. Laptop system where another interface is not available. The upstream is a cable modem that provides address via DHCP.
I have configured my /etc/hostname.if to have: dhcp NONE NONE NONE inet alias 192.168.148.249 255.255.255.0 Works fine. The problem, how do I build the nat rule in /etc/pf.conf? The typical DHCP method of: nat on if from 192.168.1.0/24 to any -> if Does not work, as nat complains that multiple addresses exist on if. Is there a way to specify which alias on if? NAT does seem to work fine on a single address, if I hard-code the public IP Address on the pf.conf line. If there is no way to directly accomplish this, does anyone have scripts to share that could be triggered by DHCP to rewrite the pf.conf NAT lines? Thank you. Stephen Gutknecht currently in Lake Havasu City, Arizona USA
