iptables to nftables
by Jason.nix from LinuxQuestions.org on (#6D2HN)
Hello,
I'm a beginner in the nftables and I want to know how can I rewrite the following iptables rules in nftables:
Code:# iptables -A FORWARD -o eth0 -i vboxnet0 -s 192.168.56.0/24 -m conntrack --ctstate NEW -j ACCEPT
# iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Thank you.
I'm a beginner in the nftables and I want to know how can I rewrite the following iptables rules in nftables:
Code:# iptables -A FORWARD -o eth0 -i vboxnet0 -s 192.168.56.0/24 -m conntrack --ctstate NEW -j ACCEPT
# iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Thank you.