| Crates.io | corevpn-config |
| lib.rs | corevpn-config |
| version | 0.1.0 |
| created_at | 2026-01-02 17:16:42.708799+00 |
| updated_at | 2026-01-02 17:16:42.708799+00 |
| description | Configuration management for CoreVPN - server and client configuration |
| homepage | https://pegasusheavy.github.io/corevpn/ |
| repository | https://github.com/pegasusheavy/corevpn |
| max_upload_size | |
| id | 2018913 |
| size | 84,340 |
Configuration management for CoreVPN - server and client configuration.
.ovpn file generationuse corevpn_config::{ServerConfig, ConfigGenerator};
// Load server configuration
let config = ServerConfig::load("config.toml")?;
// Generate client configuration
let generator = ConfigGenerator::new(config, ca, ta_key);
let client_config = generator.generate_client_config("user@example.com", Some("User"))?;
// Save .ovpn file
std::fs::write(&client_config.filename(), &client_config.ovpn_content)?;
[server]
listen_addr = "0.0.0.0:1194"
public_host = "vpn.example.com"
[network]
subnet = "10.8.0.0/24"
dns = ["1.1.1.1", "1.0.0.1"]
[security]
cipher = "chacha20-poly1305"
tls_min_version = "1.3"
[logging]
connection_mode = "memory" # or "none" for ghost mode
Licensed under either of:
at your option.