Author: Mike Starke Date: Subject: forwarding ssh requests
On Tue, May 20, 2003 at 02:06:40PM -0500, Thomas Cameron wrote:
/_That's what I was going to answer, but I am not getting it to work...
/_
/_[root@mailtest1 root]# iptables -t nat -A PREROUTING -p tcp -d
/_127.0.0.1 --dport 3022 -j DNAT --to-destination 127.0.0.1:22
/_[root@mailtest1 root]# ssh 127.0.0.1 -p 3022
/_ssh: connect to host 127.0.0.1 port 3022: Connection refused
/_
Make sure you do not overlook tcpwrappers. Anytime I see
a ":Connection refused" I get suspicious.