Community discussions

MikroTik App
 
amrphus
just joined
Topic Author
Posts: 3
Joined: Wed Mar 04, 2015 2:19 am

enabling ssh on alternate port with port 22 inactive on wlan

Fri Mar 06, 2015 7:33 am

I would like to allow ssh connection from the outside to my Mikrotik, running RouterOS 6.27. The only way that it seems to work is if I set up filter rules for both 22 and my alternate port (10022).

In the configuration below, if I disable filter rule #1 I cannot log into ssh from either port. As expected, if I enable filter rule #1, I can log in from both ports.
[admin@MikroTik] /ip firewall filter> print

 0    chain=input action=accept protocol=tcp dst-port=10022 log=no log-prefix=""

 1    chain=input action=accept protocol=tcp dst-port=22 log=no log-prefix=""
 
 ....
admin@MikroTik] /ip firewall> nat print

 0    chain=dstnat action=dst-nat to-ports=22 protocol=tcp in-interface=ether1-gateway dst-port=10022 log=yes log-prefix=""


I want to be able to enable logins from 10022 without enabling port 22. Am I missing something obvious?

Thanks
 
samsung172
Forum Guru
Forum Guru
Posts: 1193
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: enabling ssh on alternate port with port 22 inactive on wlan

Sun Mar 08, 2015 3:22 am

set the port in /ip services

Who is online

Users browsing this forum: No registered users and 42 guests