-
port forwarding
Hello! I have a question about port forwarding with iptables. I've searched around alot on the net and read a few tutorials on iptables so if this question has been asked before please go easy on me. Here is what I'm trying to do, the linux server that I'm using has a local ip of 192.168.0.41, if any computer connects to port 23 I want it to forward it to port 23 of 192.168.0.1. Can someone please help?? Thanks
-
Hmm, the IPs are a bit but nontheless
Code:
iptables -t nat -A PREROUTING -p tcp --dport 23 -j DNAT --to-destination 192.168.0.41
I'd strongly recommend you use SSH instead of telnet.