Reply To: static ip addresses to vpn clients l2tp

Home Page Forums Network Management ZeroShell static ip addresses to vpn clients l2tp Reply To: static ip addresses to vpn clients l2tp

#47662

onega
Member

static IP to PPTP VPN accounts:

1. connect to zeroshell with SSH
2. create folder Database on HDD root
3. copy original configuration files from /etc/ppp/ to new folder ( Database )
4. edit file Database/chap-secrets (input VPN accounts, and static IP for users) with “vi”
5 edit Database/options.pptpd , disable “Radius-Plugin”
format of chap-secrets:
login service password IP
example chap-secrets:
user1name pptpd user1password 10.10.10.51

6. add script in web interface

System > Setup>ScriptsCRON>

Post Boot Script:

cp -f /Database/chap-secrets /etc/ppp/
cp -f /Database/options.pptpd /etc/ppp/
chmod 600 /etc/ppp/options.pptpd /etc/ppp/chap-secrets /etc/ppp/pap-secrets

7. reboot router


!warning , all accounts in WEB interface for PPTP vpn – disabled,
work only accounts from file chap-secrets.


you can set Firewall rules , for pptp clients IP, in web interface


if user have manual assigned IP in connection folder – connection not work.