Re: IP checking of hosts on a forwarded private network

On Fri, 29 Jun 2007, David Liontooth wrote:

On a Debian network, I've set up iptables forwarding into a private
network, using this sort of thing:

iptables -t nat -A PREROUTING -p tcp -d --dport 9000 -j
DNAT --to

The three machines on the private network each get assigned their own
port on the gateway:

ssh -p 9001

gets me to the elusive and so on. This works great, except for
openssh's host ip checking. As far as openssh is concerned, all four
machines are the same machine, with four different RSA keys.

On SSH2, known_hosts stores host:port. Is something equivalent available
in openssh? Workarounds?

Never mind, I found the answer in the archives --

Host port22
Port 22
HostKeyAlias port22
Host port2022
Port 2022
HostKeyAlias port2022



Relevant Pages

  • Re: pre-scanning for vulnerability scans?
    ... If by source, you're refering to the network you are testing from, you ... dictionary file for finding host names. ... full port SYN scan on detected hosts ... Audit your website security with Acunetix Web Vulnerability Scanner: ...
  • Re: Using Remote Desktop From an SBS Domain
    ... It goes into detail about how to set the host computer up (the ... the port number you connect to from 80 to a port of your choice. ... machine is on a University network and has a public IP address assigned ... trying to logon to my SBS. ...
  • Re: abnormal (excessive) number of arp requests on subnet?
    ... The title also applies to network design/operation. ... Though with the switches, you'll have to do some thinking about where ... A separate box attached to the monitor port on ... and how does that traffic get from Host A to Host N or what-ever. ...
  • Getting email from private network to internet via sendmail
    ... I have several Solaris 8 machines on a private, non-routable network ... from the bastion host to the outside world works without any problems. ...
  • Re: Should I configure a firewall to allow multicast?
    ... firewall is blocking various hosts to port 138. ... network running from through which would ... broadcast address - received by every host on the subnet. ...