Mainstay
Well-Known Member
- Reaction score
- 747
I am attempting to setup OpenVPN on an EdgeRouter Lite running 1.9.1.1.
I have been following instructions on the configuration from: https://community.ubnt.com/t5/EdgeMAX/OpenVPN-server-with-PAM-and-OpenVPN-IOS-Client-configuration/t...
I have built the RSA key and set the interfaces and when I hit commit the EdgeRouter just locks up.
Is this normal? Was I too impatient and should have waited it out? I left it for 10 minutes but all network traffic ceased and the system was unresponsive. A reboot took me back to the pre-commit and all my settings were retained (except the OVPN server).
My entries are as follows. Any help is greatly appreciated.
I have been following instructions on the configuration from: https://community.ubnt.com/t5/EdgeMAX/OpenVPN-server-with-PAM-and-OpenVPN-IOS-Client-configuration/t...
I have built the RSA key and set the interfaces and when I hit commit the EdgeRouter just locks up.
Is this normal? Was I too impatient and should have waited it out? I left it for 10 minutes but all network traffic ceased and the system was unresponsive. A reboot took me back to the pre-commit and all my settings were retained (except the OVPN server).
My entries are as follows. Any help is greatly appreciated.
Code:
ubnt@ubnt# set interfaces openvpn vtun0
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 encryption aes128
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 mode server
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--tls-server"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--proto udp"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--port 1194"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--push route 192.168.1.0 255.255.255.0"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--tun-mtu 1400"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--persist-key"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--persist-tun"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--persist-local-ip"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--persist-remote-ip"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--keepalive 8 30"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--comp-lzo"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--duplicate-cn"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--user nobody --group nogroup"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--plugin /usr/lib/openvpn/openvpn-auth-pam.so login"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--client-cert-not-required --username-as-common-name"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--verb 1"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 openvpn-option "--client-to-client"
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 server
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 server subnet 192.168.1.0/24
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 server topology subnet
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 tls ca-cert-file /config/auth/openvpn/keys/ca.crt
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 tls cert-file /config/auth/openvpn/keys/ovpn.mainstaycomputing.com.crt
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 tls dh-file /config/auth/openvpn/keys/dh2048.pem
[edit]
ubnt@ubnt# set interfaces openvpn vtun0 tls key-file /config/auth/openvpn/keys/ovpn.mainstaycomputing.com.key
[edit]
ubnt@ubnt# commit