Community discussions

MikroTik App
 
janux
newbie
Topic Author
Posts: 37
Joined: Tue Jan 30, 2018 9:52 am

Whats is correct way firewalling access from WAN?

Tue Feb 13, 2018 10:51 am

Hello!

I have an SXT LTE and wanted to limit access to ssh, www and winbox access only from local network.
Found some info and added such line

/ip firewall filter
add action=drop chain=input dst-port=8291 protocol=tcp

Thats for winbox, but as it seems it drops connection from everywhere, even from LAN?
What did I misconfigure?
I can access SXT LTE trough mactel from wifi router, but would be nice to do that from winbox on my laptop.

As for info I have connected to ether port of SXT LTE another mikrotik wifi router which acts as dhcp server for all my devices.
Probably it's not "nice" configuration of networks - since i'm new to all routeros stuff.
 
td32
Member Candidate
Member Candidate
Posts: 111
Joined: Fri Nov 18, 2016 5:55 am

Re: Whats is correct way firewalling access from WAN?  [SOLVED]

Tue Feb 13, 2018 11:42 am

add the following over that rule to allow lan access
/ip firewall filter
chain=input action=accept src-address=YourLanRange dst-port=8291 protocol=tcp
or you can just drop input only from your wan interface
/ip firewall filter
chain=input action=drop in-interface=YourWanInterface
 
janux
newbie
Topic Author
Posts: 37
Joined: Tue Jan 30, 2018 9:52 am

Re: Whats is correct way firewalling access from WAN?

Tue Feb 13, 2018 12:57 pm

add the following over that rule to allow lan access
/ip firewall filter
chain=input action=accept src-address=YourLanRange dst-port=8291 protocol=tcp
or you can just drop input only from your wan interface
/ip firewall filter
chain=input action=drop in-interface=YourWanInterface
Thank You, getting clearer and clearer with every answer :)

Who is online

Users browsing this forum: adimihaix, Bing [Bot], GoogleOther [Bot], hex2bin, sebi099 and 159 guests