|
Install pptpd
Edit configuration file:
Go to the bottom and modify IP:
Second line is the IP range to assign Set DNS
Modify the following section to use Google DNS:
Set account:
Add a line: username, service, password, IP restriction:
Restart service:
Enable forwarding:
Uncomment this line in the file:
Make it take effect immediately:
Install iptables:
Set up NAT:
Save rules so they persist after reboot:
If you get: -bash: /etc/iptables-rules: Permission denied, use root user with: su – to save Edit network card file to auto-load rules:
Add at the end:
Set MTU to prevent oversized packets:
If set, remember to save:
macOS can connect but no traffic issue: in VPN advanced settings, check “Send all traffic” That is it. Reprint please follow original requirements
|
