Community discussions

MikroTik App
 
ciberica
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 69
Joined: Mon Mar 19, 2018 6:22 am

firewall

Sat Feb 02, 2019 5:23 am

[flash=][/flash]Can someone help me create a firewall rule so that clients can not access the winbox port through ethernet?

I created this rule but can continue to enter the rb2011

add action=drop chain=forward in-interface=bridge1 protocol=tcp src-port=8291
 
sid5632
Long time Member
Long time Member
Posts: 557
Joined: Fri Feb 17, 2017 6:05 pm

Re: firewall

Sat Feb 02, 2019 11:55 am

Use dst-port instead of src-port and change forward to input.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21930
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: firewall  [SOLVED]

Sat Feb 02, 2019 3:27 pm

Your question is not clear.
Do you mean.
a. clients on the LANS/VLANS behind the router going out to the internet and then reaching back to the router
b. clients on the LANS/VLANS behind the router accessing the router directly from there (lans/vlans to router)
c. clients on the internet coming from external WANIPs accessing the router

Advice.
1. Ensure you have latest firmware

Question
2. Why is winbox available on the external side? This is bad security!
At a minimum use port knocking and better use VPN if you must access winbox externally.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21930
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: firewall

Sat Feb 02, 2019 11:05 pm

I disagree all users should be cognizant of how Winbox is accessible and the following settings

a. input chain rules matter (access to router)
b. ip service list matters (access to services)
c. Users defined matters
 
ciberica
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 69
Joined: Mon Mar 19, 2018 6:22 am

Re: firewall

Sun Feb 03, 2019 2:47 am

Sorry for not being clear, I explain myself better

1- I have an RB2011 where in the eth10 arrives at CCR1009 with internet access.
2- In the RB2011 are connected 5 clients by ethernet, eth1, ether2, ether3, ....
3- all of them are in a brich
4-I do not want them to be able to access winbox. So they do not make brute force.

thank you very much for your apollo
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21930
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: firewall

Sun Feb 03, 2019 6:09 am

Thank you that is very clear,
The idea is to only give the IP addresses you want on your network to be able to access to the winbox.
This can be done in many ways.

One question is that are all the clients on the ports on ONE LAN or are they supposed to be separated from one another?
 
ghostt
just joined
Posts: 21
Joined: Tue Apr 24, 2018 4:07 pm
Location: Australia

Re: firewall

Sun Feb 03, 2019 8:29 am

You can create a "white-list" of IP addresses in Firewall, that could include your LAN and / or VPN, but NOT include your customer IP addresses.... Then simply allow Winbox from that IP address list only in input chain, not forward.
 
ciberica
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 69
Joined: Mon Mar 19, 2018 6:22 am

Re: firewall

Mon Feb 04, 2019 2:39 am

all clients are separated, each client is connected to an ethernet port

Who is online

Users browsing this forum: DanMos79, gianry, JunoBox, parm and 28 guests