OPNsense Forum

English Forums => General Discussion => Topic started by: thron on March 20, 2020, 09:10:17 am

Title: two Address one inferface and OpenVPN
Post by: thron on March 20, 2020, 09:10:17 am
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.
Title: Re: two Address one inferface and OpenVPN
Post by: bartjsmit on March 20, 2020, 01:50:09 pm
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...
Title: Re: two Address one inferface and OpenVPN
Post by: thron on March 22, 2020, 12:03:41 am
Perfekt...Thank you!