Repository navigation
Expand file tree
/
Copy pathconfig.toml.example
More file actions
79 lines (64 loc) · 1.98 KB
/
Copy pathconfig.toml.example
File metadata and controls
79 lines (64 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Example configuration file for ocserv-rs
# Copy this to config.toml and customize
## Server Configuration
[server]
# Address and port to listen on
listen = "0.0.0.0:8443"
# TLS certificate and private key paths
cert_path = "server.crt"
key_path = "server.key"
## Authentication Configuration
[auth]
# Banner message shown to users during login
# Optional - omit to disable banner
banner = "Welcome to AI4CE VPN"
### Password Authentication
[auth.password]
# Enable password-based authentication
enabled = true
# User list
# TODO: Future enhancement - support password hashing (bcrypt/argon2)
# For now, passwords are stored in plaintext in config file
# Make sure to protect this file with proper permissions!
[[auth.password.users]]
username = "test"
password = "test"
[[auth.password.users]]
username = "admin"
password = "admin"
[[auth.password.users]]
username = "admin"
password = "admin"
### SAML/SSO Authentication
[auth.saml]
enabled = false
# dev_idp_enabled = true # Use built-in mock IdP for testing
# idp_metadata_url = "https://vpn.example.com/dev/idp"
# idp_entity_id = "mock-idp"
# sp_entity_id = "ocserv-rs-sp"
# acs_url = "https://vpn.example.com/+CSCOE+/saml/sp/acs"
### OAuth2 Authentication
[auth.oauth2]
enabled = false
# client_id = "your-client-id"
# client_secret = "your-client-secret"
# redirect_uri = "https://vpn.example.com/+CSCOE+/oauth2/callback"
# auth_url = "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize"
# token_url = "https://login.microsoftonline.com/organizations/oauth2/v2.0/token"
## Network Configuration
[network]
# CIDR for client IP assignment
ipv4_pool = "10.10.0.0/24"
# ipv6_pool = "fd00::/64"
# DNS servers pushed to client
dns_servers = ["8.8.8.8", "8.8.4.4"]
# Split Tunneling: List of subnets to route through VPN
# Leave empty for Full Tunnel (Default Gateway)
# split_include = ["192.168.1.0/24", "10.0.0.0/8"]
split_include = []
# Tunnel MTU
mtu = 1280
## Performance Tuning
[performance]
buffer_size = 65535
channel_capacity = 256