/etc/rc.conf
/etc/sysctl.conf
I am studying the PF but I have many doubts
and must put the network to function
I need to convert this rule in Iptables to PF
This is the basic to operate the network
Code:
ifconfig_em0="DHCP"
ifconfig_em1="192.168.2.1"
ifconfig_em2="192.168.3.1"
ifconfig_em3="192.168.4.1"
# PF
pf_enable="YES"
pf_rules="/etc/pf.conf"
pflog_enable="YES"
pflog_logfile="/var/log/pflog"
gateway_enable="YES"
/etc/sysctl.conf
Code:
net.inet.ip.forwarding=1
I am studying the PF but I have many doubts
and must put the network to function
I need to convert this rule in Iptables to PF
Code:
REDE=192.168.0.0/16
iptables -t nat -a POSTROUTING -s $REDE -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -D 192.168.1.102 -p tcp --dport 22 -j DNAT --to 192.168.2.10:22
This is the basic to operate the network