Hey all...
So I figured out how to do and want to share so anyone else who needs it can know how.
Code:
sudo iptables -t nat -A PREROUTING -p tcp --dport [incoming port] -i [device] -j REDIRECT --to-port [port]
Note: you don't need the brackets..
Where incoming port is the one that you want to reroute and port the port that you want it routed to. Device is just that. So an example would be;
Code:
sudo iptables -t nat -A PREROUTING -p tcp --dport 60000 -i eth1 -j REDIRECT --to-port 22
This would route port 60000 to port 22 on eth1...
Hope this helps!
Kory
Bookmarks