simple-vpn-demo
simple-vpn-demo copied to clipboard
Crashes after a while
Terminal log:
write tun_fd error: Invalid argument
Execute iptables -t nat -D POSTROUTING -s 10.8.0.0/16 ! -d 10.8.0.0/16 -m comment --comment 'vpndemo' -j MASQUERADE
Execute iptables -D FORWARD -s 10.8.0.0/16 -m state --state RELATED,ESTABLISHED -j ACCEPT
Execute iptables -D FORWARD -d 10.8.0.0/16 -j ACCEPT
found the issue, but don't know how to fix.
recvfrom udp_fd error: Resource temporarily unavailable
The server code is definitely easier than client code, just a few lines of C, nothing fancy. Did you accidentally close the file or delete something?
It may sound irresponsible but can you try rebooting/reinstalling or even change another Linux machine? :)
On 17 May 2018 at 07:06, MrBenFTW [email protected] wrote:
found the issue, but don't know how to fix.
recvfrom udp_fd error: Resource temporarily unavailable
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lxdcn/simple-vpn-demo/issues/8#issuecomment-389631566, or mute the thread https://github.com/notifications/unsubscribe-auth/AAkQ8WW7SWrP71FSWUu6nAYFKQZ66eQoks5tzHjQgaJpZM4T_zyQ .
I have reset it a few times, same issue. It could be that I have a few users at ones hitting it. I see that on error it terminates the program. Is there a way to get it to just ignore the error without termination?
Oh this simple-vpn-demo doesn't support multiple clients connect to it. You need to extend it in order to do so.
On 17 May 2018 at 09:45, MrBenFTW [email protected] wrote:
I have reset it a few times, same issue. It could be that I have a few users at ones hitting it. I see that on error it terminates the program. Is there a way to get it to just ignore the error without termination?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lxdcn/simple-vpn-demo/issues/8#issuecomment-389676014, or mute the thread https://github.com/notifications/unsubscribe-auth/AAkQ8flmhCrq1SjeqnUiHD3rcsNqaukSks5tzJ38gaJpZM4T_zyQ .
What’s it made to work with? IE can I modify it a bit to work with say.. socks 5? And how? Sorry for all the questions I’m sure you’re busy!
Tunneling and socks work on different OSI layers, but there are projects like tun2socks but I don't have much knowledge about it. I wrote a blog last year explaining this repository a little bit, hope it can be helpful for you to understand how it works: https://post.lxd.me/a-simple-vpn-tunnel-with-tun-device-demo-and-some-basic-concepts
On 17 May 2018 at 21:12, MrBenFTW [email protected] wrote:
What’s it made to work with? IE can I modify it a bit to work with say.. socks 5? And how? Sorry for all the questions I’m sure you’re busy!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lxdcn/simple-vpn-demo/issues/8#issuecomment-389800181, or mute the thread https://github.com/notifications/unsubscribe-auth/AAkQ8agcm6MDX64WPlZ7LB8K-aZCHBHOks5tzT8UgaJpZM4T_zyQ .
Oh right, I’m more looking for a vpn that I can change the port of, kind of like open vpn but with my own app. Any suggestions. I might try modifying the code of this one to see if I can just get it to ignore the error and keep going
found the issue, but don't know how to fix.
recvfrom udp_fd error: Resource temporarily unavailable
Crash fixed in https://github.com/lxdcn/simple-vpn-demo/pull/12 This is a common error.