neilalexander / sigmavpn Goto Github PK
View Code? Open in Web Editor NEWLight-weight, secure and modular VPN solution which makes use of NaCl encryption (also available for Android using jnacl in "sigmavpn-android")
Light-weight, secure and modular VPN solution which makes use of NaCl encryption (also available for Android using jnacl in "sigmavpn-android")
https://github.com/neilalexander/sigmavpn/blob/master/intf/intf_udp.c#L125:
inet_ntop(AF_INET, (struct...
should probably be
inet_ntop(AF_INET6, (struct...
I was just taking a quick look at the code, I'd make a pr otherwise.
hi.
root@ar:/sigmavpn# ./sigmavpn/sigmavpn#
SigmaVPN.
Copyright (c) 2011 Neil Alexander T. All rights reserved.
Unable to load protocol nacl0: /usr/local/lib/sigmavpn//proto_nacl0.o: cannot open shared object file: No such file or directory
root@ar:
root@ar:/sigmavpn# ls /usr/local/lib/sigmavpn//sigmavpn#
ls: cannot access /usr/local/lib/sigmavpn/: No such file or directory
root@ar:
why there is no sigmavpn dir under /usr/local/lib/?
The configure file in my server
[peername]
proto = raw
proto_publickey = 1e22c6af59f23cd3c40464c29e307cbd616e3f6a743f17a33dd6bd0ae4c79e71
proto_privatekey = cf1d8756fdde0f73f0c06f7c3f4cf456c3d74596b9e559570cf27d8b34059121
local = tuntap
local_interface = /dev/net/tun
peer = udp
peer_remoteaddr = 10.0.1.1
peer_remoteport = 4567
peer_localaddr = 10.0.2.1
peer_localport = 7654
I try the local_interface like /dev/tun
/dev/tun0
,but all failed
There is a openvpn service running at my server
The output of the ifconfig of openvpn is
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:696306 errors:0 dropped:0 overruns:0 frame:0
TX packets:1001071 errors:0 dropped:197 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:67189416 (67.1 MB) TX bytes:1126231698 (1.1 GB)
My system is debian
Using configuration file '/etc/sigmavpn.conf'
peername: Session active
Decryption failed (length 110, given result -1)
peername: Could not send packet with length 0 on local interface
Decryption failed (length 106, given result -1)
peername: Could not send packet with length 0 on local interface
Decryption failed (length 110, given result -1)
peername: Could not send packet with length 0 on local interface
Decryption failed (length 110, given result -1)
peername: Could not send packet with length 0 on local interface
Decryption failed (length 90, given result -1)
peername: Could not send packet with length 0 on local interface
Decryption failed (length 110, given result -1)
peername: Could not send packet with length 0 on local interface
Decryption failed (length 90, given result -1)
peername: Could not send packet with length 0 on local interface
Decryption failed (length 90, given result -1)
peername: Could not send packet with length 0 on local interface
Decryption failed (length 90, given result -1)
peername: Could not send packet with length 0 on local interface
Decryption failed (length 90, given result -1)
peername: Could not send packet with length 0 on local interface
Decryption failed (length 90, given result -1)
peername: Could not send packet with length 0 on local interface
Decryption failed (length 90, given result -1)
peername: Could not send packet with length 0 on local interface
Decryption failed (length 90, given result -1)
peername: Could not send packet with length 0 on local interface
Can't compile the master, considered creating a stable branch?
~/sigmavpn# make
cc -I/usr/local/include -O2 -fPIC -c dep/ini.c -o dep/ini.o
cc -I/usr/local/include -O2 -fPIC -c main.c -o main.o
main.c: In function ‘reload’:
main.c:159:14: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(pointer->controlpipe[1], &buffer, 1);
^
cc -I/usr/local/include -O2 -fPIC -c modules.c -o modules.o
cc -I/usr/local/include -O2 -fPIC -c naclkeypair.c -o naclkeypair.o
cc -I/usr/local/include -O2 -fPIC -c types.c -o types.o
cc -L/usr/local/lib -lsodium -pthread -ldl -L/usr/local/lib -lsodium -o naclkeypair naclkeypair.o
naclkeypair.o: In function `main':
naclkeypair.c:(.text.startup+0x2b): undefined reference to `crypto_box_curve25519xsalsa20poly1305_keypair'
collect2: error: ld returned 1 exit status
make: *** [naclkeypair] Error 1
I suggest to add the key word "const" to the type specifiers for parameters like the following.
Would you like to apply the advices from an article to more places in your source files?
Could you add a short description, screenshots and link to your website (if available) here on GitHub so that the use cases and target groups of your project are easily accessible to anyone coming to this GitHub page for the first time?
Many people use PPPoE as WAN. We get different IPs each time we connect PPPoE. On client side we often set bind to 0.0.0.0
to automatically let the socket choose outbound IP. ISPs may disconnect the link every few days. After reconnecting, we got a new IP. At that time, the socket created for the old outbound IP is no longer available.
We'll receive an error when writing to UDP socket:
Local write error -1: Permission denied
Then SigmaVPN exits. I think we should not exit here; we can close the old socket and create a new socket.
This problem can be bypassed by setting SigmaVPN to bind LAN IP like 192.168.1.1, which does not change, and let NAT do the IP mapping work. But still I think an extra NAT is not necessary if SigmaVPN can re-create sockets automatically.
I have configured as googlecode wiki said but always get error "Cannot assign requested address".
kernel: 3.14.3
config:
[test]
proto = nacltai
proto_publickey = xxxxxxxxxxxxxxxxxxx
proto_privatekey = xxxxxxxxxxxxx
local = tuntap
local_interface = sigmavpn
local_tunmode = 1
peer = udp
peer_ipv6 =0
peer_remoteaddr = 10.8.1.1
peer_remoteport = 995
peer_remotefloat = 1
peer_localaddr = 10.8.0.1
peer_localport = 995
It seems that you have neglected to actually check the nonce.
Hi,
Just compiled sigmavpn, but it complains about a missing config file:
root@d695d04bdc19 /root/sigmavpn/sigmavpn [169]# ./sigmavpn
SigmaVPN.
Copyright (c) 2011 Neil Alexander T. All rights reserved.
Configuration file '/usr/local/etc/sigmavpn.conf' could not be parsed
Do you have any example of a decent config file?
HI is there openwrt package for sigmavpn?
and windows support ?
thanks,
LP
Hello sir can u give me sample configuration of client and server.Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.