K
K
ka-may2022-04-09 17:46:56
VPN
ka-may, 2022-04-09 17:46:56

Why doesn't IDLE Timeout work in RouterOS?

Colleagues, please tell me:

RouterOS has an IDLE Timeout parameter in the PPP profile properties, the problem is that the inactivity time is constantly reset by protocols like WSD and UPNP that crap in the tunnel.
Is it possible to somehow configure RouterOS so that it does not consider this traffic a condition for resetting the inactivity time?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ka-may, 2022-04-19
@ka-may

:local a 0
/ip fi ma add chain=prerouting action=accept src-address=$"remote-address" protocol=tcp dst-port=3389,445 comment=$"user"
while ($a!=60) do ={
:local j [ip fi ma get [find comment=$user] packets]
:delay 10
:local k [ip fi ma get [find comment=$user] packets]
if ($j=$k) do {: set a (a+1)}
if ($j!=$k) do {:set a 0}
}
/ppp secrets disable [find name=$user]
/ppp active remove [find name=$user]
:delay 20
/ppp secrets enable [find name=$user]

Z
Zerg89, 2022-04-10
@Zerg89

Try filtering on the preroute, on the raw tab for the necessary ports, if that doesn't work, I have an idea only a firewall or disabling the default route in the connection settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question