NetBSD-Bugs archive

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

re: bin/49776 (npf at boot-time)



maxv%NetBSD.org@localhost writes:
> Synopsis: npf at boot-time
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: maxv%NetBSD.org@localhost
> State-Changed-When: Sun, 02 Sep 2018 17:48:39 +0000
> State-Changed-Why:
> Don't we already support that? See ifaddrs(re0) instead of inet4(re0).
> inetX is a static list, ifaddrs is dynamic.

actually, it seems that you can't use this in NAT rules.  eg, in 
"map .... -> ifaddrs(foo)" (whether ifaddrs(foo) is a variable or
not), errors occur, eg:

/etc/npf.conf:13:42: syntax error near 'ifaddrs'

or

/etc/npf.conf:15:0: variable 'outside_ip' is of type 'table' not 'family-address-mask'


.mrg.


Home | Main Index | Thread Index | Old Index