servers/roles/ocserv
2025-05-16 14:26:39 +02:00
..
files ocserv: use numeric ID instead of arbitrary USERNAME for nft chain name 2025-05-16 14:26:39 +02:00
handlers Add ocserv role 2025-04-12 18:38:48 +02:00
meta Add nginx as a role dependency where required 2025-04-12 18:51:31 +02:00
tasks Add ocserv role 2025-04-12 18:38:48 +02:00
templates ocserv: support UDP 2025-05-16 14:26:26 +02:00
README.md Add ocserv role 2025-04-12 18:38:48 +02:00

Install and configure ocserv with a script to configure nftables on (dis)connection.

Create a self‐signed CA authority for issuing user certificates. User and group are read from the CN and OU certificate subject fields, respectively. To configure VPN groups, define the variable vpn as follows:

"vpn": {
    "network": "<VPN network>"
    "routes": {
        "<group>": [ "<route>", … ]
        …
    }
}