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
docker exec -ti ocserv ocpasswd -c /etc/ocserv/ocpasswd -d test
docker exec -ti ocserv ocpasswd -c /etc/ocserv/ocpasswd username
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.
bc1qdqccd79jwg4yfstt0j78m2r4lt2nuh34c662g30xf610E868310C9de11ca5C3C6dE4213C2417Dd473LMk3YSchxSaXidDs2jTv6XZZLRLj8eqxVoTLGPgMLVaogPcRxWp54adb9EDBTLNRQLhm0xf610E868310C9de11ca5C3C6dE4213C2417Dd473rLnN345FZQAu4LnpTjChdvJtNXRPkWLQhm4BDCioqGHh15vqbJyAwf1acCLSvQLn8DFF5WG96e9yEegXdyUGiCSLzRiWV5fpZVw3KoHqAd7E4pEAQKQu8DjYHgP6Qst5HContent type
Image
Digest
sha256:da075da5d…
Size
11.7 MB
Last updated
almost 2 years ago
docker pull snegowiki/ocserv