serviceweb
Posts: 23
Joined: Fri Apr 18, 2014 6:19 pm

Re: L2TP mini tutorial

Thu Apr 24, 2014 5:41 am

Link1992 wrote:Ok, so after a clean install (with avahi +netatalk installed before following this tutorial again), I can tell you it is still not working.
I have just the Raspberry Pi, it is just 1 week old.
So i don't know about old versions. Will it be possible to put a older version on the SD card and will it work. What do you think? Somebody who had the old version on the card, was it working? Is there nobody who can tell us this? And why there was a new update and can we go back to the old version, if it is working on that?

Link1992
Posts: 33
Joined: Mon Mar 25, 2013 10:33 am
Location: Paris

Re: L2TP mini tutorial

Wed Apr 30, 2014 1:12 pm

I used one from february 2013. Still have it if you need...

But it is not working on both releases :/

serviceweb
Posts: 23
Joined: Fri Apr 18, 2014 6:19 pm

Re: L2TP mini tutorial

Wed Apr 30, 2014 1:45 pm

If it is not working, it will not working for me too :(
So i think it is not smart??

Is there someone who can tell if it is still working?

algol
Posts: 1
Joined: Sat May 03, 2014 4:59 pm

Re: L2TP mini tutorial

Sat May 03, 2014 5:01 pm

The latest version of wheezy has broken openswan. Downgrading to the previous fixes things.

wget http://snapshot.raspbian.org/2014033011 ... _armhf.deb

sudo dpkg -i openswan_2.6.37-3_armhf.deb

Cheers, algol

serviceweb
Posts: 23
Joined: Fri Apr 18, 2014 6:19 pm

Re: L2TP mini tutorial

Sun May 04, 2014 5:41 am

algol wrote:The latest version of wheezy has broken openswan. Downgrading to the previous fixes things.

wget http://snapshot.raspbian.org/2014033011 ... _armhf.deb

sudo dpkg -i openswan_2.6.37-3_armhf.deb

Cheers, algol

I have a mac.
Can i just download it and say sudo dpkg -i openswan_2.6.37-3_armhf.deb ??
What do i have to do to get this on my SD card?

Sorry, i'm just new in this stuff.

Link1992
Posts: 33
Joined: Mon Mar 25, 2013 10:33 am
Location: Paris

Re: L2TP mini tutorial

Sun May 04, 2014 9:24 am

You have to do it on your pi (via ssh for example)

It's just downgrading openswan, that's all ;)
Last edited by Link1992 on Sun May 04, 2014 7:38 pm, edited 1 time in total.

Link1992
Posts: 33
Joined: Mon Mar 25, 2013 10:33 am
Location: Paris

Re: L2TP mini tutorial

Sun May 04, 2014 7:37 pm

Still small question left : the equivalent for "sudo dpkg -i openswan_2.6.37-3_armhf.deb" with apt-get ?

serviceweb
Posts: 23
Joined: Fri Apr 18, 2014 6:19 pm

Re: L2TP mini tutorial

Mon May 05, 2014 11:57 am

And is it really working when i downgrade it?

serviceweb
Posts: 23
Joined: Fri Apr 18, 2014 6:19 pm

Re: L2TP mini tutorial

Tue May 06, 2014 11:38 am

I have try it but it is still not working :(
I have still no L2TP but i have only PPTP connection.

Who can help... ore do i need to downgrade my software too?

Link1992
Posts: 33
Joined: Mon Mar 25, 2013 10:33 am
Location: Paris

Re: L2TP mini tutorial

Tue May 06, 2014 3:34 pm

Yes, Openswan needs to be downgraded !

serviceweb
Posts: 23
Joined: Fri Apr 18, 2014 6:19 pm

Re: L2TP mini tutorial

Wed May 07, 2014 5:40 am

Link1992 wrote:Yes, Openswan needs to be downgraded !
Did is work for you?
What did you have done? Please help me too :)
I have done sudo dpkg -i openswan_2.6.37-3_armhf.deb and he tell me that he downgrade.
But what do i have to do with the download file? I don't understand.

Please, will you tell me how you have done it?! Please, step by step :)
Thank you!!

Link1992
Posts: 33
Joined: Mon Mar 25, 2013 10:33 am
Location: Paris

Re: L2TP mini tutorial

Wed May 07, 2014 5:46 am

I'm on something totaly different. I've done a complete reset, so have to configure all again (not only openswan). So no, could try it. But what the command should do, is download and install the version 2.6.37-3.

Dpkg is the same as apt-get, so when you do dpkg -i, it will react exactly as doing apt-get install ;)

Link1992
Posts: 33
Joined: Mon Mar 25, 2013 10:33 am
Location: Paris

Re: L2TP mini tutorial

Wed May 07, 2014 5:50 am

In short, it should work now for you ;)

Try to do a test at home, with the server adress as username, instead of your external access why (fixed ip or dyndns)

If it's working, that means there is a problem when connected somewhere, or they have closed ipsec's needed ports

serviceweb
Posts: 23
Joined: Fri Apr 18, 2014 6:19 pm

Re: L2TP mini tutorial

Wed May 07, 2014 6:08 am

Oke, so i have to down great my version?

1) sudo dpkg -i openswan_2.6.37-3_armhf.deb
2) than see if everything is still correct

Try to do a test at home, with the server address as username, instead of your external access why
3) where do i have to change the server address? In my phone or in a file?

I can't change Server on my phone, then the phone will not know where to login. So i don't understand :(

Link1992
Posts: 33
Joined: Mon Mar 25, 2013 10:33 am
Location: Paris

Re: L2TP mini tutorial

Sat May 10, 2014 12:33 pm

No, for the testing purpose, change only the server adresse of your server on your phone (so that the phone connects directly to the server instead of the classic internet route)

For example on iPhone, change only the "Server" part. Account, password and shared Secret will not need to be changed (or it won't work anymore)

Link1992
Posts: 33
Joined: Mon Mar 25, 2013 10:33 am
Location: Paris

Re: L2TP mini tutorial

Sun May 11, 2014 1:04 pm

algol wrote:The latest version of wheezy has broken openswan. Downgrading to the previous fixes things.

wget http://snapshot.raspbian.org/2014033011 ... _armhf.deb

sudo dpkg -i openswan_2.6.37-3_armhf.deb

Cheers, algol

Worked well ! is now working again ! ^^

serviceweb
Posts: 23
Joined: Fri Apr 18, 2014 6:19 pm

Re: L2TP mini tutorial

Sun May 11, 2014 1:08 pm

Link1992 wrote:No, for the testing purpose, change only the server adresse of your server on your phone (so that the phone connects directly to the server instead of the classic internet route)

For example on iPhone, change only the "Server" part. Account, password and shared Secret will not need to be changed (or it won't work anymore)

Oke... i have IP (i don't have, it is a example): 23.24.25.26.27 and my IP for my 192.192.192.92
I have to change my server IP to the IP from my intern Raspberry and see inside my router of it is working?
Is that what you mean?

serviceweb
Posts: 23
Joined: Fri Apr 18, 2014 6:19 pm

Re: L2TP mini tutorial

Sun May 11, 2014 1:09 pm

Link1992 wrote:
algol wrote:The latest version of wheezy has broken openswan. Downgrading to the previous fixes things.

wget http://snapshot.raspbian.org/2014033011 ... _armhf.deb

sudo dpkg -i openswan_2.6.37-3_armhf.deb

Cheers, algol

Worked well ! is now working again ! ^^
U have done: sudo dpkg -i openswan_2.6.37-3_armhf.deb
And follow the information here for L2TP and it is working now?

serviceweb
Posts: 23
Joined: Fri Apr 18, 2014 6:19 pm

Re: L2TP mini tutorial

Sun May 11, 2014 1:14 pm

Do i need to download it and install?
I have a mac and when i click on the link he download the .deb file

How do i have to put it on the SD or can i only put the link and it downgrade?

Link1992
Posts: 33
Joined: Mon Mar 25, 2013 10:33 am
Location: Paris

Re: L2TP mini tutorial

Sun May 11, 2014 1:26 pm

Don't care about your mac or anything. Everything needs to be done on the pi. The only thing you should care on your mac, is to use Terminal to be connected on the pi and run everything on it. (ssh pi@"pi's adress").

Algol gave us two commands to do.
The first one :

Code: Select all

wget http://snapshot.raspbian.org/201403301125/raspbian/pool/main/o/openswan/openswan_2.6.37-3_armhf.deb
This will make the pi download the older version of openswan into the directory you are located to (use pwd to know where you are).

The second command installs the file just downloaded.

Code: Select all

sudo dpkg -i openswan_2.6.37-3_armhf.deb
And everything should work again ! ;) (to start the tutorial again, instead of using apt-get install openswan in the tutorial, you will have to use the commands given above. The rest is still correct)

Link1992
Posts: 33
Joined: Mon Mar 25, 2013 10:33 am
Location: Paris

Re: L2TP mini tutorial

Sun May 11, 2014 1:29 pm

something else to say.

When using apt-get update/upgrade, it will again ask you to update it.
To prevent this, use

Code: Select all

sudo apt-mark hold openswan
to let it update again, use

Code: Select all

sudo apt-mark unhold openswan

serviceweb
Posts: 23
Joined: Fri Apr 18, 2014 6:19 pm

Re: L2TP mini tutorial

Mon May 12, 2014 11:41 am

THANK YOU MAN...
Wow, it is working when i use my intern IP address.
But when i use my IP address from outside, it will not work.

Who know what to do? So, when i'm on my WiFi and use my intern IP address i see VPN and it is working.
When i go to 3G or naibers router to my IP home address, it will not work :(
Anyone a answer?

Link1992
Posts: 33
Joined: Mon Mar 25, 2013 10:33 am
Location: Paris

Re: L2TP mini tutorial

Mon May 12, 2014 12:45 pm

You need to do port forwarding on your router...
Open ports 4500 and 500 both as UDP.
If still not working, this means your career is locking it over 3G (it's the case here in France). But no idea why it's not working on neighbor wifis :/

serviceweb
Posts: 23
Joined: Fri Apr 18, 2014 6:19 pm

Re: L2TP mini tutorial

Mon May 12, 2014 2:27 pm

Link1992 wrote:You need to do port forwarding on your router...
Open ports 4500 and 500 both as UDP.
If still not working, this means your career is locking it over 3G (it's the case here in France). But no idea why it's not working on neighbor wifis :/

I have them open, that is not the problem :(
It is not working over 3G and not with the neighbor WiFi :(

So when i put my home IP it is not working and when i test with my intern IP it is working.
Oh... i'm so close :) Please, help me :) *FUN*

User avatar
DougieLawson
Posts: 30163
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: L2TP mini tutorial

Mon May 12, 2014 2:33 pm

Try this: http://www.yougetsignal.com/tools/open-ports/ to check your open ports.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

Return to “Networking and servers”

Who is online

Users browsing this forum: biasha and 11 guests