NFTables questions
by notooth from LinuxQuestions.org on (#5EY6C)
I am studying NFTables, and I have some rules in /etc/nftables/nftables_firewall:
Code:table ip filter {
chain output {
type filter hook output priority 100; policy accept;
}
# allow LAN to firewall, disallow WAN to firewall
chain input {
type filter hook input priority 0; policy accept;
iifname "lan0" accept
iifname "wan0" drop
}Can anyone tell me how to apply these rules without rebooting?


Code:table ip filter {
chain output {
type filter hook output priority 100; policy accept;
}
# allow LAN to firewall, disallow WAN to firewall
chain input {
type filter hook input priority 0; policy accept;
iifname "lan0" accept
iifname "wan0" drop
}Can anyone tell me how to apply these rules without rebooting?