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:pptp:server [2020/11/28 11:12] – [3. VPN service] optimize code vgaetera | docs:guide-user:services:vpn:pptp:server [2023/03/14 13:32] – consolidate variable naming vgaetera | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== PPTP server ====== | ====== PPTP server ====== | ||
| - | {{section> | + | {{section> |
| ===== Introduction ===== | ===== Introduction ===== | ||
| * This how-to describes the method for setting up [[wp> | * This how-to describes the method for setting up [[wp> | ||
| - | * Follow [[docs: | + | * Follow [[docs: |
| ===== Goals ===== | ===== Goals ===== | ||
| {{section> | {{section> | ||
| - | ===== Instructions | + | ===== Command-line instructions |
| ==== 1. Preparation ==== | ==== 1. Preparation ==== | ||
| - | Set up [[docs: | + | Install the required |
| - | Install the packages | + | Specify |
| <code bash> | <code bash> | ||
| Line 20: | Line 20: | ||
| # Configuration parameters | # Configuration parameters | ||
| - | PPTP_POOL=" | + | VPN_POOL=" |
| - | PPTP_USER=" | + | VPN_USER=" |
| - | PPTP_PASS=" | + | VPN_PASS=" |
| </ | </ | ||
| ==== 2. Firewall ==== | ==== 2. Firewall ==== | ||
| Enable conntrack helper to allow related GRE traffic. | Enable conntrack helper to allow related GRE traffic. | ||
| - | Consider VPN network as private | + | Consider VPN network as private. |
| + | Assign | ||
| Allow access to VPN server from WAN zone. | Allow access to VPN server from WAN zone. | ||
| Line 60: | Line 61: | ||
| uci set pptpd.pptpd.enabled=" | uci set pptpd.pptpd.enabled=" | ||
| uci set pptpd.pptpd.logwtmp=" | uci set pptpd.pptpd.logwtmp=" | ||
| - | uci set pptpd.pptpd.localip=" | + | uci set pptpd.pptpd.localip=" |
| - | uci set pptpd.pptpd.remoteip=" | + | uci set pptpd.pptpd.remoteip=" |
| uci -q delete pptpd.@login[0] | uci -q delete pptpd.@login[0] | ||
| uci set pptpd.client=" | uci set pptpd.client=" | ||
| - | uci set pptpd.client.username=" | + | uci set pptpd.client.username=" |
| - | uci set pptpd.client.password=" | + | uci set pptpd.client.password=" |
| uci commit pptpd | uci commit pptpd | ||
| / | / | ||
| Line 86: | Line 87: | ||
| pgrep -f -a pptpd | pgrep -f -a pptpd | ||
| ip address show; ip route show table all | ip address show; ip route show table all | ||
| - | ip rule show; ip -6 rule show; iptables-save; | + | ip rule show; ip -6 rule show; nft list ruleset |
| sysctl net.netfilter.nf_conntrack_helper | sysctl net.netfilter.nf_conntrack_helper | ||