softether on linode(ubuntu) as vpn server -- question again

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
equalto
Posts: 7
Joined: Sat May 25, 2013 11:44 am

softether on linode(ubuntu) as vpn server -- question again

Post by equalto » Sat Jun 15, 2013 10:32 am

Hi Gentlemen,

I installed a softether server(the latest code by May 20) on a linode server(ubuntu) but got some problems.
1. If I try with softether client, it does connect. But the net adapter looks like this:
================================================
Ethernet adapter VPN1978 - VPN Client:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VPN Client Adapter - VPN1978
Physical Address. . . . . . . . . : 00-AC-06-D8-CC-4E
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IP Address. . . : 169.254.242.49
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
==================================================
At least I should be able to access my vpn server by the vpn ip. But I do not know how to.
And, checkip.org shows that I'm still using using the laptop's IP, not my vpn server's public IP.

2. If I try to connect with windows xp network setting. An error "738" appears, seems that a dhcp service is needed.

3. If I enable "secure nat", everything is OK. But ether server costs too much cpu resource(always 100%).

Any help will be great appreciated.


Thanks,
New guy to softether

equalto
Posts: 7
Joined: Sat May 25, 2013 11:44 am

Re: softether on linode(ubuntu) as vpn server -- question ag

Post by equalto » Sat Jun 15, 2013 10:32 am

Post my steps here:
a. In "SoftEther VPN Server / Bridge Easy Setup" page, select "Remote Access VPN Server". Next
b. In the next dialog-box, select "Yes" to initialize the vpnserver and bridge.
c. Next input dialog-box, set the Virtual Hub Name with default value "VPN".
d. "Dynamic DNS Function" page, do nothing, just "Exit".
e. "IPSec/ L2TP / .." Page, only select "Enable L2TP Server Function". Select OK.
f. "Disable VPN Azure" because my server has a public IP.
g. Create a user.
h. Select "eth0" for "Set Local Bridge".
i. Try connect from client side.

cedar
Site Admin
Posts: 2070
Joined: Sat Mar 09, 2013 5:37 am

Re: softether on linode(ubuntu) as vpn server -- question ag

Post by cedar » Sat Jun 15, 2013 4:02 pm

Please use tap mode local-bridge to create virtual interface on the Linux.
You can access the VPN server host by this virtual interface.
And you can configure the Linux setting to work as NAT or router.
(It may be a bit difficult If you are not used to build the network using Linux.)

equalto
Posts: 7
Joined: Sat May 25, 2013 11:44 am

Re: softether on linode(ubuntu) as vpn server -- question ag

Post by equalto » Mon Jun 17, 2013 1:12 pm

Tap adapter does not work. Following is the adapter created on server:
==================================================================
tap_tapinter Link encap:Ethernet HWaddr 00:ac:d4:8c:7f:a0
inet6 addr: fe80::2ac:d4ff:fe8c:7fa0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82 errors:0 dropped:0 overruns:0 frame:0
TX packets:111 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:10170 (10.1 KB) TX bytes:8954 (8.9 KB)
===================================================================
(Why no ip4 address?)

If try to connect windows vpn(L2TP IPSec), still get error of "738: The server did not assign an address".
If try with softether client, the vpn ip address still has no gateway.

Any suggestion?


Thanks!

tboege
Posts: 4
Joined: Mon Jun 17, 2013 9:25 pm

Re: softether on linode(ubuntu) as vpn server -- question ag

Post by tboege » Mon Jun 17, 2013 9:27 pm

I guess you missed some bridgesetup and maybe some dhcpserver setup. Have at look at http://linc01n.github.io/blog/2013/05/1 ... al-bridge/

equalto
Posts: 7
Joined: Sat May 25, 2013 11:44 am

Re: softether on linode(ubuntu) as vpn server -- question ag

Post by equalto » Wed Jun 19, 2013 2:08 am

Many thanks! It does solve my problem.

I'm a new guy to linux, but know little about the network. The time I saw the problem, I thought i might know the reason:
If the VPN server lets you to access as a member of the internal network, an internal IP must be assigned to the client. This should be done by the DHCP server of the internal network.
But vpnserver is working on a VM, and no dhcp server is provided for the vpn client. We'll have to set up another internal network(dhcp service is necessary) so that VPN client can access.
The solution, is actually, a nat solution.
Am I right?


Thanks Again!

Post Reply