Closed 1-1-2 closed 9 months ago
it's not impossible there is a bug in tinyfecvpn,
but most likely it's your ISP dropping the link (precisely, nat mapping).
tinyfecvpn itself doesn't drop stale link. Also it sends a keep alive packet every 3s (see keep_alive_interval
) to try to avoid ISP dropping link. But some ISP may still decide to drop link if it's running long enough.
Try restarting client solve the problem. No idea what cause this. Maybe, like you said, the ISP drop the long-term connection. Convincing enough for me. May there be a reconnect strategy like 'no response after x mins'? Initiate a new link to walk around this. Scripts will do this but this might be a good feature?
thanks for the suggestion. will consider adding it.
May there be a reconnect strategy like 'no response after x mins'? Initiate a new link to walk around this. Scripts will do this but this might be a good feature?
I kind of remember why I didn't implement such a feature in tinyfecvpn. this feature is implemented in udp2raw, with udp2raw+ tinyfecvpn chained together it works similarly as including this in tinyfecvpn itself, although it's not super convenient. udp2raw acutally does more than this:
if you don't need faketcp, you can use the udp mode of udp2raw. udp mode just works like a normal udp tunnel, no iptables is needed.
Runing client on my local router. After a long time like one day without any requesting, link lost responding while tinyvpn still running in the background. And still, link is ESTABLISHED the mean time
client side
server side
Is this cause the server has a timeout to drop stale link?