Hi everyone,
I'm a beginner on Mikrotik, but i hardly need it to manage my little network. I have 30 machines on my network with some light particularities. I had been told that this Mikrotik system is easier to configure and has many others advantages like QoS etc. But now I'm confused about how to configure it correctly.
Let me explain my problem.
I want to configure a firewall on my router so that, in one hand, my private LAN would be secured from Internet attacks and, in second hand, my router would be protected.
First, I did a basic configuration. I have an public IP 208.X.X.X on one side, and my private LAN 192.168.19.0/24, on the other side. I have 2 kind of users: some who can surf on the internet and the others who don't but can use ftp service.
Here's my route configuration:
DST-ADDRESS PREF-SRC GATEWAY-STATE GATEWAY DISTANCE INTERFACE
0 A S 0.0.0.0/0 reachable 208.X.X.X 1 ether2
1 ADC 208.X.X.X/30 208.X.X.X 0 ether2
2 ADC 192.168.19.0/24 192.168.19.X 0 ether1
I also configured DNS on the MKT router and it works. I created 2 address lists: 1 for FTP users and 1 for INTERNET users.
I added those rules in "ip firewall filter":
0 chain=input action=accept protocol=tcp src-address-list=INTERNET_hosts
1 chain=input action=drop protocol=tcp src-address-list=FTP_hosts dst-port=80
2 chain=input action=accept protocol=tcp src-address-list=FTP_hosts dst-port=21
3 X chain=input action=drop in-interface=ether2
and I have these NAT rules in "ip firewall nat"
0 ;;; NAT for FTP hosts
chain=srcnat action=masquerade src-address-list=FTP_hosts
1 ;;; NAT for INTERNET hosts
chain=srcnat action=masquerade src-address-list=INTERNET_hosts
My problem is that, even though i specifically mentionned (in Filter rules) that traffic on port 80 must be dropped for FTP hosts, they are still able to surf on the Internet alike my INTERNET hosts. But when I enable Filter rule n°3, no one on the LAN can open a web page. I don't understand why the Filter rule n°1 is not applied... ![]()
... may be I forgot to do something... ![]()
So, please help me understand what's wrong in my configuration.
Like I said before I'm a beginner on Mikrotik, that's why I'm asking this question:
With Mikrotik, when a packet is sent from the LAN to Internet, is it natted before filtered or the opposite? and what's happenning when it comes back from the Internet?
Thanks a lot, in advance, for your help.