phantun icon indicating copy to clipboard operation
phantun copied to clipboard

[Feature Request] HeartBeat Support(NAT Support)

Open Handsome1080P opened this issue 3 years ago • 5 comments

Feature Request:

for nat,need hearbeat or keepalive

Handsome1080P avatar Dec 04 '21 11:12 Handsome1080P

This is something I considered, however, I didn't add it due to the consideration that UDP protocols like WireGuard already have PersistentKeepalive which would keep the connections open, so I did not found TCP keepalive that important to add in the short term.

dndx avatar Dec 04 '21 15:12 dndx

Yup,wg has the keepalive setting,but other udp tunnels not have one.Just follow ur priority.Thx

Handsome1080P avatar Dec 04 '21 15:12 Handsome1080P

I think let those udp tunnels that don't support keepalive join the heartbeat feature to be right.

kckm avatar Apr 12 '22 03:04 kckm

I think keep-alive is needed. If keep-alive packet is not received in-time, we must treat connection as broken, and re-establish TCP connection. WireGuard PersistentKeepalive cannot achieve this.

andreadaoud avatar Dec 16 '22 04:12 andreadaoud

Yup,wg has the keepalive setting,but other udp tunnels not have one.Just follow ur priority.Thx

Your issue can be temporarily addressed by setting a cron job which pings your server using nmap UDP scan.

Ginurx avatar Jul 19 '24 03:07 Ginurx