tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NAT with public interface with more than one address



john%klos.com@localhost (John Klos) writes:

>$ext_if = re0
>$ext_ip = { inet4($ext_if) }
>$localnet_lan = { 192.168.50.0/24 }
>map $ext_if dynamic $localnet_lan -> $ext_if


Seems to be a typo, probably:

map $ext_if dynamic $localnet_lan -> $ext_ip


>/etc/npf.conf:25:27: wrong variable 'ext_ip' type 'family-address-mask' for interface near '$ext_ip'

Is that also a typo like

map $ext_ip dynamic $localnet_lan -> $ext_if

?

That would explain why an address cannot be a substitute for an interface.




Home | Main Index | Thread Index | Old Index