Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:services:vpn:openvpn:client [2021/04/07 21:20] – [3. VPN service] allow shell variable/command expansion vgaetera | docs:guide-user:services:vpn:openvpn:client [2021/09/27 03:25] – [2. Firewall] vgaetera | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| {{section> | {{section> | ||
| - | ===== Command-line | + | ===== Command-line |
| ==== 1. Preparation ==== | ==== 1. Preparation ==== | ||
| - | Install the packages | + | Install the required |
| <code bash> | <code bash> | ||
| Line 17: | Line 17: | ||
| opkg update | opkg update | ||
| opkg install openvpn-openssl | opkg install openvpn-openssl | ||
| - | |||
| - | # Configuration parameters | ||
| - | OVPN_DIR="/ | ||
| - | OVPN_ID=" | ||
| </ | </ | ||
| ==== 2. Firewall ==== | ==== 2. Firewall ==== | ||
| - | Consider VPN network as public | + | Consider VPN network as public. |
| + | Assign | ||
| <code bash> | <code bash> | ||
| Line 37: | Line 34: | ||
| ==== 3. VPN service ==== | ==== 3. VPN service ==== | ||
| - | Save your client profile | + | Save your client profile |
| <code bash> | <code bash> | ||
| # Save VPN client profile | # Save VPN client profile | ||
| umask go= | umask go= | ||
| - | cat << EOF > ${OVPN_DIR}/${OVPN_ID}.conf | + | cat << EOF > /etc/ |
| COPY_PASTE_CLIENT_PROFILE_HERE | COPY_PASTE_CLIENT_PROFILE_HERE | ||
| EOF | EOF | ||
| - | |||
| - | # Configure VPN service | ||
| - | sed -i -e " | ||
| - | / | ||
| - | \$a user nobody | ||
| - | / | ||
| - | \$a group nogroup | ||
| - | " ${OVPN_DIR}/ | ||
| / | / | ||
| </ | </ | ||