Re: NAT with public interface with more than one address

[email protected] (Michael van Elst)
Newsgroups gmane.os.netbsd.devel.network
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] (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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.