V
V
Vitaly Tokarenko2016-04-08 18:08:17
Mikrotik
Vitaly Tokarenko, 2016-04-08 18:08:17

Open Mikrotik ports after basic setup. Is there a danger?

I set up a gateway based on Mikrotik CRS125 in the basic version (after a full reset)
Disabled unnecessary ports in services, opened a port on vpn, forwarded a port on rdp
And scanned for open ports. Here is the output:
22/tcp open ssh MikroTik RouterOS sshd (protocol 2.0)
135/tcp filtered msrpc
443/tcp open ssl/https? 1723 / tcp open pptp MikroTik
(Firmware: 1)
Those. in addition to the 22, 1723, 3389 ordered by me, more ports were lit up. Can anyone tell me if there is a danger in this set?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikita Sizov, 2016-04-10
@vitaliy_t1

The last two are like working NAT. 443 - Mikrotik web server, 8291 - Winbox (software for managing Mikrotik), 2000 - see description.
Why not open the ones you need in the firewall and close the rest? Then you don't have to figure it out.
For you, it will look something like this (I haven’t tested it, I’m writing from memory):
/ip firewall filter
add chain=forward src-address=local subnet
add chain=input protocol=tcp dst-port=22,1723
add chain=input protocol=gre
add chain=forward protocol=tcp dst-port=3389 dst-address=terminal server address
add chain=input action=drop
add chain=forward action=drop
1. We allow local hosts to go to the Internet. Everything is open here, I usually open only http and https, the rest if necessary.
2. Allow incoming connections 1723 (pptp) and 22 (Mikrotik control via SSH). Using a standard port, by the way, is not safe, but here they suggested a very cool thing.
3. For PPTP, the GRE protocol is still needed
4. RDP access to the terminal server, or whatever you have.
5. We discard all other incoming ones
6. All other routable ones (through NAT, for example) too.

C
CityCat4, 2016-04-08
@CityCat4

Well, 443 is a webmord. 8291 is winbox. The rest I don't know.

P
paxlo, 2016-04-20
@paxlo

Disable everything except the main control tool. The safest option (and convenient) is ssh, change it to a non-standard port.
/ip ssh set strong-crypto=yes
/ip neighbor discovery set discover=no [find]
/tool ​​mac-server set disabled=yes [find]
/tool ​​mac-server mac-winbox set disabled=yes [find]
/tool ​​mac -server ping set enabled=no
/ip service disable [find where name!=ssh] set ssh port=34567

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question