Untitled

Anonymous
plain_text
05/28/2024 1:02 PM
760 B
13
Indexable
#!/usr/sbin/nft -f

table inet nat {
    chain prerouting {
        type nat hook prerouting priority 0; policy accept;
    }

    chain postrouting {
        type nat hook postrouting priority 100; policy accept;
        oifname "wlan0" masquerade
    }

    chain input {
        type filter hook input priority 0; policy accept;
    }

    chain forward {
        type filter hook forward priority 0; policy accept;
        ip saddr 10.110.1.0/24 ip daddr 0.0.0.0/0 accept
    }

    chain output {
        type filter hook output priority 0; policy accept;
    }
}
Editor is loading...
Leave a Comment