Re: pptp-client patch/plugin for zeroshell

Home Page Forums Network Management ZeroShell Zeroshell as a PPTP client – possible? Re: pptp-client patch/plugin for zeroshell

#52010

meloun
Member

ZeroShell as pptp client possible!

NOTES:
This patch work only whith ZS-2.0.RC2.
This patch only for test purposes, and may be unstable. Before install this patch make backup active profile!
This patch use generic kerbynet parser (no have sources for patching), but replace and adding kerbynet.cgi shell scripts, and can partially control the pptp connections through a web interface.

Supports:
– up/down connections;
– manage static routes via pptp connections;
– support Net Balancer, and other features like pppoe.

Dont supports in this patch:
– make, configure and remove pptp connections through a web interface (use Startup/Cron script editor or SSH/Shell for manual enter configure commands, see exampes below).

Install patch:
WARNING! This patch installing only through SSH or Shell dont use Startup/Cron script editor!

cd /Database
wget http://dc.sungate.su/files/pptp-client-BETA3-2.0.RC2.tar.bz2
tar xvf pptp-client-BETA3-2.0.RC2.tar.bz2
cd 1103
./install.sh

Deinstall patch:

cd /Database/1103
./deinstall.sh

Manuals and examples:

- Command for MAKE pptp connection interface:
/root/kerbynet.cgi/scripts/makePPTP ppp[0-9] description_this pptp.server.name.dns login passwd yes|no yes|no|NB yes|no yes|no
1 - ppp interface (ppp0|ppp1|...);
2 - description_string_no_spaces;
3 - pptp server ip or dns name;
4 - login;
5 - password;
6 - set this connection as default route (yes|no);
7 - auto start this connection (yes|no|NB);
8 - enable 128 bit mppe encryption and compression (yes|no);
9 - enable nat masquerading on this interface (yes|no).

- Command for CHANGE pptp connection interface:
/root/kerbynet.cgi/scripts/configPPTP ppp[0-9] description_this pptp.server.name.dns login passwd yes|no yes|no|NB yes|no yes|no
Options are the same command makePPTP.

- Command for REMOVE pptp connection interface:
/root/kerbynet.cgi/scripts/removePPTP ppp[0-9]
1 - ppp interface (ppp0|ppp1|...).

Please test this patch and post the results.

Best regards, Dmitry Meloun.