nicocha30 / ligolo-ng

An advanced, yet simple, tunneling/pivoting tool that uses a TUN interface.
GNU General Public License v3.0
2.85k stars 288 forks source link

Frequent Keepalive Timeouts #101

Closed uHACsTx closed 3 months ago

uHACsTx commented 3 months ago

Description When establishing a double pivot, I frequently receive a yamux EOF error, which manifests in a timeout and a dead or stopped connection. Sometimes the agent just closes, but sometimes ligolo has to be restarted, including the proxy, to make it work again.

Reproducing the Error Steps to reproduce the behavior:

Expected behavior The connection should not stop.

Screenshots image

Proxy information:

Agent information:

Additional context I was using the agent in the CPTS exam. The network connection might have been slow.

nicocha30 commented 3 months ago

"Keep Alive Timeout" errors are mainly caused by an unstable network or a loss of TCP connection. The latest version of Ligolo-ng (v0.7), still in alpha, supports automatic recovery of tunnels and listeners. You can run the agent with the -retry option to automatically retry the connection.