Git Product home page Git Product logo

lcvpn's People

Contributors

kanocz avatar karasz avatar morozovsk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lcvpn's Issues

encounter error on mac os x

hi.
after i ran "go get -u -v github.com/kanocz/lcvpn" under $GOPATH,
it shows:
...

github.com/kanocz/lcvpn

src/github.com/kanocz/lcvpn/iface.go:26:16: undefined: water.NewTUN
src/github.com/kanocz/lcvpn/iface.go:35:15: undefined: tenus.NewLinkFrom
src/github.com/kanocz/lcvpn/iface.go:89:11: undefined: "github.com/kanocz/lcvpn/netlink".DelRoute
yudeMacBook-Air:gopath brite$

how to fix the errors?

It can be use for my scene?

Hi,

I have a scene that i need solve with VPN. My home raspberry need connect to my VPN on amazon and my customers need connect their pc/ios/android devices to that same VPN on amazon to access to raspberry.

How i can do it with this tool?

Thanks.

connect through firewall (no port forwarding)

Hey,

can two servers connect to each other, if server 1 can contact server 2 but not the other way around due to firewall restrictions / missing port forwarding?

As Server 1 connects to Server 2, Server 2 should not need to connect to Server 1 anymore right (even tho it can't)?

I tried to set it up but i failed. No connection established between both hosts.

Lcvpn unexpectedly dying

Hello. This is me again =)
My lcvpn goes down, when VM containers trying to connect through it.
Thi is log:

May 20 18:49:25 phy1 lcvpn[32531]: panic: runtime error: slice bounds out of range
May 20 18:49:25 phy1 lcvpn[32531]: goroutine 21 [running]:
May 20 18:49:25 phy1 lcvpn[32531]: panic(0x788de0, 0xc82000e050)
May 20 18:49:25 phy1 lcvpn[32531]: #011/usr/local/go/src/runtime/panic.go:464 +0x3e6
May 20 18:49:25 phy1 lcvpn[32531]: main.sndrThread(0xc82001e050, 0xc8200519e0)
May 20 18:49:25 phy1 lcvpn[32531]: #011/home/golang/src/github.com/kanocz/lcvpn/main.go:180 +0x192e
May 20 18:49:25 phy1 lcvpn[32531]: created by main.main
May 20 18:49:25 phy1 lcvpn[32531]: #011/home/golang/src/github.com/kanocz/lcvpn/main.go:324 +0x1384
May 20 18:49:25 phy1 systemd[1]: lcvpn.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
May 20 18:49:25 phy1 systemd[1]: lcvpn.service: Unit entered failed state.
May 20 18:49:25 phy1 systemd[1]: lcvpn.service: Failed with result 'exit-code'.

slow performance

iperf on direct connection got 900mbps (1ms)
with lcvpn 500mbps

iperf over internet 600mbps stables between 2 servers(50ms)
with lcvpn 30mbps

Why this diference?

[Question] support for same subnet

Hi may I ask if the vpn supports VMs within same subnet but across different locations, as shown below:

can I only install the VPN on the 2 servers itself then route packet for all 4 VMs in the 2 servers?

image

[main]
port = 23456
broadcast = 192.168.2.255
netcidr = 24
recvThreads = 4
sendThreads = 4

[remote "prague"]
ExtIP = 10.0.0.2
LocIP = 192.168.2.2
route = 192.168.2.0/24

[remote "berlin"]
ExtIP = 10.0.0.3
LocIP = 192.168.2.1
route = 192.168.2.0/24

Not only UDP

It would be grate to use not only UDP, but TCP/ip protocol.

Error: Unable to get UDP socket: unknown port udp/

Hello.
I've got error: "Unable to get UDP socket: unknown port udp/"

Machine: virtualbox
ip: 192.168.1.50
conf:
[main]
port = 1234
aeskey = A3E8DD8E33C0887C6A86EF47AF6B008C00508B00FA18666658EBB2805D2BFF48

altkey = 1111111117C32FC42F1CEB0CAA54D40E9D1EEDAF14EBCBCECA429E1B2EF72D21

broadcast = 10.0.0.255
netcidr = 24
recvThreads = 4
sendThreads = 4

[remote "phy1.dc1"]
ExtIP = 192.168.1.50
LocIP = 10.0.0.1

Start:
/home/golang/bin/lcvpn -config /etc/lcvpn.conf -local phy1.dc1

Error:
2016/04/29 14:29:08 Interface allocated: tun0
2016/04/29 14:29:08 Interface parameters configured
2016/04/29 14:29:08 Unable to get UDP socket: unknown port udp/

It appears after update host kernel to 4.4.0-21-generic.

I've tried to change port to another - same errror.
Any ideas how to fix it?

license mit/bsd

The lcvpn project looks quite interesting, thank you. I would like experiment with it.

Would you consider changing the license to MIT or BSD (like Go)?

how is it decentralized?

From reading the docs, its not clear to me that its decentralized.

By decentralized, did you mean it supports more than one server to connect to?

UDP NAT hole punching

It will be awesome if you use stun server tu bypass NAT's

and other awesome option will be to support dynamicIP nodes.

in Europe lot of ISP provide a dynamicIP to their clients.
This is not a problem if you connect to a static public IP node like cloud providers but if we want real P2P Vpn we need to conect to all nodes, lot of these nodes can change their public IP after 1day-week so lcvpn could be resilent to that, something like check every X seconds if the ip is the same if not publish the ip to other nodes using a K/V(there are some public services on internet)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.