Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:services:vpn:pptp:server [2021/09/27 03:19] – [2. Firewall] vgaeteradocs:guide-user:services:vpn:pptp:server [2023/03/14 13:32] – consolidate variable naming vgaetera
Line 1: Line 1:
 ====== PPTP server ====== ====== PPTP server ======
-{{section>meta:infobox:howto_links#cli_skills&noheader&nofooter&noeditbutton}}+{{section>meta:infobox:howto_links#basic_skills&noheader&nofooter&noeditbutton}}
  
 ===== Introduction ===== ===== Introduction =====
   * This how-to describes the method for setting up [[wp>Point-to-Point_Tunneling_Protocol|PPTP]] server on OpenWrt.   * This how-to describes the method for setting up [[wp>Point-to-Point_Tunneling_Protocol|PPTP]] server on OpenWrt.
-  * Follow [[docs:guide-user:services:vpn:pptp:client|PPTP client]] to set up PPTP server and [[docs:guide-user:services:vpn:pptp:extras|PPTP extras]] for additional tuning.+  * Follow [[docs:guide-user:services:vpn:pptp:client|PPTP client]] for client setup and [[docs:guide-user:services:vpn:pptp:extras|PPTP extras]] for additional tuning.
  
 ===== Goals ===== ===== Goals =====
Line 11: Line 11:
 ===== Command-line instructions ===== ===== Command-line instructions =====
 ==== 1. Preparation ==== ==== 1. Preparation ====
-Set up [[docs:guide-user:services:ddns:client|DDNS client]] if necessary. 
 Install the required packages. Install the required packages.
 Specify the VPN server configuration parameters. Specify the VPN server configuration parameters.
Line 21: Line 20:
  
 # Configuration parameters # Configuration parameters
-PPTP_POOL="192.168.6.128-254" +VPN_POOL="192.168.6.128-254" 
-PPTP_USER="USERNAME" +VPN_USER="USERNAME" 
-PPTP_PASS="PASSWORD"+VPN_PASS="PASSWORD"
 </code> </code>
  
Line 62: Line 61:
 uci set pptpd.pptpd.enabled="1" uci set pptpd.pptpd.enabled="1"
 uci set pptpd.pptpd.logwtmp="0" uci set pptpd.pptpd.logwtmp="0"
-uci set pptpd.pptpd.localip="${PPTP_POOL%.*}.1" +uci set pptpd.pptpd.localip="${VPN_POOL%.*}.1" 
-uci set pptpd.pptpd.remoteip="${PPTP_POOL}"+uci set pptpd.pptpd.remoteip="${VPN_POOL}"
 uci -q delete pptpd.@login[0] uci -q delete pptpd.@login[0]
 uci set pptpd.client="login" uci set pptpd.client="login"
-uci set pptpd.client.username="${PPTP_USER}" +uci set pptpd.client.username="${VPN_USER}" 
-uci set pptpd.client.password="${PPTP_PASS}"+uci set pptpd.client.password="${VPN_PASS}"
 uci commit pptpd uci commit pptpd
 /etc/init.d/pptpd restart /etc/init.d/pptpd restart
Line 88: 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; iptables-save -c +ip rule show; ip -6 rule show; nft list ruleset
-ip -6 rule show; ip6tables-save -c+
 sysctl net.netfilter.nf_conntrack_helper sysctl net.netfilter.nf_conntrack_helper
  
  • Last modified: 2023/10/29 01:14
  • by vgaetera