simple VPN scenario possibility


I would like to ask you guys if connection such as below is possible:

  1. My computer with Windows
  2. Device with VPN capability (client)
  3. StrongSwan VPN Server on Digital Ocean VPS with only one internet interface:

root@ubuntu-s-1vcpu-1gb-fra1-01:~# ifconfig eth0 Link encap:Ethernet HWaddr 1a:79:97:7b:98:f8 inet addr:159.x.x.x Bcast:159.x.x.x Mask: inet6 addr: xxdfdfsdf Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:595 errors:0 dropped:0 overruns:0 frame:0 TX packets:502 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:270080 (270.0 KB) TX bytes:93217 (93.2 KB)

lo Link encap:Local Loopback inet addr: Mask: inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:160 errors:0 dropped:0 overruns:0 frame:0 TX packets:160 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:11840 (11.8 KB) TX bytes:11840 (11.8 KB)

I want to create such a connection

Windows client (me) connects remotly to VPN on VPS. Device with VPN capability also connects to the VPN on VPS. Windows client can access devices web interface via it’s internal IP address of the virtual network.

So basically:

Client1 -> StrongSwan on VPS <- client2

Client1 accessing client2 on let’s say

Is that possible considering only one interface is installed on the VPS?

I can succesfully connect with VPN and it routes my internet traffic through itself. Whatismyip gives me my VPS’s address. Is that all that can be achieved in this setup or could I access other client’s resources as they were in LAN?




Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!