1
vote
1answer
971 views

iptables port forwarding for active UDP connections

I am trying to set up port forwarding on UDP from port 12345 to port 54321 using the following: iptables -t nat -A PREROUTING -p udp -i eth0 -d 192.168.0.1 --dport 12345 -j DNAT --to ...
2
votes
2answers
4k views

UDP traversal through router automatically without router port forwarding?

Everyone knows the router is working like a firewall. Without port forwarding, a connection (no matter TCP or UDP) cannot be initiated from outside of the router. However, if a user initiate a TCP ...