Then I test more primitive config and see that if GRE interface enabled - firewall ignored input traffic (no packets count, no log message)
Below is an example configuration and ping (ignored first rule action=drop chain=input log=yes protocol=gre)
if disable GRE interface or configure ipsec for gre than firewall work normal with rule protocol=gre (logs and count)
Is this behavior normal or bug?
(I tried the same rb750g3 and 6.42/44)
Code: Select all
[admin@MikroTik] > export compact
# jan/02/1970 01:26:36 by RouterOS 6.43.16
# software id = YVUN-8QQX
#
# model = 2011LS
# serial number = 3D7002218EF5
/interface gre
add local-address=192.168.61.3 name=gre-tunnel1 remote-address=192.168.61.1
/ip neighbor discovery-settings
set discover-interface-list=all
/ip address
add address=192.168.88.1/24 interface=ether2 network=192.168.88.0
add address=192.168.61.3/29 interface=ether1 network=192.168.61.0
add address=192.168.101.3/24 interface=gre-tunnel1 network=192.168.101.0
/ip firewall filter
add action=drop chain=input log=yes protocol=gre
add action=accept chain=input in-interface=!ether2 log=yes
/ip route
add distance=1 gateway=gre-tunnel1
[admin@MikroTik] > ip firewall filter print stats
Flags: X - disabled, I - invalid, D - dynamic
# CHAIN ACTION BYTES PACKETS
0 input drop 0 0
1 input accept 995 10
[admin@MikroTik] > /log print
01:24:22 system,info router rebooted
01:24:33 interface,info ether1 link up (speed 100M, full duplex)
01:24:34 interface,info ether2 link up (speed 1G, full duplex)
01:24:35 interface,info gre-tunnel1 link up
01:24:37 firewall,info input: in:gre-tunnel1 out:(unknown 0), src-mac c0:a8:3d:03:00:00, proto UDP, 0.0.0.0:5678->255.255.255.255:5678, len 147
01:25:11 firewall,info input: in:ether1 out:(unknown 0), src-mac b8:69:f4:00:eb:cc, proto UDP, 192.168.61.1:5678->255.255.255.255:5678, len 152
01:25:11 firewall,info input: in:gre-tunnel1 out:(unknown 0), src-mac c0:a8:3d:03:00:00, proto UDP, 0.0.0.0:5678->255.255.255.255:5678, len 147
01:26:03 firewall,info input: in:gre-tunnel1 out:(unknown 0), src-mac c0:a8:3d:03:00:00, proto ICMP (type 8, code 0), 192.168.61.1->192.168.101.3, len 50
01:26:04 firewall,info input: in:gre-tunnel1 out:(unknown 0), src-mac c0:a8:3d:03:00:00, proto ICMP (type 8, code 0), 192.168.61.1->192.168.101.3, len 50
01:26:05 firewall,info input: in:gre-tunnel1 out:(unknown 0), src-mac c0:a8:3d:03:00:00, proto ICMP (type 8, code 0), 192.168.61.1->192.168.101.3, len 50
01:26:06 firewall,info input: in:gre-tunnel1 out:(unknown 0), src-mac c0:a8:3d:03:00:00, proto ICMP (type 8, code 0), 192.168.61.1->192.168.101.3, len 50
01:26:07 firewall,info input: in:gre-tunnel1 out:(unknown 0), src-mac c0:a8:3d:03:00:00, proto ICMP (type 8, code 0), 192.168.61.1->192.168.101.3, len 50
01:26:11 firewall,info input: in:ether1 out:(unknown 0), src-mac b8:69:f4:00:eb:cc, proto UDP, 192.168.61.1:5678->255.255.255.255:5678, len 152
01:26:11 firewall,info input: in:gre-tunnel1 out:(unknown 0), src-mac c0:a8:3d:03:00:00, proto UDP, 0.0.0.0:5678->255.255.255.255:5678, len 147
01:26:14 system,info,account user admin logged in from 68:05:CA:5A:3F:CC via winbox
01:26:20 system,info,account user admin logged in via local