OpenVPN Server with 2 NICs and 2 different networks

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
User avatar
poppm
OpenVpn Newbie
Posts: 1
Joined: Wed Sep 16, 2020 8:09 pm

OpenVPN Server with 2 NICs and 2 different networks

Post by poppm » Wed Sep 16, 2020 8:35 pm

Hi@all,

first things first. The OpenVPN project is very amazing. I use it since several years. But now I don't know where I make the mistake in the configuration.

The Environment:
OpenVPN Server 2.4.7 running on an Ubuntu 20.04 Server Proxmox VM.
It have two NICs, one for each network 192.168.178.109 and 192.168.188.55.
There are two different networks. The external 192.168.178.0 with 192.168.178.1 as gateway with direct internet access.
The internal network 192.168.188.0 with 192.168.188.1 as gateway with internet access over WAN to 192.168.178.1. To use this 2 routers like a fake DMZ.
There are no problems until here.
The Server listen on address 192.168.178.109 what is forwarded in the router(1194/udp) and open in iptables/ufw.
The connection is established very fast and stable. All networks on the nic in ...178.0 are reachable. Even other VPNs created by the router to router (lan/lan)function in my router.

But i cant reach the network behind the second nic. The VM itself can ping and provide data to all of them.
I've browsed so many boards and tutorials tonsolve my problem. All i've found is to push "route...." and iroute in ccd directory files. But i think thats only possible if the pushed networks are reachable over openvpn listening nic? But i tried the solution and it not solving my problem. If i ping a device from my smartphone connected to vpn the tracer shows the internal vpn ip 10.8.0.* and the target ip. Perfect, but if I ping thebothers nic devices it shows just nothing in tracer view.

I hope somebody can help with my problem and my cruel english.

Best regards
Michael

jsmith1299
OpenVpn Newbie
Posts: 2
Joined: Fri Oct 25, 2019 11:44 am

Re: OpenVPN Server with 2 NICs and 2 different networks

Post by jsmith1299 » Tue Oct 12, 2021 2:34 pm

Did you get this working? I have the same issue.

IP address of 10.203.1.61 (10.203.X.X network) listens for OpenVPN connections. I have another network of 172.28.255.X which is on another NIC and can't get this to work for the clients. The server itself can view both networks.

Thanks

wilrou
OpenVpn Newbie
Posts: 2
Joined: Fri Dec 22, 2023 3:27 pm

Re: OpenVPN Server with 2 NICs and 2 different networks

Post by wilrou » Fri Dec 22, 2023 3:57 pm

Hi,

I have this issue.
Someone resolve it ?

Post Reply