i have problem like this
this is my iptables rules
sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp --dport 22 -j DNAT --to-destination (( my first server ))
iptables -t nat -A PREROUTING -j DNAT --to-destination (( my second server ))
iptables -t nat -A POSTROUTING -j MASQUERADE
i want to change these rules to nftables what should i do ?
also i always add these to nano /etc/rc.local and then chmod +x /etc/rc.local
so how could i build rc.local nftables and save them for always ??