Use iptables to forward ssh

view story

http://serverfault.com – i found several tutorials on how to do it, but got none of them to work :/ My setup: FIREWALL - reachable from the internet - eth0: xxx.xxx.xxx.xxx (public ip) - eth1: SERVER - reachable from FIREWALL - eth0: Because I still want to be able to connect to the firewall on port 22, I would like to forward incoming connections on port 2222 to ping and ssh from FIREWALL to SERVER works. ping and ssh from SERVER to FIREWALL works as well (although login is only allowed with public key and the SERVER is not allowed...) ping and ssh from anywhere to FIREWA (HowTos)