mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-12-17 01:17:03 +01:00
feat: add configurable MTU support (#1417)
## Summary - Add `--mtu <size>` CLI option to configure tunnel MTU (valid range: 576-65535) - Add interactive prompt with user-friendly explanation for non-technical users - Write `tun-mtu` to server.conf and client template when custom value is set - OpenVPN auto-calculates MSSFIX based on the MTU value (no separate option needed) ## Use cases - PPPoE connections (typically need MTU ~1492) - Mobile/cellular networks with variable MTU - Networks with connectivity issues due to fragmentation ## Usage ```bash # CLI mode ./openvpn-install.sh install --mtu 1400 # Interactive mode prompts with explanation: # "MTU controls the maximum packet size. Lower values can help # with connectivity issues on some networks (e.g., PPPoE, mobile)." ``` Close https://github.com/angristan/openvpn-install/pull/1300 Co-authored-by: Fabian Druschke <fdruschke@outlook.com>
This commit is contained in:
@@ -44,6 +44,7 @@ That said, OpenVPN still makes sense when you need:
|
||||
- Uses [official OpenVPN repositories](https://community.openvpn.net/openvpn/wiki/OpenvpnSoftwareRepos) when possible for the latest stable releases
|
||||
- Firewall rules and forwarding managed seamlessly (native firewalld and nftables support, iptables fallback)
|
||||
- Configurable VPN subnet (default: `10.8.0.0/24`)
|
||||
- Configurable tunnel MTU (default: `1500`)
|
||||
- If needed, the script can cleanly remove OpenVPN, including configuration and firewall rules
|
||||
- Customisable encryption settings, enhanced default settings (see [Security and Encryption](#security-and-encryption) below)
|
||||
- Uses latest OpenVPN features when available (see [Security and Encryption](#security-and-encryption) below)
|
||||
@@ -272,6 +273,7 @@ The `install` command supports many options for customization:
|
||||
- `--port <num>` - OpenVPN port (default: `1194`)
|
||||
- `--port-random` - Use random port (49152-65535)
|
||||
- `--protocol <udp|tcp>` - Protocol (default: `udp`)
|
||||
- `--mtu <size>` - Tunnel MTU (default: `1500`)
|
||||
|
||||
**DNS Options:**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user