Windows OpenVPN Server on AWS

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
regan
OpenVpn Newbie
Posts: 1
Joined: Wed May 17, 2023 5:21 am

Windows OpenVPN Server on AWS

Post by regan » Thu May 18, 2023 4:26 am

I have a few AWS servers, and I'd like to configure OpenVPN on one of them, so that I can connect to any server from my home. I can't seem to get the routing to the additional server to work.

The servers are on a subnet 10.0.0.0 255.255.255.0

Server 1 (with OpenVPN Server): 10.0.0.52
Server 2 (The Unreachable Server): 10.0.0.112

The OpenVPN server is installed on Server 1 and has a VPN IP of 10.8.0.1
My OpenVPN client is connected successfully with an IP of 10.8.0.2

I can remote desktop to the Server 1 IP of 10.0.0.112 proving that the basic VPN is working.

The problem is no matter what I do, I can't seem to remote desktop to Server #2.
I've played with routing rules and firewall rules for several hours without success on the Open VPN client, server1, server2, and Security Group rules.

Firewalls on both test servers presently disabled.
Security Group rule set to allow all traffic from 10.0.0.0/16 to both servers

It is basically set up like:
https://woshub.com/install-configure-op ... r-windows/

I've run:
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v IPEnableRouter /t REG_DWORD /d 1 /f

I've tried (not sure if required...may add to boot script):
PowerShell: Set-NetIPInterface -Forwarding Enabled

I've read through:
https://openvpn.net/community-resources ... er-subnet/

I've tried adding this to Server 2 route table (now removed):
route add 10.8.0.0 mask 255.255.255.0 10.0.0.52 -p

I'm out of Ideas, and ChatGPT wasn't any help either. Seems pretty basic. What am I doing wrong?

Post Reply