|
Are you thinking about iptables and DNAT ??
# iptables -t nat -A PREROUTING -i $EXTERN_NIC -p tcp --dport 23 -j DNAT --to 172.16.0.2:3704
Or some sort of REDIRECT of the connection ?
# iptables -t nat -A PREROUTING -p tcp --dport 23 -j REDIRECT --to-port 3704
The first one will redirect every connection comming to the firewall from the outside on port 23, to the internal IP on port 3704, the second one will redirect every connection on the machine comming on port 23, to port 3704 on the same machine.
|