关注我们: 微信公众号

微信公众号

电脑用户请使用手机扫描二维码

手机用户请微信打开后长按二维码 -> 识别二维码

微博

username pptpd password

蓝快加速器 2026-07-01 20:05:39 11 0

Setting up a PPTP VPN server allows clients to connect using the Point-to-Point Tunneling Protocol (PPTP). While PPTP is easy to configure, it is not secure due to known vulnerabilities. Modern alternatives like OpenVPN, WireGuard, or IPsec are recommended for better security. However, if you still need PPTP for legacy reasons, here’s how to set it up on Linux (Ubuntu/Debian):


Install PPTPD (VPN Server)

sudo apt update
sudo apt install pptpd

Configure PPTPD

Edit /etc/pptpd.conf

sudo nano /etc/pptpd.conf

Add/modify:

option /etc/ppp/pptpd-options
localip 192.168.0.1         # Server's VPN IP
remoteip 192.168.0.100-200  # IP range for clients

(Adjust IP ranges as needed.)

Edit /etc/ppp/pptpd-options

sudo nano /etc/ppp/pptpd-options

Ensure these settings:

ms-dns 8.8.8.8             # Google DNS
ms-dns 8.8.4.4
auth
proxyarp
lock
nobsdcomp

Set VPN Credentials

sudo nano /etc/ppp/chap-secrets

Add users in format:

user2  pptpd  pass456  *

Enable IP Forwarding

Edit /etc/sysctl.conf:

sudo nano /etc/sysctl.conf

Uncomment/add:

net.ipv4.ip_forward=1

Apply changes:

sudo sysctl -p

Configure NAT (Masquerade)

Run:

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

(Replace eth0 with your main network interface.)

To make rules persistent:

sudo apt install iptables-persistent
sudo netfilter-persistent save

Restart PPTPD

sudo systemctl restart pptpd
sudo systemctl enable pptpd

Connect from Client

  • Windows:
    Go to Settings > VPN > Add VPN → Select PPTP, enter server IP and credentials.
  • Linux/Android:
    Use a PPTP client with server IP, username, and password.

Security Warning

PPTP uses weak encryption (MS-CHAPv2) and is vulnerable to attacks. Use it only for testing or legacy compatibility. For secure VPNs, consider:

  • OpenVPN (SSL/TLS-based)
  • WireGuard (Modern, fast, secure)
  • IPsec/L2TP (Better than PPTP)

Troubleshooting

  • Can’t connect? Check firewall (ufw/iptables), ensure port 1723 TCP is open.
  • No internet access? Verify NAT (iptables -t nat -L).
  • Logs:
    tail -f /var/log/syslog

Let me know if you need further help! 🚀

username pptpd password

如果没有特点说明,本站所有内容均由蓝快加速器-VPN全球网络加速器|柔软而强大的网络自由—蓝快VPN原创,转载请注明出处!