View Single Post
Old 09-13-2002, 10:46 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,694
redhead is on a distinguished road
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.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote