hi , i know this is an old topic , but 2 days ago , i have upgraded my x86 router from version 5.22 to 6rc5 and i have faced the exact same problem .
with 200 online pptp users my ip route cache of 65K becomes full and router stops responding to ip packets. i can login to it via mac and send commands via terminal but winbox or ping do not work . the current solution that i have found is that max-cache size is related to memory of the device . i have installed more memory to it and now i have 1M cache size . but it is going to be used soon too . the hanging of every 4 hours ( 65 k cache size is fully used in this time ) is increased to 1M but in 1 day 150K is used till now and i think every 4 5 days i must reboot this routers.
this is in the case that memory / cpu /hdd is free and only ip route cache is filled. i also do not have any tarpit action , i have nat or syn firewall rules but they were normal in version 5.2x and 5.1x and i have this problem from the day that it is upgraded to version 6.
i also removed every package that i dont need from the mikrotik , even i removed ip v6 package from it and i only have 7 packages remained in it with no good result . and also there is no user manager or radius internal logging in this router. this is just a pptp server and gateway routing in it . when online pptp clients increase to more than 100 useres , the firewall connection do not show anything more , and ip route cache increases very fast till filling it and router hanging.
before such condition , mikrotik sees connections in ip --> firewall --> connection , and ip cache increase / decrease as the users get online and disconnect .
but after sometime this just goes to an increase of ip route cache and system hangs.
i can downgrade to version 5.22 again but isnt there any real solutions yet for this kernel bug ?
this is when the router was working normally
/ip route cache print
cache-size: 2075
max-cache-size: 65536
decreased > /ip route cache print
cache-size: 1935
max-cache-size: 65536
increased> /ip route cache print
cache-size: 2831
max-cache-size: 65536
decrease> /ip route cache print
cache-size: 2395
max-cache-size: 65536
> /ip route cache print
cache-size: 3644
max-cache-size: 65536
>increasing started with out decreasing any more after more than 100 onlines !
/ip route cache print
cache-size: 32804
max-cache-size: 65536
>this is my current status after 1 day uptime of router and increasing the memory to 1 GB of installed ram to the router. ( it will fill in the next 2 3 days i think )
/ip route cache print
cache-size: 120995
max-cache-size: 1048576
/ip firewall connection print
Flags: S - seen reply, A - assured
# PR.. SRC-ADDRESS DST-ADDRESS TCP-STATE TIMEOUT
nothing is here anymore ! connection tracking is active .
in this menu , down in winbox status it shows : 0 items out of 8430 , max entries 524288
so any helps would be appreciated.