Created
May 2, 2025 12:18
-
-
Save orion55/4e8f68859afe07add2a3c78b21e5e370 to your computer and use it in GitHub Desktop.
2 OpenVPN tunnels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. cd /usr/local/etc/rc.d | |
| ln -s openvpn openvpn_voip | |
| 2. /etc/rc.conf | |
| openvpn_enable="YES" | |
| openvpn_configfile="/usr/local/etc/openvpn/openvpn.conf" | |
| openvpn_voip_enable="YES" | |
| openvpn_voip_configfile="/usr/local/etc/openvpn/gw.conf" | |
| 3.service openvpn restart | |
| service openvpn_voip start | |
| ifconfig tun0 # сервер | |
| ifconfig tun1 # клиент |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment