Hi,
I'm trying to translate from iptables to nftables and came to the conclusion that I am a complete moron when it comes to networking
Old rules:
iptables -t nat -I PREROUTING -i br-lan -p tcp --dport 53 -j DNAT --to 192.168.1.1:53
iptables -t nat -I PREROUTING -i br-lan -p udp --dport 53 -j DNAT --to 192.168.1.1:53
iptables -t nat -I PREROUTING -i br-lan -p tcp --dport 123 -j DNAT --to 192.168.1.1:123
iptables -t nat -I PREROUTING -i br-lan -p udp --dport 123 -j DNAT --to 192.168.1.1:123
New rules:
nft insert rule ip nat PREROUTING iifname "br-lan" tcp dport 53 counter dnat to 192.168.1.1:53
nft insert rule ip nat PREROUTING iifname "br-lan" udp dport 53 counter dnat to 192.168.1.1:53
nft insert rule ip nat PREROUTING iifname "br-lan" tcp dport 123 counter dnat to 192.168.1.1:123
nft insert rule ip nat PREROUTING iifname "br-lan" udp dport 123 counter dnat to 192.168.1.1:123
But its not working, as I get errors. So I'm missing something obviously.
Some pointers would be really appreciated.