changes.mady.by.user Former user
Saved on Apr 28, 2023
Saved on May 13, 2023
...
$ sudo iptables -t nat -A PREROUTING -i enp0s3 -p udp --dport 162 -j REDIRECT --to-port 5678
You should replace enp0s3 with proper network interface name. Use ifconfig to find out the name of your Ethernet interface. Usually - eth0.
enp0s3
eth0