root@cube-box:~ # pfctl -sn
No ALTQ support in kernel
ALTQ related functions disabled
nat pass on bge0 inet from 10.8.8.0/24 to any -> 192.168.0.25
nat on bge0 inet proto tcp from 10.8.8.8 to 192.168.0.25 -> 192.168.0.24
nat on bge0 inet proto udp from 10.8.8.8 to 192.168.0.25 -> 192.168.0.24
nat on bge0 inet proto icmp from 10.8.8.8 to 192.168.0.25 -> 192.168.0.24
rdr pass on bge0 inet proto tcp from any to 192.168.0.25 port = http -> 10.8.8.8
rdr pass on bge0 inet proto tcp from any to 192.168.0.25 port = https -> 10.8.8.8
Effectivement le principe est le même qu'avec IpTable.
[^] # Re: analogie avec linux
Posté par Kwiknclean . En réponse au message [BSD-Debutant] S'en sortir avec PF ... et les jails. Évalué à 1.
En gros j'ai ceci en conf :
Effectivement le principe est le même qu'avec IpTable.