Mikrotik Router Firewall Configuration Pdf

0 views
Skip to first unread message

Kaskuser Kiss

unread,
Aug 5, 2024, 3:30:33 AM8/5/24
to mortxsucphini
Thenew MikroTik flagship with the power of a whole fleet.Unleash the power of 100 Gigabit networking with L3 HardwareOffloading! This router can be a handy drop-in upgrade forexisting CCR1072 setups.

The ultimate heavy-duty home lab router with USB 3.0, 1G and2.5G Ethernet and a 10G SFP+ cage. You can mount four of thesenew routers in a single 1U rackmount space! Unprecedentedprocessing power in such a small form factor.


Your most affordable, compact, energy-efficient doorway tothe world of 100 Gigabit networking. This switch is the nextstep in upgrading existing 10 or 25 Gigabit networks.Multiple powering options, dual hot-swap power supplies.


MikroTik training sessions are organized and provided by MikroTik Training Centers at various locations around the World. They are attended by network engineers, integrators and managers, who would like to learn about routing and managing wired and wireless networks using MikroTik RouterOS.


MikroTik Academies are educational institutions such as universities, technical schools, colleges, vocational schools, and other educational institutions offering semester time based Internet networking courses for their academic students using MikroTik RouterOS as a learning tool.


Every year there are around 2000 - 3000 graduates who have successfully completed a MikroTik courses. Our certificates are recognized world wide and stand for good knowledge about network administration, using RouterBOARD and RouterOS.


RouterOS is the operating system of RouterBOARD hardware. It has all the necessary features for an ISP - routing, firewall, bandwidth management, wireless access point, backhaul link, hotspot gateway, VPN server and more. Quick and simple installation and an easy to use interface!


MikroTik manufactures routers, switches and wireless systems for every purpose, from small office or home, to carrier ISP networks, there is a device for every purpose. See our product catalog for a complete list of our products and their features.


To purchase our RouterBOARD, CCR, CRS and other products, and also to receive technical support and pre-sales consultation, please contact our wide network of distributors. See the map to find the nearest one.


The firewall implements packet filtering and thereby provides security functions that are used to manage data flow to, from and through the router. Along with the Network Address Translation it serves as a tool for preventing unauthorized access to directly attached networks and the router itself as well as a filter for outgoing traffic.


Network firewalls keep outside threats away from sensitive data available inside the network. Whenever different networks are joined together, there is always a threat that someone from outside of your network will break into your LAN. Such break-ins may result in private data being stolen and distributed, valuable data being altered or destroyed, or entire hard drives being erased. Firewalls are used as a means of preventing or minimizing the security risks inherent in connecting to other networks. Properly configured firewall plays a key role in efficient and secure network infrastrure deployment.


The firewall operates by means of firewall rules. Each rule consists of two parts - the matcher which matches traffic flow against given conditions and the action which defines what to do with the matched packet.


Firewall filtering rules are grouped together in chains. It allows a packet to be matched against one common criterion in one chain, and then passed over for processing against some other common criteria to another chain. For example a packet should be matched against the IP address:port pair. Of course, it could be achieved by adding as many rules with IP address:port match as required to the forward chain, but a better way could be to add one rule that matches traffic from a particular IP address, e.g.: /ip firewall filter add src-address=1.1.1.2/32 jump-target="mychain" and in case of successfull match passes control over the IP packet to some other chain, id est mychain in this example. Then rules that perform matching against separate ports can be added to mychain chain without specifying the IP addresses.


When processing a chain, rules are taken from the chain in the order they are listed there from top to bottom. If a packet matches the criteria of the rule, then the specified action is performed on it, and no more rules are processed in that chain (the exception is the passthrough action). If a packet has not matched any rule within the built-in chain, then it is accepted.


There is a bit different interpretation in each section with the similar configuration.

For example, with the following configuration line you will match packets where tcp-flags does not have SYN, but has ACK flags:


Lets say our private network is 192.168.0.0/24 and public (WAN) interface is ether1. We will set up firewall to allow connections to router itself only from our local network and drop the rest. Also we will allow ICMP protocol on any interface so that anyone can ping your router from internet.


