I have such configuration:
Two Mikrotik routers (call them "Router1" and "Router2") with white external IP each. There is IPSEC policy in transport port between them and also IPIP tunnel, so I have interface for dynamic routing and etc.
Of course tunnel's interface on both routers have IP from private LAN address range. Also I add such rule to RAW table:
Code: Select all
chain=prerouting action=drop in-interface-list=ipip1 log=yes src-address-list=!VPN_NETS
VPN_NETS address list contains all networks behind another router and not includes white IPs of both routers.
All is working!
But, there are permanently such log messages (I put here log from Router1):
"firewall,info prerouting: in:ipip_Port out:(unknown 0), proto 4, [Router1 ext. IP]->[Router2 ext. IP], len 20"
Message appears every 10 seconds, so it can be IPIP keepalive packets.
I can't understand why these messages appears (due to Packet Flow Diagram outgoing packets can't be "IN" direction and in PREROUTING chain)!