Want to use your VPS as a VPN server (OpenVPN or WireGuard)? Here’s how to configure your firewall in the LumaDock control panel to allow secure VPN access while blocking everything else.
Recommended Rules
1. Allow VPN Port (choose one)
OpenVPN (UDP 1194):
Direction: Inbound
Action: Accept
Protocol: UDP
Port: 1194
Source IP: Any
Comment: OpenVPN
WireGuard (UDP 51820):
Direction: Inbound
Action: Accept
Protocol: UDP
Port: 51820
Source IP: Any
Comment: WireGuard
2. Allow SSH (for management)
Direction: Inbound
Action: Accept
Protocol: TCP
Port: 22
Source IP: your IP
Comment: SSH from admin
3. Allow ICMP (Ping)
Direction: Inbound
Action: Accept
Protocol: ICMP
Port: Any
Source IP: Any
Comment: Allow ping
4. Allow Outbound VPN Traffic
Direction: Outbound
Action: Accept
Protocol: Any
Port: Any
Destination IP: Any
Comment: Outbound internet
5. (Optional) Drop All Other Inbound
Direction: Inbound
Action: Drop
Protocol: Any
Port: Any
Source IP: Any
Comment: Drop other traffic
???? Extra Rule: Fallback HTTPS for VPN
If your users are behind strict firewalls, allow OpenVPN over TCP 443:
Direction: Inbound
Action: Accept
Protocol: TCP
Port: 443
Comment: Fallback HTTPS VPN
Need help setting up your VPN server? Reach out to LumaDock support for assistance or for pre-built OpenVPN/WireGuard images.