OpenVPN @ AWS Lightsail with server-lan/VPC routing

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
ta.ryan
OpenVpn Newbie
Posts: 1
Joined: Thu Feb 16, 2023 3:03 pm

OpenVPN @ AWS Lightsail with server-lan/VPC routing

Post by ta.ryan » Thu Feb 16, 2023 3:25 pm

Hi, friends. I have been trying something that seems like it should be possible and easy but i may be wrong on both points. Any insight is greatly appreciated. basically i want oenvpn clients to have 2 way communicatin with machines on same subnet as openvpn server. even if one of those machines initiates to a client. it is for remote ip phones to talk to a phone server.

I have a 3cx phone server on lightsail with a VPC enabled/internal IP of lets say 172.26.1.1 (/16 subnet)
I have a openvpn server on lightsail on this same VPC/internal network with IP of say 172.26.2.2 - and these two machines communicate together fine.
This openvpn server should be configured with a dynamic dhcp pool for clients - lets say 10.10.10.0/24 (but it doesnt matter for my purposes)

any of these clients should be able to:
-talk to eachother as though a LAN
-talk to any machine on server VPC 172.26.0.0/16 as though lan
-any of the machines on 172.26.0.0./16 should be able to initiate communication with any clients

and then once that works, i will have to put the settings into a .cnf for the ip phone
https://help.yeastar.com/en/s-series/to ... phone.html

**if there is a paid support/expert for this kind of thing (dont want to do it with access server) please advise, otherwise, im game to sort this out

ryan
---
ive tried all the routing options that seem to make sense and tried adding a static route on phone server pointing to vpn client subnet... nothing seems to work. using NAT allows the phones to register and speak out but nothing is heard back on return.

Post Reply