On Sat, Jan 14, 2006 at 01:58:55PM +0100, Michael Przysucha wrote: > Hello, > > I want to use ssh on two ports, 22 (standart) and 666. Can anybody tell how > to configure it? My first thought was to > simply add the second port nubmer in the configuration but did not work. > Second was to set up iptables route the port > but seems to be a bit to oversized!? > > I use Debian 2.4.27-2-386, running openSSH. The machine is located behind a > NAT-router and I do not want to open > port 22 due to beeing attaced continiously by ssh-scans. > I do need port 22 for internal use, 666 or any other port would be my > outbound port for accessing the system from the > internet. > > Does anyone hay an idea how to solve the problem?
If you are already using iptables, I would suggest to REDIRECT port 666 to port 22. You could also run rinetd, but then you would lose the source information. -- Martin Hermanowski http://mh57.de/martin
signature.asc
Description: Digital signature