nftables #!/usr/sbin/nft -f table ip nat {

chain prerouting {
    type nat hook prerouting priority 0; policy accept;
}
chain postrouting {
    type nat hook postrouting priority 100; policy accept;
    oifname "enp0s3" masquerade;
}

}