Code Monkey home page Code Monkey logo

sigmavpn's People

Contributors

jedisct1 avatar lmangani avatar neilalexander 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sigmavpn's Issues

why there is no sigmavpn dir under /usr/local/lib/ ?

hi.

root@ar:/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:
/sigmavpn#
root@ar:/sigmavpn# ls /usr/local/lib/sigmavpn/
ls: cannot access /usr/local/lib/sigmavpn/: No such file or directory
root@ar:
/sigmavpn#

why there is no sigmavpn dir under /usr/local/lib/?

Error "Unable to configure tuntap device: ioctl: Invalid argument"

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

Decryption failed

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

stable branch

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

Add description, screenshots, website

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?

Automatically create new UDP socket after interface shutdown

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.

Unable to bind UDP socket: Cannot assign requested address ?

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

missing configuration example?

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?

sigmavpn

Hello sir can u give me sample configuration of client and server.Thank you

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.