Problem establishing a VPN

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
sxicion
Posts: 3
Joined: Fri Nov 21, 2014 8:03 pm

Problem establishing a VPN

Post by sxicion » Sat Nov 22, 2014 5:09 pm

Hi! I am doing my end-of-career project at the UCM (a University in Spain) and right now I am doing some tests and research using SoftEther to create a VPN between my PC (or any other device) and a VM (deployed using virtualbox) deployed within my laptop so I can ping a second VM also deployed in my laptop that is only reacheable by an internal network consisting of the to VM.

My PC: Windows 8.1 with VPNClient and a virtual network adapter that is connected to the VPNServer in the VM.

First VM (let's call it server): a Ubuntu Server 14.10 with two net interfaces: the first one (eth0) in NAT mode with the ports 15000, 15001 and 15002 redirected to the VM as 5555, 8888 and 443 respectively and the second one (eth1) in internal network. I have installed the Softether VPN server on it, flushed the iptables and activated the ip_forward variable.

Second VM: a Ubuntu 9.10 with one interface in internal network mode. I have added the server eth1 as its default gateway.

VPNserver configuration: I have created a virtual hub named inetp, created a user with password authentification and secure nat enabled (I read somewhere that it was needed, correct me if I am wrong). Also if I look in bridgelist, inetp is in the list connected to eth1, something that I suppose is right.

VPNclient connection configuration: the connection is established to my laptop ip and the port 15000 (so it redirects the traffic and the connection to the VM), with my user and password.

Once I do all of this, when I connect to the VPN, I am given an IP (192.168.10.30) and the server looking in network properties (or details I cannot recall) is given 192.168.10.1 and if I ping it everything goes well but once I ping from my pc to any of the ips of the internal network (172.16.0.1 and 2) I recieve the network unreacheable message from my ISP, but if I change the IPs to 192.168.10.5 and 6, the message comes from the server IP 192.168.10.1.

So my questions are:
Is it possible to create such Network topology and make it work with SoftEther?
If the answer is yes, what have I to do to reach the machine without the VPNserver from my client? Because I don't know what is wrong, but I am so new with this program that everything can be wrong (hope not).

Thanks in advance,

Sxicion

dajhorn
Posts: 137
Joined: Mon Mar 24, 2014 3:59 am

Re: Problem establishing a VPN

Post by dajhorn » Mon Nov 24, 2014 3:49 pm

Try to break this into smaller questions. That much writing before a question mark doesn't fit into my head and is likely to be ignored by other people that could help you.

Also note that Ubuntu 9.10 is discontinued and unsupported.

sxicion
Posts: 3
Joined: Fri Nov 21, 2014 8:03 pm

Re: Problem establishing a VPN

Post by sxicion » Mon Nov 24, 2014 11:53 pm

I am not using the server or the client within the Ubuntu 9.1 VM, I am just trying to connect to it from my Windows PC. The one with the client is the Ubuntu Server 14.10

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: Problem establishing a VPN

Post by thisjun » Wed Dec 03, 2014 7:54 am

Your internal address is 172.16.0.x, however your DHCP assigns 192.168.10.30.
Why did your configure such different subnet for virtual DHCP?

sxicion
Posts: 3
Joined: Fri Nov 21, 2014 8:03 pm

Re: Problem establishing a VPN

Post by sxicion » Mon Dec 08, 2014 8:31 pm

I didn't configure anything, it gives the client that IP in the moment I activate the securenat option on the server. I do not even know where I can configure it

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: Problem establishing a VPN

Post by thisjun » Tue Dec 16, 2014 8:56 am


Post Reply