Code Monkey home page Code Monkey logo

govpn's Introduction

govpn

a simple implementation of vpn

Installation

govpn requires water to setup tun interface.

git clone https://github.com/dllexport/govpn
cd govpn
go get github.com/songgao/water
go build

Usage

govpn server runs on linux and client runs on macos, change the setup shell script if you want to run on other os.

  -cip string
        client tun ip (default "10.0.0.100")
  -k string
        encryption key (default "abcdefgqywuwyw")
  -m string
        run mode
  -p string
        connection protocol (default "udp")
  -se string
        server endpoint
  -sip string
        server tun ip (default "10.0.0.1")

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

govpn's People

Contributors

mhlau233 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

luckypoem

govpn's Issues

运行GO111MODULE=off go get -u -v github.com/dllexport/govpn/ 遇错

hi.
在Mac上,
cd $GOPATH
GO111MODULE=off go get -u -v github.com/dllexport/govpn/
没有遇错,顺利生成了可执行文件govpn在$GOPATH/bin/里面。

但是在linux vps上,
cd $GOPATH
GO111MODULE=off go get -u -v github.com/dllexport/govpn/
显示:
...
github.com/dllexport/govpn

github.com/dllexport/govpn

src/github.com/dllexport/govpn/server_linux.go:40:12: undefined: ipv4
root@p1601860745:/go1.16.3/go/gopath# which govpn
root@p1601860745:
/go1.16.3/go/gopath#

真是怪事。怎么解决?

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.