Solved What does :network do?

Hi,

Could someone explain me what is the difference between
Code:
nat on $ExtIf from $JailIf  to any -> ($ExtIf)
and
Code:
nat on $ExtIf from $JailIf:network  to any -> ($ExtIf)

I looked at the man page but don't understand what it all mean
---
:network Translates to the network(s) attached to the interface.
 
Assuming something like 192.168.1.100/24 on the interface backing $JailIf, then ($JailIf:network) would translate to the whole subnet 192.168.1.0/24.
 
The man page comment is correct.

If your $JailIf is configured as 192.168.0.25 and your subnet mask it 255.255.255.0 then $JailIf:network will translate to "192.168.0.0/24"
 
Back
Top