Community discussions

MikroTik App
 
Hawkster13
just joined
Topic Author
Posts: 11
Joined: Sat Dec 28, 2013 6:52 pm

Block External IP RouterOS Login

Sat Nov 15, 2014 2:38 pm

Hi all,

I would like to block/disable the option for being able to connect to my RouterOS config from my Public/external IP.
I would want to only be able to login from my internal IP.

As I am seeing a lot of connections trying to login into my RouterOS by the Public IP I have.

Thanks in advance for your help. :)
 
marrold
Member
Member
Posts: 427
Joined: Wed Sep 04, 2013 10:45 am

Re: Block External IP RouterOS Login

Sat Nov 15, 2014 3:02 pm

You need to drop input traffic on your WAN interface(s). Be careful, if you get it wrong you might block access yourself.

Safe mode is your friend.
 
Rudios
Forum Veteran
Forum Veteran
Posts: 977
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: Block External IP RouterOS Login

Sat Nov 15, 2014 3:17 pm

Build your firewall rules something like this

ros code

/ip firewall filter
add chain=input connection-state=invalid action=block comment="Block invalid packets"
add chain=input connection-state=established comment="Allow packets for established connections"
add chain=input connection-state=related comment="Allow packets for related connections"
add chain=input in-interface=<your local internal lan> comment="Allow packets coming from your local/internal lan"
add chain=input action=block comment="Block all other traffic"
 
ditonet
Forum Veteran
Forum Veteran
Posts: 835
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: Block External IP RouterOS Login

Sat Nov 15, 2014 3:42 pm

Restrict access to router using 'IP/Services' as described here:
http://wiki.mikrotik.com/wiki/Manual:IP/Services

HTH,
 
Hawkster13
just joined
Topic Author
Posts: 11
Joined: Sat Dec 28, 2013 6:52 pm

Re: Block External IP RouterOS Login

Mon Nov 17, 2014 1:41 am

Thank you guys! Got it working much appreciated :D

Who is online

Users browsing this forum: No registered users and 29 guests