Set Pre Shared Key (PSK) with vpncmd on Ubuntu

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
mhdion
Posts: 3
Joined: Thu Feb 12, 2015 11:44 am

Set Pre Shared Key (PSK) with vpncmd on Ubuntu

Post by mhdion » Thu Feb 12, 2015 12:22 pm

Hi,

I'm an Ubuntu user and I need to connect to a Softether VPN Server.
The Server uses L2TP/IPSec.
It requires Username/Password (taken from an Active Directory) and a Pre Shared Key.
All tutorials were prepared to Windows Users.

I have no windows PCs at home so I managed to install softheter's ubunut package from PPA.

$ sudo add-apt-repository ppa:dajhorn/softether

$ uname -a
Linux berilio 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

VPN Client>version
VersionGet command - Get Version Information of VPN Client Service
Item |Value
-------------------+--------------------------------------------
Product Name |SoftEther VPN Client
Version Information|Version 4.08 Build 9449 (English)
Build Information |Compiled 2014/06/08 14:08:09 by yagi at pc25
Process ID |0
OS Type |Linux
The command completed successfully.

I configured the vpnclient creating a Nic and account.
I could not find a way to input the Pre Shared Key while creating the connection. Also I cannot find a command to do that.

I started dhclient on the new interface.
It looked like could connect to the Softether's VPN Server.
I checked with the server admin and he can see my connection.
I can ping to the VPN gw and also I can ping to other connected clients.
I added the routes needed to access the networks behind the VPN, but cannot go beyond VPN gw.

My questions are:
1) Is it possible to my cilent to connect to the vpn even when I have not set the PSK?
2) Not having the PSK set could be the reason why I'm not able to pass through VPN gw?
3) How can I set the PSK using vpncmd only? I have no windows host to run the Client Manager UI.

qupfer
Posts: 198
Joined: Wed Jul 10, 2013 2:07 pm

Re: Set Pre Shared Key (PSK) with vpncmd on Ubuntu

Post by qupfer » Fri Feb 13, 2015 1:22 pm

You have a thinking error ;)

vpncmd is the configuration-tool for the SoftEther Client, which is only a Client for SoftEthers own VPN-Protocol (Ethernet over https). It doesn't use a PreShared key, so you can't set one. If you want to use IPsec, you need a IPsec Client.

But you can use the SofEther-VPN Protocoll instead of IPsec.

The commands should be approximated:
sudo vpnclient start
sudo vpncmd /CLIENT

NicCreate (name vpn)
AccountCreate
AccountSetPassword
AccountConnect
Exit

dhcpdc vpn_vpn

mhdion
Posts: 3
Joined: Thu Feb 12, 2015 11:44 am

Re: Set Pre Shared Key (PSK) with vpncmd on Ubuntu (SOLVED)

Post by mhdion » Fri Feb 13, 2015 5:49 pm

Thanks for your response.
Now I realized that I was talking about different thimgs.

Post Reply