Sign inSign up

homqyy/softethervpn-server

By homqyy

Updated almost 3 years ago

Base Repository: SoftEtherVPN/SoftEtherVPN:master

Image
0

226

homqyy/softethervpn-server repository overview

SoftEtherVPN on Docker

For Chinese, please read: README-zh

Repository Source Code: Homqyy/SoftEtherVPN

Base Repository: SoftEtherVPN/SoftEtherVPN:master

Feature Differences:

  • Supports automatic image building: linux/amd64, linux/arm64
  • No regional restrictions on route configuration
  • Logs display IP addresses

Supported Images

How to Run

exec vpncmd to manage vpnclient/vpnserver/vpnbridge:

docker exec -it <your_container_name> /vpn/bin/vpncmd
Docker

Server:

docker run -d --rm --name vpn-server \
  -v vpnserver-db:/vpn/db \
  -v /etc/localtime:/dev/localtime:ro \
  -p 443:443/tcp \
  -p 992:992/tcp \
  -p 1194:1194/udp \
  -p 5555:5555/tcp \
  -p 500:500/udp \
  -p 4500:4500/udp \
  -p 1701:1701/udp \
  --cap-add NET_ADMIN \
  --cap-add SYSLOG \
  homqyy/softethervpn-server

Client:

docker run -d --rm --name vpn-client \
  -v vpnclient-db:/vpn/db \
  -v /dev/net/tun:/dev/net/tun \
  -v /etc/localtime:/dev/localtime:ro \
  --cap-add NET_ADMIN \
  homqyy/softethervpn-client

Bridge:

docker run -d --rm --name vpn-bridge \
  -v vpnbridge-db:/vpn/db \
  -v /etc/localtime:/dev/localtime:ro \
  --cap-add NET_ADMIN \
  --cap-add SYSLOG \
  homqyy/softethervpn-bridge
Compose

Server:

version: '3'

services:
  vpn-server:
    image: homqyy/softethervpn-server
    cap_add:
      - NET_ADMIN
      - SYSLOG
    restart: always
    ports:
      - 444:443
      - 992:992
      - 1194:1194/udp
      - 5555:5555
      - 500:500/udp
      - 4500:4500/udp
      - 1701:1701/udp
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "vpnserver-db:/vpn/db"

volumes:
    vpnserver-db:

Client:

version: '3'

services:
  vpn-client:
    image: homqyy/softethervpn-client
    cap_add:
      - NET_ADMIN
    restart: always
    volumes:
      - "/dev/net/tun:/dev/net/tun"
      - "/etc/localtime:/etc/localtime:ro"
      - "vpnclient-db:/vpn/db"

volumes:
    vpnclient-db:

Bridge:

version: '3'

services:
  vpn-bridge:
    image: homqyy/softethervpn-bridge
    cap_add:
      - NET_ADMIN
      - SYSLOG
    restart: always
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "vpnbridge-db:/vpn/db"

volumes:
    vpnbridge-db:

Tag summary

Content type

Image

Digest

sha256:3297c36e1

Size

228.6 MB

Last updated

almost 3 years ago

docker pull homqyy/softethervpn-server