setup port forward to client

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
andyg
Posts: 2
Joined: Thu Mar 24, 2016 1:27 am

setup port forward to client

Post by andyg » Thu Mar 24, 2016 2:03 am

How can I configure the VPN server to forward internet connections onto my VPN client? For Example:

- Softether VPN Server hosted on DigitalOcean cloud Ubuntu Linux server
- Softether VPN client on PC
- Windows 10 PC has a web service that I want anonymized and encrypted such as an X server, or bit torrent client. EG Is listening on port 6010

How can I configure my VPN so that other internet connections heading for my VPN IP address port 6010 will be sent to my Windows 10 PC via the VPN instead of the VPN server?

I'm guessing the answer might be something to do with bridging, but I am not sure how that helps and what that exactly does to allow this, nor how to set this up.

Help please.

Details:
Software version: softether-vpnserver-v4.19-9605-beta-2016.03.06-linux-x64-64bit.tar.gz
Server Configured as a VPN server
I do not think there is a firewall between VPN server and the internet.

vpn server # uname -a
Linux ubuntu-512mb-sfo1-01 3.13.0-79-generic #123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

vpn server # ifconfig -a
eth0 Link encap:Ethernet HWaddr 04:01:ba:26:2c:01
inet addr:107.170.207.51 Bcast:107.170.207.255 Mask:255.255.240.0
inet6 addr: fe80::601:baff:fe26:2c01/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:2344323 errors:0 dropped:0 overruns:0 frame:0
TX packets:2162690 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:822656244 (822.6 MB) TX bytes:722670831 (722.6 MB)

eth1 Link encap:Ethernet HWaddr 04:01:ba:26:2c:02
BROADCAST PROMISC MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:10218 errors:0 dropped:0 overruns:0 frame:0
TX packets:10218 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12860416 (12.8 MB) TX bytes:12860416 (12.8 MB)
You do not have the required permissions to view the files attached to this post.

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

Re: setup port forward to client

Post by thisjun » Fri Apr 15, 2016 7:47 am

I think ssh port forwarding is enough for your goal.

If you want to use VPN, install VPN client in VM, and do port forwarding to client.

andyg
Posts: 2
Joined: Thu Mar 24, 2016 1:27 am

Re: setup port forward to client

Post by andyg » Mon Apr 18, 2016 5:30 am

thisjun wrote:
> I think ssh port forwarding is enough for your goal.
>
> If you want to use VPN, install VPN client in VM, and do port forwarding to
> client.


Thanks, but what if your app on your PC that is listening on port 6010 for connections then for each incoming connection opens another port specific to that connection? In that case you'd need any port forwarded to your PC from the VPN server out on the internet. Thoughts?

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

Re: setup port forward to client

Post by thisjun » Tue May 10, 2016 6:53 am

Sorry I can't catch your meaning exactly.
Anyway, I think SSH suite for your purpose.
ssh -R 6010:localhost:6010 DigitalOcean-hostname

Post Reply