www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Zeroshell as a PPTP client - possible?

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
DWJames



Joined: 20 Oct 2011
Posts: 7

PostPosted: Thu Oct 27, 2011 10:18 am    Post subject: Zeroshell as a PPTP client - possible? Reply with quote

Hi,
I can see that PPT has been requested a few times here and it's unlikely to be included in Zeroshell, but I can also see from this document that it's possible to add it in and have Zeroshell work as a PPT server
http://www.zeroshell.net/listing/pptp_vpn.pdf
I don't need PPTP server, but I could really do with some way of being able to setup a PPTP client connection to our web hosts.
Is there any way I can do this?
thanks,
James
Back to top
View user's profile Send private message
shemerdog



Joined: 06 Jan 2013
Posts: 1

PostPosted: Sun Jan 06, 2013 12:46 pm    Post subject: bump Reply with quote

Hi,
need this too, I would like to get some directions so I can help add this feature myself
thx
Back to top
View user's profile Send private message
meloun



Joined: 31 Mar 2013
Posts: 10

PostPosted: Sun Mar 31, 2013 1:45 pm    Post subject: pptp-client patch/plugin for zeroshell Reply with quote

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!
Code:
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:
Code:
cd /Database/1103
./deinstall.sh


Manuals and examples:
Code:
- 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.


Last edited by meloun on Sun Apr 28, 2013 9:25 pm; edited 2 times in total
Back to top
View user's profile Send private message
meloun



Joined: 31 Mar 2013
Posts: 10

PostPosted: Sun Mar 31, 2013 6:28 pm    Post subject: Reply with quote

Small fix.

If create some pptp connections and use same logins whith differrent passwords, only one of them is successfully connected.
This is due to the storage of logins and passwords in standart secrets file ppp.
The fix is ​​to use the ppp options name and password for each pptp connection.

Please download and reinstall patch.
Back to top
View user's profile Send private message
meloun



Joined: 31 Mar 2013
Posts: 10

PostPosted: Mon Apr 01, 2013 11:33 pm    Post subject: Reply with quote

pptp-client-BETA2-2.0.RC2

Fixed conflict with zeroshell pptp server.

If you installed pptp-client-BETA1, uninstall it before installing pptp-client-BETA2 and reboot router.
Code:
cd /Database/1101
./deinstall.sh


Code:
cd /Database
wget http://dc.sungate.su/files/pptp-client-BETA2-2.0.RC2.tar.bz2
tar xvf pptp-client-BETA2-2.0.RC2.tar.bz2
cd 1102
./install.sh
Back to top
View user's profile Send private message
meluvalli



Joined: 19 Apr 2013
Posts: 3

PostPosted: Sat Apr 20, 2013 12:28 am    Post subject: Connection successfull however... Reply with quote

Ok, so this script works great except for one thing...


After the connection is made. I can't ping any of the IPs on the remote side Sad

The IP address that I am trying to ping is 10.40.163.XXX and none reply.


Looking at the route, there is only one route added and it is for Destination 10.40.163.4 (which is the remote Server IP).
Back to top
View user's profile Send private message
meluvalli



Joined: 19 Apr 2013
Posts: 3

PostPosted: Sun Apr 21, 2013 3:54 am    Post subject: Scraped It :( Reply with quote

Ok, so actually I guess it doesn't matter that the VPN doesn't work because I had to scrap ZeroShell all together....

I have two providers. My first one has 5 static IP addresses with it. Second one only has DHCP...

When I setup load balance with failsafe... It kills my 5 IP addresses... External users can't access the IP's at all include ping them. And it's at random. Sometimes they can ping one IP and not another.

It's to sporadic for me!!! Not reliable! I started over and reconfigured ONLY the IP Addresses and Load Balance and get the same issue.

Because it's so unreliable, I can't use it Sad
Back to top
View user's profile Send private message
meloun



Joined: 31 Mar 2013
Posts: 10

PostPosted: Tue Apr 23, 2013 5:23 pm    Post subject: Re: Connection successfull however... Reply with quote

meluvalli wrote:
Ok, so this script works great except for one thing...


After the connection is made. I can't ping any of the IPs on the remote side Sad

The IP address that I am trying to ping is 10.40.163.XXX and none reply.


Looking at the route, there is only one route added and it is for Destination 10.40.163.4 (which is the remote Server IP).

After the PPTP connection is up, add a static route(s) for this PPTP connection. Or when configuring a PPTP connection, that you use it as the default route.

PS You are a very strange trying to use is balancer, combining channel with your ISP IP range and the channel on which apparently works NAT
Back to top
View user's profile Send private message
meloun



Joined: 31 Mar 2013
Posts: 10

PostPosted: Sun Apr 28, 2013 10:39 pm    Post subject: pptp-client-BETA3-2.0.RC2 Reply with quote

pptp-client-BETA3-2.0.RC2

A more stable connection.

If you installed pptp-client-BETA2, uninstall it before installing pptp-client-BETA3.
Code:
cd /Database/1102
./deinstall.sh


Code:
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
Back to top
View user's profile Send private message
ipmeel



Joined: 12 Jan 2014
Posts: 1

PostPosted: Sun Jan 12, 2014 5:41 pm    Post subject: Thanks.Great Job Reply with quote

Thanks.
Great job done Very Happy.
Looking for latest version of Zeroshell (3.0.0).
Back to top
View user's profile Send private message Send e-mail
llox



Joined: 27 Mar 2014
Posts: 1

PostPosted: Thu Mar 27, 2014 11:07 am    Post subject: Reply with quote

And there is the possibility of ZeroShell 3 connect as pptp client?
Simply, I distributions versions ZS-2.0.RC2 and ZS-2.0.RC3 not found in /root/kerbynet.cgi/scripts/makePPTP .
Back to top
View user's profile Send private message
iridiu



Joined: 10 Oct 2014
Posts: 5

PostPosted: Fri Jan 09, 2015 8:35 am    Post subject: PPTP client ZS 3.2.1 Reply with quote

Any news for PPTP client in version 3 of ZeroShell? Or it is possible to adapt this script for v. 3.2.x?
Back to top
View user's profile Send private message
afroIT



Joined: 23 Oct 2015
Posts: 9

PostPosted: Wed Nov 08, 2017 8:09 am    Post subject: Reply with quote

Hi gurus,

Today I need Zeroshell to connect to a VPS PPTP server.
The idea is that other clients dial into the same VPS PPTP server, and reach the Zeroshell LAN network for some remote work needed on a weekly basis.

I do not see this ZS_as_PPTP_Client option integrated into Zeroshelll 3.8.1
I am going to attempt to use the Beta proposed in this thread and I hope it works. I will keep you all posted.

If anyone has a better fix today, I would appreciate some feedback.
Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group