Untitled

mail@pastecode.io avatar
unknown
plain_text
25 days ago
569 B
1
Indexable
Never
#!/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;
    }
}
Leave a Comment