Cannot get PPTP or VPN to "vpnbook.com" to work

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
att
Contributor
Contributor
Posts: 131
Joined: 28 Dec 2010, 17:09

Cannot get PPTP or VPN to "vpnbook.com" to work

Post#1 by att » 06 Dec 2012, 15:00

Hello,

"VPNBOOK" (www.vpnbook.com) is a free VPN provider.
I tried to find out what to do in order to get either VPN or PPTP - which is offered by this provider - to run successfully.

I could not get the "openVPN" software to compile and run : "libpam missing".

So, I thought I could try the normal VPN. Usually I connect to VPN with:

modprobe tun; cp /root/un2.conf /etc/vpnc
vpnc --natt-mode cisco-udp un2

my un2.conf :
## generated by pcf2vpnc
IPSec ID someSecID
IPSec gateway 1.2.3.4 (my gateway)
IPSec secret somesecretpassword (my one)
Xauth password somepassword (my passwd)
Xauth username someusername (my username)
IKE Authmode psk
IKE DH Group dh2

With this, I was able to connect to my university. But not to VPNBOOK - I don't know the SecID and the IpSec "Secret". Maybe you can help me here?

Anyway, I also tried to use the PPTP protocol. But I was unsucessful. Really, I had no clue how to get PPTP to work.
Any advice how to get a proper connection to "vpnbook" is welcome.

Here is the data: For PPTP: I.P: euro1.vpnbook.com
Username: pptp
Password: 9jHbfKiN

For OpenVPN: username: freeopenvpn
Password: J8hfCiu6W

(more details at www.vpnbook.com - scroll down until bottom of page)

Any help or advice is greatly appreciated!

User avatar
fanthom
Site Admin
Site Admin
Posts: 4547
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Cannot get PPTP or VPN to "vpnbook.com" to work

Post#2 by fanthom » 06 Dec 2012, 21:17

hi att,

