prof7bit / udp-reverse-tunnel

Create an UDP-over-UDP reverse tunnel to make a VPN server behind (CG-)NAT accessible from the outside
30 stars 13 forks source link

Prevent log flooding #3

Closed DmitryMyadzelets closed 1 year ago

DmitryMyadzelets commented 1 year ago

The outside agent floods the log when receives UDP packets while there is no any inside agent connected:

new client conection from x.x.x.x:40587
could not find tunnel connection for client, dropping package
new client conection from x.x.x.x:40587
could not find tunnel connection for client, dropping package
new client conection from x.x.x.x:40587
could not find tunnel connection for client, dropping package
...

A better approach would be to show such message just once and wait until at least one tunnel is created, e.g.:

new client conection from x.x.x.x:40587
could not find tunnel connection for client, dropping all following packages
waiting for incoming reverse tunnel
prof7bit commented 1 year ago

Yes, this is a good idea.

prof7bit commented 1 year ago

Fixed by 6ec3ab86ba673ac0d6a137f28a8203cf8f74d62a

freecode505 commented 3 weeks ago

@DmitryMyadzelets What are the client and server commands, how should they work?

freecode505 commented 3 weeks ago

Hello, how should it work?

Server:

./udp-tunnel -l 9092

customer

/udp-tunnel -o 51.79.84.21:9092 -s 127.0.0.1:445 -t 10

127.0.0.1:445

Is the listener for my ovpn server in UDP? true but I can't make a connection on this port