How igchiemelie/vpn-server works
This repository demonstrates UDP NAT traversal by coordinating a client script with GitHub Actions jobs that run OpenVPN or WireGuard servers. The client identifies its NAT mapping and publishes connection details in a commit; the selected job uses that information to configure a VPN server, discover its own public mapping, and send periodic UDP packets to punch through NAT. It then provides client connection instructions. The README documents these interactions, but no source excerpts were supplied, so relationships below rely on that documentation; implementation details beyond it are omitted.
Main entry points: openvpn-server.yml OpenVPN Job · run.sh Client Script · wireguard-server.yml WireGuard Job · client.ovpn OpenVPN Config
Components 17
Client Setup
- Client Script
run.sh - NAT Check
run.sh - Client STUN Mapping
run.sh - Client Keepalive
run.sh
GitHub Coordination
- Commit Listener
.github/workflows/openvpn-server.yml
VPN Workflows
- OpenVPN Job
.github/workflows/openvpn-server.yml - WireGuard Job
.github/workflows/wireguard-server.yml - OpenVPN Server
.github/workflows/openvpn-server.yml - WireGuard Server
.github/workflows/wireguard-server.yml - Server STUN Mapping
.github/workflows/openvpn-server.yml - UDP NAT Punching
.github/workflows/openvpn-server.yml
VPN Configurations
- OpenVPN Config
client.ovpn - Server Config
server.ovpn
Other components
- VPN User
- GitHub Repository
- STUN Service
- VPN Client
Connections 19
- VPN User → Client Script: runs
README.md - Client Script → NAT Check: checks NAT
README.md - Client Script → Client STUN Mapping: gets mapping
README.md - Client STUN Mapping → STUN Service: queries
README.md - Client Script → GitHub Repository: pushes mapping
README.md - Client Script → Client Keepalive: maintains mapping
README.md - GitHub Repository → Commit Listener: provides commit
README.md - Commit Listener → OpenVPN Job: starts on request
README.md - Commit Listener → WireGuard Job: starts on request
README.md - OpenVPN Job → OpenVPN Server: sets up
README.md - WireGuard Job → WireGuard Server: sets up
README.md - OpenVPN Job → Server STUN Mapping: discovers mapping
README.md - Server STUN Mapping → STUN Service: queries
README.md - OpenVPN Job → UDP NAT Punching: sends UDP probes
README.md - WireGuard Job → UDP NAT Punching: sends UDP probes
README.md - OpenVPN Job → OpenVPN Config: prints instructions
README.md - OpenVPN Job → Server Config: uses configuration
README.md - OpenVPN Config → VPN Client: configures
README.md - VPN User → VPN Client: connects
README.md