vpncmd command returning errors under option 1 and 2

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
afladimir
Posts: 2
Joined: Fri Sep 06, 2019 8:47 am

vpncmd command returning errors under option 1 and 2

Post by afladimir » Fri Sep 06, 2019 8:55 am

Hello,

I have tried to install SoftEther VPN in ubuntu 18.04 using the following command (https://forum.icoexist.io/t/install-sof ... -ubuntu/16):

Code: Select all

wget -O se-install https://raw.githubusercontent.com/icoexist/softether-autoinstall/master/ubuntu/se-install-ubuntu.bash && chmod +x se-install && ./se-install
Then I run the following line to access the cmd of SoftEther:

Code: Select all

sudo /opt/vpnserver/vpncmd
The menu appears with the 3 options but in the first and second option if I press enter without enter IPs to use the default values I always get erros such as:

Code: Select all

1. Management of VPN Server or VPN Bridge 
2. Management of VPN Client
3. Use of VPN Tools (certificate creation and Network Traffic Speed Test Tool)

Select 1, 2 or 3: 1

Specify the host name or IP address of the computer that the destination VPN Server or VPN Bridge is operating on. 
By specifying according to the format 'host name:port number', you can also specify the port number. 
(When the port number is unspecified, 443 is used.)
If nothing is input and the Enter key is pressed, the connection will be made to the port number 8888 of localhost (this computer).
Hostname of IP Address of Destination: 

If connecting to the server by Virtual Hub Admin Mode, please input the Virtual Hub name. 
If connecting by server admin mode, please press Enter without inputting anything.
Specify Virtual Hub Name: 
Error occurred. (Error code: 2)
Protocol error occurred. Error was returned from the destination server.
If I go to the option 2:

Code: Select all

Select 1, 2 or 3: 2

Specify the host name or IP address of the computer that the destination VPN Client is operating on. 
If nothing is input and Enter is pressed, connection will be made to localhost (this computer).
Hostname of IP Address of Destination: 

Error occurred. (Error code: 1)
Connection to the server failed. Check network connection and make sure that address and port number of destination server are correct.
Checking with option 3 if everything is ok and this is the output, pass in everything:

Code: Select all

Select 1, 2 or 3: 3

VPN Tools has been launched. By inputting HELP, you can view a list of the commands that can be used.

VPN Tools>check
Check command - Check whether SoftEther VPN Operation is Possible
---------------------------------------------------
SoftEther VPN Operation Environment Check Tool

Copyright (c) SoftEther VPN Project.
All Rights Reserved.

If this operation environment check tool is run on a system and that system passes, it is most likely that SoftEther VPN software can operate on that system. This check may take a while. Please wait...

Checking 'Kernel System'... 
              Pass
Checking 'Memory Operation System'... 
              Pass
Checking 'ANSI / Unicode string processing system'... 
              Pass
Checking 'File system'... 
              Pass
Checking 'Thread processing system'... 
              Pass
Checking 'Network system'... 
              Pass

All checks passed. It is most likely that SoftEther VPN Server / Bridge can operate normally on this system.

The command completed successfully.
Any Idea why I get those erros and can't even use the localhost?

sky59
Posts: 215
Joined: Tue Sep 11, 2018 5:58 pm

Re: vpncmd command returning errors under option 1 and 2

Post by sky59 » Fri Sep 06, 2019 2:25 pm

Have you started bridge, server or client on local machine?

Tarkovsky
Posts: 2
Joined: Thu Sep 05, 2019 11:39 pm

Re: vpncmd command returning errors under option 1 and 2

Post by Tarkovsky » Fri Sep 06, 2019 4:06 pm

did you do

Code: Select all

./vpnserver start
first?

97gerard216
Posts: 2
Joined: Fri Sep 06, 2019 5:33 pm

Re: vpncmd command returning errors under option 1 and 2

Post by 97gerard216 » Fri Sep 06, 2019 5:43 pm

Hello,

Test this solution, it solved my problem. Look for your public IP address: https://www.whatismyip.com/.
Then enter your public ip in Hostname of IP Address of Destination:

afladimir
Posts: 2
Joined: Fri Sep 06, 2019 8:47 am

Re: vpncmd command returning errors under option 1 and 2

Post by afladimir » Mon Sep 09, 2019 12:14 pm

Tarkovsky wrote:
Fri Sep 06, 2019 4:06 pm
did you do

Code: Select all

./vpnserver start
first?
Yes and it said

Code: Select all

SoftEther VPN Server service has been already started.
97gerard216 wrote:
Fri Sep 06, 2019 5:43 pm
Hello,

Test this solution, it solved my problem. Look for your public IP address: https://www.whatismyip.com/.
Then enter your public ip in Hostname of IP Address of Destination:
Thanks it worked.
EDIT:

Now I have the same problem configuring the client, any ideas?

Code: Select all

Error occurred. (Error code: 1)
Connection to the server failed. Check network connection and make sure that address and port number of destination server are correct.

97gerard216
Posts: 2
Joined: Fri Sep 06, 2019 5:33 pm

Re: vpncmd command returning errors under option 1 and 2

Post by 97gerard216 » Mon Sep 09, 2019 4:03 pm

Hello,

Sorry, I do not know anything about Linux. I struggled to find this solution. I have not completed the installation of SoftEther yet.
I attach a link to this tutorial: https://wordpress.tirlins.com/2015/03/s ... n-openwrt/.
But given the availability of the software "SoftEthervpn 4.29-9680-2" in LuCi> Software by Openwrt, parts 1 and 2 of the tutorial are obsolete. I hope it will be useful to you.

Good reading

Post Reply