Sign inSign up

snegowiki/ocserv

By snegowiki

Updated almost 2 years ago

OpenConnect Server

Image
Networking
1

1.5K

snegowiki/ocserv repository overview

OpenConnect Server (ocserv)

docker-compose.yml

services:
  ocserv:
    image: snegowiki/ocserv
    restart: unless-stopped
    container_name: ocserv
    hostname: example.domain.com
    environment:
      OC_SECRET: "secret"
      ROUTE1: "route = default"
      ROUTE2: "no-route = 127.0.0.0/255.0.0.0"
      ROUTE3: "no-route = 192.168.0.0/255.255.0.0"
      ROUTE4: "no-route = 10.0.0.0/255.0.0.0"
      ROUTE5: "route = 192.168.99.0/255.255.255.0"
    ports:
      - 443:443/udp
      - 443:443
    # volumes:
    #   - "/opt/ocserv:/etc/ocserv"
    sysctls:
      - net.ipv4.ip_forward=1
    cap_add:
      - NET_ADMIN
    security_opt:
      - no-new-privileges

This will be enough for a test run (with selfsigned certificate). The URI will be like this: example.domain.com/?secret. Default credentials: test \ test

Additions

Remove test user
docker exec -ti ocserv ocpasswd -c /etc/ocserv/ocpasswd -d test
Add new user
docker exec -ti ocserv ocpasswd -c /etc/ocserv/ocpasswd username

If You’d Like to Support the Project

Your support helps me keep existing solutions up-to-date and continue developing new ones. Every contribution, big or small, allows me to improve and expand, ensuring I can provide the best tools and resources for you.

  • Bitcoin (BTC): bc1qdqccd79jwg4yfstt0j78m2r4lt2nuh34c662g3
  • Ethereum (ETH): 0xf610E868310C9de11ca5C3C6dE4213C2417Dd473
  • Litecoin (LTC): LMk3YSchxSaXidDs2jTv6XZZLRLj8eqxVo
  • Tether (USDT, TRC-20): TLGPgMLVaogPcRxWp54adb9EDBTLNRQLhm
  • Tether (USDT, ERC-20): 0xf610E868310C9de11ca5C3C6dE4213C2417Dd473
  • Ripple (XRP): rLnN345FZQAu4LnpTjChdvJtNXRPkWLQhm
  • Monero (XMR): 4BDCioqGHh15vqbJyAwf1acCLSvQLn8DFF5WG96e9yEegXdyUGiCSLzRiWV5fpZVw3KoHqAd7E4pEAQKQu8DjYHgP6Qst5H

Tag summary

Content type

Image

Digest

sha256:da075da5d

Size

11.7 MB

Last updated

almost 2 years ago

docker pull snegowiki/ocserv