(still can't remember which arch/edition you are using so please update your profile to make my life easier)

please try to use Network Manager for this task.
you will have to compile pptp and NM-pptp plugin from sources (do not worry - it's really easy).

here is pptp:
http://slackbuilds.org/repository/13.37/network/pptp/

please make sure NM-pptp plugin matches your NM version (32bit uses 0.9.4 and 64bit 0.9.2).
grab slackbuild from here:
http://slackbuilds.org/repository/13.37 ... ager-pptp/
and relevant sources from here:
http://ftp.gnome.org/pub/GNOME/sources/ ... -pptp/0.9/

btw: NM-pptp and NM-openvpn will be added by default to porteus-2.0
Please add [Solved] to your thread title if the solution was found.

att
Contributor
Contributor
Posts: 131
Joined: 28 Dec 2010, 17:09

Re: Cannot get PPTP or VPN to "vpnbook.com" to work

Post#3 by att » 07 Dec 2012, 09:01

Sorry for not mentioning this,
I am using Porteus v1.0 64-bit. :D

I'll try to compile...

User avatar
fanthom
Site Admin
Site Admin
Posts: 4547
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Cannot get PPTP or VPN to "vpnbook.com" to work

Post#4 by fanthom » 07 Dec 2012, 09:56

@att
if you are using porteus-1.0 then you do not have Network Manager but wicd and compilation of mentioned plugin wont help you.
compilation of whole NM makes no sense due to huge number of deps so i would suggest you to upgrade to porteus-1.2 (at least temporarily) to check if that service works with NM.

Cheers
Please add [Solved] to your thread title if the solution was found.

cttan
Shogun
Shogun
Posts: 332
Joined: 26 Jan 2011, 16:15
Distribution: Porteus 3.2 64bit KDE
Location: Malaysia

Re: Cannot get PPTP or VPN to "vpnbook.com" to work

Post#5 by cttan » 07 Dec 2012, 15:39

Hi att,
1. Download pptp-1.7.2-x86_64-2gsb.xzm and iproute2-2.6.37-x86_64-1.xzm
http://pkgs.org/slackware-13.37/gnome-s ... b.txz.html
http://pkgs.org/slackware-13.37/slackwa ... 1.txz.html
2. Create a script(VPN-VPNBOOK) as below. It must be executable.
# chmod +x VPN-VPNBOOK
3. Create /etc/ppp/options.pptp file
4. Create /etc/ppp/chap-secrets file
5. Create a /etc/ppp/peers/VPNBOOK file
6. Run the script:
# sh VPN-VPNBOOK
7. After it is connected, you will get remote IP : 172.16.36.1
8. Delete existing default route.
# route del default
9. Create a route to it.
# route add default gw 172.16.36.1
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 172.16.36.1 0.0.0.0 UG 0 0 0 ppp0
10. to disconnect
# pkill pppd
# route del default
# route add default gw <your router IP address>

Verification:-
1. Goto http://www.iplocation.net/index.php
2. It will show your current location
IP Address Country Region City ISP
195.60.76.223 Romania - - Voxility Srl

VPNBOOK Privacy Policy:-
Our privacy policy is simple, we respect your privacy since we do not host our servers in countries where mandatory data retention laws exist, we do not collect any information or log any internet activity. We are not required by law to hand any information over unless by court-order, and to date Romania has been one of the best locations for privacy. The only thing we log is the I.P address and time the connection was made. Connection logs are automatically deleted every 3 days, if authorities contact us we simply tell them we have no logs. You (the user) is responsible for your actions or damages caused by using our free VPN service, DO not use this VPN for doing evil and you will be fine. If you do abuse the system, your I.P will be banned. To report abuse please email abuse@vpnbook.com

Copy and paste below code to VPN-VPNBOOK script

Code: Select all

#!/bin/bash
activate /mnt/sdb1/useful_mods_xzm/pptp-1.7.2-x86_64-3gsb.xzm
activate /mnt/sdb1/useful_mods_xzm/iproute2-2.6.37-x86_64-1.xzm
ln -s /sbin/ip /bin/ip
cp -a  /mnt/sdb1/options.pptp /etc/ppp/.
cp -a  /mnt/sdb1/chap-secrets /etc/ppp/.
cp -a /mnt/sdb1/peers-VPNBOOK /etc/ppp/peers/VPNBOOK
sleep 1
/usr/sbin/pppd call VPNBOOK mtu 1435 mru 1435 debug dump logfd 2 nodetach &
exit
Copy and paste below code to /etc/ppp/options.pptp file

Code: Select all

###############################################################################
# $Id: options.pptp,v 1.3 2006/03/26 23:11:05 quozl Exp $
#
# Sample PPTP PPP options file /etc/ppp/options.pptp
# Options used by PPP when a connection is made by a PPTP client.
# This file can be referred to by an /etc/ppp/peers file for the tunnel.
# Changes are effective on the next connection.  See "man pppd".
#
# You are expected to change this file to suit your system.  As
# packaged, it requires PPP 2.4.2 or later from http://ppp.samba.org/
# and the kernel MPPE module available from the CVS repository also on
# http://ppp.samba.org/, which is packaged for DKMS as kernel_ppp_mppe.
###############################################################################

# Lock the port
lock

# Authentication
# We don't need the tunnel server to authenticate itself
noauth

# We won't do PAP, EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
# (you may need to remove these refusals if the server is not using MPPE)
refuse-pap
refuse-eap
refuse-chap
refuse-mschap

# Compression
# Turn off compression protocols we know won't be used
nobsdcomp
nodeflate

# Encryption
# (There have been multiple versions of PPP with encryption support,
# choose with of the following sections you will use.  Note that MPPE
# requires the use of MSCHAP-V2 during authentication)

# http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras
# ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o
# {{{
# Require MPPE 128-bit encryption
require-mppe-128
# }}}

# http://polbox.com/h/hs001/ fork from PPP project by Jan Dubiec
# ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o
# {{{
# Require MPPE 128-bit encryption
#mppe required,stateless
# }}}
Copy and paste below code to /mnt/sdb1/chap-secrets file

Code: Select all

# Secrets for authentication using CHAP
# client        server  secret                  IP addresses

# added by pptpsetup for VPNBOOK
pptp VPNBOOK "9jHbfKiN"
Copy and paste below code to /etc/ppp/peers/VPNBOOK file

Code: Select all

# written by pptpsetup
pty "pptp euro1.vpnbook.com --nolaunchpppd"
lock
noauth
nobsdcomp
nodeflate
name pptp
remotename VPNBOOK
ipparam VPNBOOK
require-mppe-128
file /etc/ppp/options.pptp
All the files all created by pptp and I have modified them for VPNBOOK.
You may use below line to setup but I have no luck of getting it to work with my VPN server.
# pptpsetup --create VPNBOOK --server VPNBOOK --username pptp --password "9jHbfKi" --encrypt --start

to start:-
# /usr/sbin/pppd call VPNBOOK mtu 1435 mru 1435 debug dump logfd 2 nodetach &

to disconnect just enter Ctrl-c

alexaza
Ronin
Ronin
Posts: 1
Joined: 26 Jul 2013, 06:46
Distribution: news
Location: US

Re: Cannot get PPTP or VPN to "vpnbook.com" to work

Post#6 by alexaza » 26 Jul 2013, 06:50

Here list of free PPTP vpn

Netherland VPN Server
Host Name: nl1.thefreevpn.net
User Name: free@nl1.thefreevpn.net


England VPN Server
Host Name: uk1.thefreevpn.net
User Name: free@uk1.thefreevpn.net


Japan VPN Server
Host Name: jp1.thefreevpn.net
User Name: free@jp1.thefreevpn.net


Singapore VPN Server
Host Name: sg1.thefreevpn.net
User Name: free@sg1.thefreevpn.net


USA VPN Server1
Host Name: us1.thefreevpn.net
User Name: free@us1.thefreevpn.net


USA VPN Server2
Host Name: us2.thefreevpn.net
User Name: free@us2.thefreevpn.net


USA VPN Server3
Host Name: us3.thefreevpn.net
User Name: free@us3.thefreevpn.net
Password here http://www.thefreevpn.net/free-vpn-service/

User avatar
Hamza
Warlord
Warlord
Posts: 1846
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Cannot get PPTP or VPN to "vpnbook.com" to work

Post#7 by Hamza » 26 Jul 2013, 10:13

WTF?!
NjVFQzY2Rg==

att
Contributor
Contributor
Posts: 131
Joined: 28 Dec 2010, 17:09

Re: Cannot get PPTP or VPN to "vpnbook.com" to work

Post#8 by att » 31 Oct 2013, 11:17

Well, well, well...

Meanwhile I am using Porteus v1.2 64bit KDE version and I am trying to use the Network-Manager to do the VPN connection.
Thus, I download the "OpenVPN Cert Bundle" from http://www.vpnbook.com/free-openvpn-acc ... -Euro1.zip
* I import the .ovpn file into Network-Manager
* Network-Manager now accepts the file and offers a VPN connection
* I click on the VPN connection icon - but Network-Manager will not connect. (I am logged in as user "guest", I am using Porteus v1.2 64bit)

Any help of just what to do in order to get a working VPN connection to vpnbook?

User avatar
fanthom
Site Admin
Site Admin
Posts: 4547
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Cannot get PPTP or VPN to "vpnbook.com" to work

Post#9 by fanthom » 31 Oct 2013, 15:18

can't remember which packages were used in 1.2 release but please check if you have openvpn and NetworkManager-openvpn packages installed.
if not then you can get openvpn from slackware-13.37 repo and NM-openvpn from slackbuilds.org website (you may have to bump it's version the match NM used in 1.2)

btw: Porteus-2.1 has everything included so maybe it's time to do an upgrade?
Please add [Solved] to your thread title if the solution was found.

att
Contributor
Contributor
Posts: 131
Joined: 28 Dec 2010, 17:09

Re: Cannot get PPTP or VPN to "vpnbook.com" to work

Post#10 by att » 07 Nov 2013, 08:14

Sorry, I mistyped. I was using Porteus 2.0. I have specifically retried to get VPNBOOK to run on a fresh Porteus 2.1 64bit distro, but I was unsucessful so far.

This is what I did:
a) boot a fresh Porteus 2.1 64bit KDE distro
b) Download the zip file from vpnbook.com and depack it
c) go to right down corner of screen, to the Network-Manager icon and click on it
d) import the *ovpn file to the network manager - it seems to work, it adds the data to itself
e) however, clicking on the new VPN connection only gives me a red tiny icon for one second, and obviously it cannot connect...

So what am I doing wrong?

Post Reply