Re: Pf syntax, need help understanding an example

2018-06-07 Thread Johan Mellberg
2018-06-06 13:55 GMT+02:00 Stuart Henderson : > On 2018-06-06, Johan Mellberg wrote: > with ext_if="re0", $ext_if expands to re0. > > If this if used in place of an address in a PF rule, re0's address is > looked up when pfctl is run and that is used. > > If "(re0)" is used instead, that

Re: Pf syntax, need help understanding an example

2018-06-06 Thread Stuart Henderson
On 2018-06-06, Johan Mellberg wrote: > Hi, > > I am working my way through "The Book of Pf" and got hung up on the > example on page 31 of edition 3 (I am reading edition 2 but the > example seems to be identical in edition 3): > > ext_if = "re0" # macro for external interface - use tun0 or

Re: Pf syntax, need help understanding an example

2018-06-06 Thread Gregory Edigarov
hi, $ext_if -     expands to the name of the interface ($ext_if) - expands to the ip address assigned to the interface On 06.06.18 12:21, Johan Mellberg wrote: Hi, I am working my way through "The Book of Pf" and got hung up on the example on page 31 of edition 3 (I am reading edition 2 but

Pf syntax, need help understanding an example

2018-06-06 Thread Johan Mellberg
Hi, I am working my way through "The Book of Pf" and got hung up on the example on page 31 of edition 3 (I am reading edition 2 but the example seems to be identical in edition 3): ext_if = "re0" # macro for external interface - use tun0 or pppoe0 for PPPoE int_if = "re1" # macro for internal