two Address one inferface and OpenVPN

Started by thron, March 20, 2020, 09:10:17 AM

Previous topic - Next topic
Hi there,
I have a question and need help.

I have a computer with two network cards on which I have installed Opnsense and want to operate it as an OpenVPN server. One card is the WAN interface and the other card is the LAN interface.

Confguration:
WAN -> 192.168.178.240
LAN -> 192.168 150 .2

There are two networks on the WAN side, which are as follows:
1 -> 192.168.178.0/24
2 -> 192.168.10.0/24

Now I would like to use both networks over a WAN interface. So that a VPN client that comes from network 1 and a VPN client that comes from network 2 can connect.
How do I do that?

I once created a virtual IP but somehow it doesn't work.

Can someone please help me, I'm desperate right now!

Many greetings and thank you.

Connect the WAN side to a managed switch and assign a separate VLAN for each subnet.

You are allowing private networks, aren't you?

Bart...