To protect the customer's network, we should check all traffic which goes through the router and block unwanted. For icmp, tcp, udp traffic we will create chains, where will be dropped all unwanted packets:


However when I add these details to the mikrotik router it still does not get any internet access. I have setup the NAT rule for masquerade but still no internet access. Does someone know what step I am missing or can someone please guide me on doing this setup from scratch? I cant seem to find a google result that explains it in a way I can understand.


The RB951G-2HnD is a wireless SOHO Gigabit AP with a new generation Atheros CPU and more processing power. It has five Gigabit Ethernet ports, one USB 2.0 port and a high power 2.4GHz 802.11b/g/n wireless AP with antennas built in.


In comparison with previous model RB751G-2HnD, it has more powerful 600Mhz CPU (instead of 400Mhz), more RAM - 128MB instead of 64MB, same form factor and price. The device is very small and will look good in any home or office, wall mounting anchor holes are provided.


You should use the RB951G-2HnD IP address as a gateway IP address in DHCP and not point to your old firewall if you want to remove that appliance. User machines would then need to release and renew their IP address (to get the new setting).


I understand your point about it not being a firewall router as we usually use either SME or Untangled for our firewall boxes. I just find it strange that it refused to get internet access. Also I am testing internet from the mikrotik itself, not devices connected to the mikrotik so it wont have anything to do with its local network settings.


Try to troubleshoot next time you test:

Does it ping the IPS router? If you traceroute to internet (8.8.8.8) does it go via the ISP router? does it drop after that?

Did you put the default route in the Mikrotik correctly?


Once the Mikrotik can ping the IPS router and traceroute past it to the internet then you will need to configure lan access: a LAN subnet, a NAT rule for the LAN subnet and dhcp with dns server settings etc.


I have implemented a Mikrotik RB2011 series router/firewall that works great with the exception that I have realized the Mikrotik firewall is very lacking compared to the UTM firewall that was on the old Fortinet router/firewall. I'm thinking of taking a mini PC and installing UTM 9 software firewall on it. Then using that UTM 9 software firewall computer/device between my Internet connection and my Mikrotik router/firewall which serves DHCP, performs NAS, queuing, etc. (all the stuff the Mikrotik does well).


Have any of you ever attempted such a configuration to combine UTM with a Mikrotik device before? Should I turn the firewall in the Mikrotik completely off and just use it as the router (dhcp server, qos, etc.) and let the Sophos UTM software firewall do it's thing as the sole perimeter firewall? In summary, separate out the firewall from the router. Which is how we do things on the big complex telecom networks.


In addition to the base needs of a firewall which I'm sure this Sophos software firewall can do well, the reason I want to use the Sophos is to block remote access applications (Teamviewer primarily, it's a threat to my network. Please don't say that this remote access software policing a policy issue. For certain reasons, I can't control every computer in our work space. But I don't want Teamviewer to work behind my firewall on my network (even my guest network, I don't want remote access software to work). On the old Fortinet, blocking Teamviewer and a range of applications was a 10 minute configuration task.


I can block websites OK on the Mikrotik router, but even Mikrotik themselves don't seem to have a clue how to block the Teamviewer app (been a question on their forum for going back probably 10 years without a valid answer. Amazing). I've seen the most nonsense I've seen on a topic with regards to trying to get the Mikrotik firewall to successfully block the Teamviewer app. Most of the people on the Mikrotik community board have no idea about proper security. They are just interested in getting retail Internet to as many downstream clients as possible.


If someone that has some knowledge of pairing the of the Sophos UTM firewall with a standard router appliance at the perimeter of the network it would be appreciated. Specifically, if they could guide on how I can set up the Sophos software firewall to block Teamviewer? Also, how would I do the NAT for my internal applications. Just do NAT on the Sophos software firewall and turn off the NAT on the Mikrotik?


Normally, someone would have responded to your post already, but this forum works best with specific questions instead of a general request for help in design and implementation. An unwritten rule here is "One topic per thread." That makes it easier for people to find answers here without creating a new thread for a topic that's already been addressed.

3a8082e126
Reply all
Reply to author
Forward
0 new messages