Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleExample - How to setup UDP port forwarding to forward all UDP datagrams from port 162 to port 5678


Code Block
languagetext
themeEclipse
$ 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.


Scroll ignore
scroll-viewportfalse
scroll-pdftrue
scroll-officefalse
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmlfalse


Next: