How do I connect to an L2TP IPSec VPN using a PSK on 15.04?
I've installed StrongSwan and the network manager helper and I have the options in the applet for VPN, but it only supports certificate configuration, not PSK entry.
I've tried to add the PSK into the /etc/ipsec.secrets file but I don't know what syntax I should use to identify the connection. I simply get "The VPN connection 'VPN Connection 1' failed because of invalid VPN secrets".
network-manager vpn ipsec openswan
add a comment |
I've installed StrongSwan and the network manager helper and I have the options in the applet for VPN, but it only supports certificate configuration, not PSK entry.
I've tried to add the PSK into the /etc/ipsec.secrets file but I don't know what syntax I should use to identify the connection. I simply get "The VPN connection 'VPN Connection 1' failed because of invalid VPN secrets".
network-manager vpn ipsec openswan
askubuntu.com/questions/617785/…
– Matt H
Jul 2 '15 at 1:12
add a comment |
I've installed StrongSwan and the network manager helper and I have the options in the applet for VPN, but it only supports certificate configuration, not PSK entry.
I've tried to add the PSK into the /etc/ipsec.secrets file but I don't know what syntax I should use to identify the connection. I simply get "The VPN connection 'VPN Connection 1' failed because of invalid VPN secrets".
network-manager vpn ipsec openswan
I've installed StrongSwan and the network manager helper and I have the options in the applet for VPN, but it only supports certificate configuration, not PSK entry.
I've tried to add the PSK into the /etc/ipsec.secrets file but I don't know what syntax I should use to identify the connection. I simply get "The VPN connection 'VPN Connection 1' failed because of invalid VPN secrets".
network-manager vpn ipsec openswan
network-manager vpn ipsec openswan
asked May 20 '15 at 14:37
kevpattskevpatts
1114
1114
askubuntu.com/questions/617785/…
– Matt H
Jul 2 '15 at 1:12
add a comment |
askubuntu.com/questions/617785/…
– Matt H
Jul 2 '15 at 1:12
askubuntu.com/questions/617785/…
– Matt H
Jul 2 '15 at 1:12
askubuntu.com/questions/617785/…
– Matt H
Jul 2 '15 at 1:12
add a comment |
2 Answers
2
active
oldest
votes
Install the old client: https://launchpad.net/l2tp-ipsec-vpn
First install required packages:
sudo apt-get install gksu libgksu2-0 libctemplate2 libengine-pkcs11-openssl libp11-2 xl2tpd
Next download the old binaries and install with dpkg:
wget http://mirrors.kernel.org/ubuntu/pool/universe/o/openswan/openswan_2.6.38-1_amd64.deb
sudo dpkg -i openswan_2.6.38-1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/l/l2tp-ipsec-vpn/l2tp-ipsec-vpn_1.0.9-1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/l/l2tp-ipsec-vpn-daemon/l2tp-ipsec-vpn-daemon_0.9.9-1_amd64.deb
sudo dpkg -i l2tp-ipsec-vpn_1.0.9-1_amd64.deb
sudo dpkg -i l2tp-ipsec-vpn-daemon_0.9.9-1_amd64.deb
Open the client. Add a connection and configure as needed. Once you try to connect it may take awhile but be patient.
For this, one can just dosudo apt-get install l2tp-ipsec-vpn
. And in my experience this did not connect even with correct PSK and user/pass. :/
– Oxwivi
Sep 29 '15 at 8:21
1
@Oxwivi This package doesn't exist in 15.04 repos so you can't just use apt-get currently. That being said, it does work for me so it may for someone else. In fact, I couldn't use Ubuntu without this.
– badmadrad
Sep 30 '15 at 2:30
add a comment |
You should try the NetworkManager L2TP plugin, but now that it is a few years later you may also want to upgrade to a newer release of Ubuntu (as 16.04 is the current LTS).
I followed this blog post to install the PPA and the Gnome NM applet and was able to use a PSK VPN with a username and password prompt (though it can be saved into the connection file as well).
Code to add the PPA and install the software.
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
sudo apt update
sudo apt install network-manager-l2tp-gnome
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f626130%2fhow-do-i-connect-to-an-l2tp-ipsec-vpn-using-a-psk-on-15-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Install the old client: https://launchpad.net/l2tp-ipsec-vpn
First install required packages:
sudo apt-get install gksu libgksu2-0 libctemplate2 libengine-pkcs11-openssl libp11-2 xl2tpd
Next download the old binaries and install with dpkg:
wget http://mirrors.kernel.org/ubuntu/pool/universe/o/openswan/openswan_2.6.38-1_amd64.deb
sudo dpkg -i openswan_2.6.38-1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/l/l2tp-ipsec-vpn/l2tp-ipsec-vpn_1.0.9-1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/l/l2tp-ipsec-vpn-daemon/l2tp-ipsec-vpn-daemon_0.9.9-1_amd64.deb
sudo dpkg -i l2tp-ipsec-vpn_1.0.9-1_amd64.deb
sudo dpkg -i l2tp-ipsec-vpn-daemon_0.9.9-1_amd64.deb
Open the client. Add a connection and configure as needed. Once you try to connect it may take awhile but be patient.
For this, one can just dosudo apt-get install l2tp-ipsec-vpn
. And in my experience this did not connect even with correct PSK and user/pass. :/
– Oxwivi
Sep 29 '15 at 8:21
1
@Oxwivi This package doesn't exist in 15.04 repos so you can't just use apt-get currently. That being said, it does work for me so it may for someone else. In fact, I couldn't use Ubuntu without this.
– badmadrad
Sep 30 '15 at 2:30
add a comment |
Install the old client: https://launchpad.net/l2tp-ipsec-vpn
First install required packages:
sudo apt-get install gksu libgksu2-0 libctemplate2 libengine-pkcs11-openssl libp11-2 xl2tpd
Next download the old binaries and install with dpkg:
wget http://mirrors.kernel.org/ubuntu/pool/universe/o/openswan/openswan_2.6.38-1_amd64.deb
sudo dpkg -i openswan_2.6.38-1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/l/l2tp-ipsec-vpn/l2tp-ipsec-vpn_1.0.9-1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/l/l2tp-ipsec-vpn-daemon/l2tp-ipsec-vpn-daemon_0.9.9-1_amd64.deb
sudo dpkg -i l2tp-ipsec-vpn_1.0.9-1_amd64.deb
sudo dpkg -i l2tp-ipsec-vpn-daemon_0.9.9-1_amd64.deb
Open the client. Add a connection and configure as needed. Once you try to connect it may take awhile but be patient.
For this, one can just dosudo apt-get install l2tp-ipsec-vpn
. And in my experience this did not connect even with correct PSK and user/pass. :/
– Oxwivi
Sep 29 '15 at 8:21
1
@Oxwivi This package doesn't exist in 15.04 repos so you can't just use apt-get currently. That being said, it does work for me so it may for someone else. In fact, I couldn't use Ubuntu without this.
– badmadrad
Sep 30 '15 at 2:30
add a comment |
Install the old client: https://launchpad.net/l2tp-ipsec-vpn
First install required packages:
sudo apt-get install gksu libgksu2-0 libctemplate2 libengine-pkcs11-openssl libp11-2 xl2tpd
Next download the old binaries and install with dpkg:
wget http://mirrors.kernel.org/ubuntu/pool/universe/o/openswan/openswan_2.6.38-1_amd64.deb
sudo dpkg -i openswan_2.6.38-1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/l/l2tp-ipsec-vpn/l2tp-ipsec-vpn_1.0.9-1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/l/l2tp-ipsec-vpn-daemon/l2tp-ipsec-vpn-daemon_0.9.9-1_amd64.deb
sudo dpkg -i l2tp-ipsec-vpn_1.0.9-1_amd64.deb
sudo dpkg -i l2tp-ipsec-vpn-daemon_0.9.9-1_amd64.deb
Open the client. Add a connection and configure as needed. Once you try to connect it may take awhile but be patient.
Install the old client: https://launchpad.net/l2tp-ipsec-vpn
First install required packages:
sudo apt-get install gksu libgksu2-0 libctemplate2 libengine-pkcs11-openssl libp11-2 xl2tpd
Next download the old binaries and install with dpkg:
wget http://mirrors.kernel.org/ubuntu/pool/universe/o/openswan/openswan_2.6.38-1_amd64.deb
sudo dpkg -i openswan_2.6.38-1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/l/l2tp-ipsec-vpn/l2tp-ipsec-vpn_1.0.9-1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/l/l2tp-ipsec-vpn-daemon/l2tp-ipsec-vpn-daemon_0.9.9-1_amd64.deb
sudo dpkg -i l2tp-ipsec-vpn_1.0.9-1_amd64.deb
sudo dpkg -i l2tp-ipsec-vpn-daemon_0.9.9-1_amd64.deb
Open the client. Add a connection and configure as needed. Once you try to connect it may take awhile but be patient.
edited Sep 24 '15 at 22:32
answered Sep 24 '15 at 22:26
badmadradbadmadrad
1114
1114
For this, one can just dosudo apt-get install l2tp-ipsec-vpn
. And in my experience this did not connect even with correct PSK and user/pass. :/
– Oxwivi
Sep 29 '15 at 8:21
1
@Oxwivi This package doesn't exist in 15.04 repos so you can't just use apt-get currently. That being said, it does work for me so it may for someone else. In fact, I couldn't use Ubuntu without this.
– badmadrad
Sep 30 '15 at 2:30
add a comment |
For this, one can just dosudo apt-get install l2tp-ipsec-vpn
. And in my experience this did not connect even with correct PSK and user/pass. :/
– Oxwivi
Sep 29 '15 at 8:21
1
@Oxwivi This package doesn't exist in 15.04 repos so you can't just use apt-get currently. That being said, it does work for me so it may for someone else. In fact, I couldn't use Ubuntu without this.
– badmadrad
Sep 30 '15 at 2:30
For this, one can just do
sudo apt-get install l2tp-ipsec-vpn
. And in my experience this did not connect even with correct PSK and user/pass. :/– Oxwivi
Sep 29 '15 at 8:21
For this, one can just do
sudo apt-get install l2tp-ipsec-vpn
. And in my experience this did not connect even with correct PSK and user/pass. :/– Oxwivi
Sep 29 '15 at 8:21
1
1
@Oxwivi This package doesn't exist in 15.04 repos so you can't just use apt-get currently. That being said, it does work for me so it may for someone else. In fact, I couldn't use Ubuntu without this.
– badmadrad
Sep 30 '15 at 2:30
@Oxwivi This package doesn't exist in 15.04 repos so you can't just use apt-get currently. That being said, it does work for me so it may for someone else. In fact, I couldn't use Ubuntu without this.
– badmadrad
Sep 30 '15 at 2:30
add a comment |
You should try the NetworkManager L2TP plugin, but now that it is a few years later you may also want to upgrade to a newer release of Ubuntu (as 16.04 is the current LTS).
I followed this blog post to install the PPA and the Gnome NM applet and was able to use a PSK VPN with a username and password prompt (though it can be saved into the connection file as well).
Code to add the PPA and install the software.
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
sudo apt update
sudo apt install network-manager-l2tp-gnome
add a comment |
You should try the NetworkManager L2TP plugin, but now that it is a few years later you may also want to upgrade to a newer release of Ubuntu (as 16.04 is the current LTS).
I followed this blog post to install the PPA and the Gnome NM applet and was able to use a PSK VPN with a username and password prompt (though it can be saved into the connection file as well).
Code to add the PPA and install the software.
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
sudo apt update
sudo apt install network-manager-l2tp-gnome
add a comment |
You should try the NetworkManager L2TP plugin, but now that it is a few years later you may also want to upgrade to a newer release of Ubuntu (as 16.04 is the current LTS).
I followed this blog post to install the PPA and the Gnome NM applet and was able to use a PSK VPN with a username and password prompt (though it can be saved into the connection file as well).
Code to add the PPA and install the software.
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
sudo apt update
sudo apt install network-manager-l2tp-gnome
You should try the NetworkManager L2TP plugin, but now that it is a few years later you may also want to upgrade to a newer release of Ubuntu (as 16.04 is the current LTS).
I followed this blog post to install the PPA and the Gnome NM applet and was able to use a PSK VPN with a username and password prompt (though it can be saved into the connection file as well).
Code to add the PPA and install the software.
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
sudo apt update
sudo apt install network-manager-l2tp-gnome
answered Jul 26 '17 at 14:25
dragon788dragon788
556211
556211
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f626130%2fhow-do-i-connect-to-an-l2tp-ipsec-vpn-using-a-psk-on-15-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
askubuntu.com/questions/617785/…
– Matt H
Jul 2 '15 at 1:12