Ftp Port / ssh?

Hi there,

I’m trying to forward an ssh/ftp port by something like sftp://IP .

So i’ve change the port to 4444, i’ve tested locally and it works.

I’ve the following firewall nat rule:

1 chain=dstnat action=dst-nat to-addresses=1.1.1.1 to-ports=4444
protocol=tcp in-interface=ether3 - valn100 port=4444 log=no log-pre

But when try to connect to ftp server, says that can’t connect to server.

What i’m I doing wrong?

Can someone give me a hint?

thanks

Have you tried specifying the dst-address and dst-port to match traffic for?

Also, to confirm, “ether3 - valn100” is your WAN / incoming interface? If that interface is actually the internal interface the server connects to or something else, than that would be causing your problem (you’d be matching on the wrong interface).