Sign inSign up

sunteya/shadowvpn

By sunteya

Updated about 11 years ago

A docker for shadowvpn

Image
4

1.5K

sunteya/shadowvpn repository overview

sunteya/shadowsocks

ShadowVPN is A fast, safe VPN based on libsodium

Usage

  • Run shadowvpn server, it will generate a random password on start

    docker run -p 1123:1123/udp --device=/dev/net/tun --cap-add=NET_ADMIN sunteya/shadowvpn
    
  • Run shadowvpn server with custom password

    docker run -e SHADOWVPN_PASSWORD=password -p 1123:1123/udp --device=/dev/net/tun --cap-add=NET_ADMIN sunteya/shadowvpn
    
  • Run shadowvpn client with custom config file

    docker run -e SHADOWVPN_CONFIG_FILE=/etc/shadowvpn/client.conf -v "shadowvpn-client.conf:/etc/shadowvpn/client.conf" --device=/dev/net/tun --cap-add=NET_ADMIN sunteya/shadowvpn
    
  • Run shadowvpn on docker compose

    # docker-compose.yml
    
    server:
      image: sunteya/shadowvpn:0.1.7-1
      restart: always
      ports:
        - "1123:1123/udp"
      environment:
        - SHADOWVPN_PASSWORD=password
      devices:
        - /dev/net/tun
      cap_add:
        - NET_ADMIN
    
    client:
      image: sunteya/shadowvpn:0.1.7-1
      restart: always
      environment:
        - SHADOWVPN_CONFIG_FILE=/etc/shadowvpn/client.conf
      volumes:
        - shadowvpn-client.conf:/etc/shadowvpn/client.conf
      devices:
        - /dev/net/tun
      cap_add:
        - NET_ADMIN
    

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Tag summary

Content type

Image

Digest

sha256:331fe6fcd

Size

80.8 MB

Last updated

almost 11 years ago

docker pull sunteya/shadowvpn