Hi all,
I would like to connect some devices from two offices via openvpn.
I tried so much options a long time. Not all VPN-Wizards of some machines are uploading all ovpn right, sometimes my internal vpn-clients didn't see each other (client-to-client was active)...
Now I will make my configuration simply. I will add a raspberry as gateway, so devices who need them can use them as gateway to get connected via VPN
Having:
Office A:
Router: 192.168.178.1/24 (DHCP: 192.168.178.100-200)
Raspberry: 192.168.178.10/24, using Router as Gateway (static IP)
some DHCP Clients
some static Clients which should be reachable with VPN
Public Server (must work as VPN-Server)
Public IP: 123.123.123.123
Office B:
Router: 192.168.50.1/24 (DHCP: 192.168.50.100-200)
Raspberry: 192.168.50.10/24, using Router as Gateway (static IP)
some DHCP Clients
some static Clients which should be reachable with VPN
Shown in overview:
Office A (DHCP Clients) -> Router A -> Internet
Office B (DHCP Clients) -> Router B -> Internet
Office A (static Clients) -> Raspberry A > Tunnel via Router A -> Public VPN Server <- Tunnel via Router A < Raspberry A < Office B
I think its the same as here (scroll to Using routing and OpenVPN not running on the default gateway):
https://community.openvpn.net/openvpn/wiki/BridgingAndRouting
My Problem:
The VPN-Server should be installed on a public server in the internet.
I would like to get a tutorial:
Installing VPN-Server -> simple (using tap0 as virtual device)
Installing VPN-Client A (Raspberry), working as Gateway for Office A, connecting to VPN-Server
Installing VPN-Client B (Raspberry), working as Gateway for Office B, connecting to VPN-Server
My problems during installing on Raspberry: I tried to create a bridge, but couldn't be created if tap0 was not avaiable because tunnel failed (lost internet,...). I think i need some forward rules ....
My problems during installing on VPN-Server: Clients connect, no problem. But my office clients wasn't reachable.
I think there are so much fails, so I will ask for a complete tutorial for my situation.
All I know are not working with a dedicated VPN-Server, and often uncomplette.
Hope you understand well (sorry for my bad english).