Hi,
I am a very happy Mikrotik RB2011UiAS-2HnD-IN owner, but I think I have reached my limit trying to troubleshoot what seems to be a firewall miss configuration.
I was hoping someone on this forum could spot the “obvious” stupid mistake I made ![]()
-
The symptoms:
Everything works, but I am getting sometimes weird behaviour when trying to go on the internet when I have to refresh my Web page a few times for it to load… it would hang there… I would refresh and it would then work instantly. I have also a lot of DROPPED firewall rules that I do not really understand why they occur. I suspect that there is an issue between my Mikrotik Router and my ASUS Wifi router and that I may not have configured my firewall correctly or my routes. -
My Setup Overview:
Internet
|
@86.144.X.X
Mikrotik Router (192.168.0.0/24)
@192.168.0.254
|
@192.168.0.1
ASUS WIFI Router (192.168.1.0/24)
@192.168.1.1
|
Wifi Clients
3.My Setup in more details:
If I do a google: “what is my ip”, I get @86.144.X.X
I have also noticed there is another IP automatically defined on my Mikrotik router routes (172.16.14.X) which is obviously completely different from @86.144.X.X,I am not sure what it is… maybe the gateway for my ISP?
INTERNET
|
|
MIKROTIK ROUTER:
@192.168.0.254, WIFI disabled, DHCP server Disabled
Routes Defined:
a) (Dynamic/Automatic rule) 0.0.0.0/0: Gateway @172.16.X.X reachable pppoe-out1, Type Unicast, Distance 1, Scope 30, Target Scope 10
b) (Dynamic/Automatic rule) @172.16.X.X/32, Gateway pppoe-out1 reachable, type Unicast, Scope 10, Target Scope 10, pref. source @86.144.X.X
c) (Dynamic/Automatic rule) @192.168.0.0/24, Gateway bridge-local reachable, type Unicast, Scope 10, Target Scope 10, Pref. Source @192.168.0.254
d) (Rule I created manually) @192.168.1.0/24, Gateway 192.168.0.1, Type Unicast, Distance 1, Scope 30, Target Scope 10
|
|
ASUS WIFI ROUTER
@192.168.0.1
Gateway: @192.168.0.254
NAT Disabled
(I disabled NAT and explicitly defined a route on my Mikrotik router because I am running a TAP in between those 2 routers and I need to know which IP from the ASUS WIFI router the traffic belongs to)
I have enabled the Firewall on this router, with DOS protection and log any packet drops.
I cannot see any drop packets on the ASUS and therefore believes the issues I am getting are with my Mikrotik Firewall rules
- Mikrotik Firewal rules:
Below are the rule I have enabled
a) Chain: Input, Connection State: Established, Action: Accept
b) Chain: Input, Connection State: Related, Action: Accept
c) Chain: input, In. Interface: bridge-local, Action: Accept (Note: I added this rule because I was getting a lot of drop packets and if I remember well I was having issue connecting to my Mikrotik router from my ASUS WIFI Network)
d) Chain: input, Connection State: Invalid, Action: Drop, Log enabled (Note: Only getting a few hits)
[I have also 3 rules to stop port scan and stop DOS I found on this forum, I am not listing them here because they do not have any hits so I dont believe they can be the source of the problem. I am not sure if that means they are in the wrong place and I should maybe move those rules to the top]
e) Chain: input, Action: Drop, Log Enabled (Note: I am getting a lot of hits! I suspect this is maybe where the problem is)
f) Chain: forward, Connection State: Established, Action: Accept (Note: Most of the traffic goes through this rule it seems… gigabytes!)
g) Chain: forward, Connection State: Related, Action: Accept
h) Chain: forward, In. Interface: Bridge-Local, Action: Accept
i) Chain: forward, Connection State: Invalid, Action: Drop, Log enabled (No Hit at all)
j) Chain: forward, Action: Drop (No hit at all)
When looking at my Mikrotik logs I am getting a lot of DROP from rule e) such as:
(dozens of those every minutes or so, I think this is traffic from gmail! why does it get dropped…)
DROP_IN_Last. input: in:pppoe-out1 out:(none), proto TCP (ACK,PSH), 64.233.167.108:993->86.144.X.X:53353, len 177
(every minutes or so)
DROP_IN_Last. input: in:pppoe-out1 out:(none), proto 2, 0.0.0.0->224.0.0.1, len 36
(every minutes or so)
DROP_IN_Last. input: in:ether1-gateway out:(none), src-mac 84:26:XX:XX:XX:XX, proto 2, 0.0.0.0->224.0.0.1, len 36
(every minutes or so)
DROP_IN_Invalid. input: in:pppoe-out1 out:(none), proto TCP (RST), 108.160.173.65:443->86.144.X.X:50552, len 40
I have the feeling I haven’t configured my Firewall correctly… but I don’t really know what I have done wrong! ![]()
If anyone could help that would be great.
Thanks.
B.