OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: Mann-IT on August 30, 2018, 05:44:33 pm

Title: Virtual Interface
Post by: Mann-IT on August 30, 2018, 05:44:33 pm
Hi,

i there a way to create an virtual interface the i can connect to lan?
I should feel like an real nic, but there should no connection on it.
No VLAN or something else. Opnsense should think it is an real nic.

Greetings Mario
Title: Re: Virtual Interface
Post by: guest15389 on August 30, 2018, 05:58:31 pm
From the menu, Firewall -> Virtual IP -> Settings and Add.

Pick which interface you want to add it onto.
Title: Re: Virtual Interface
Post by: Mann-IT on August 30, 2018, 07:13:05 pm
HI,

hmm that ist not what i searching for. I need a Virtual Nic that opnsense think that is an physikal nic on the server.
Only then i can connect this nic to the LAN interface.

Greetings Mario
Title: Re: Virtual Interface
Post by: guest15389 on August 30, 2018, 08:13:04 pm
I'm not sure what you are trying to do.

You'd stack a virtual IP on an interface. Can you explain in more detail what you are trying to do?
Title: Re: Virtual Interface
Post by: Mann-IT on August 30, 2018, 08:29:18 pm
HI,

i will run opnsense on an vserver with one nic.
This nic is connect to wan, so I have no lan.
Problem is when I make some zerotier vpns I can only connect only one to the interfaces. The next will override the first one. So I can't connect more then 1 Zerotier vpn. It looks like the behavior comes from the missing LAN interface. I tried with ipconfig lo1 create but on reboot it will vanish.
Normal there must be way to create in Freensd an virtual nic, that i can connect to lan and all ist good :-)

Greetings Mario

This Problem has  many people here to with vserver and one nic.
Title: Re: Virtual Interface
Post by: guest15389 on August 30, 2018, 10:20:02 pm
Wouldn't you normally just create another virtual interface in the VM tool and assign in the as a local/private interface only?
Title: Re: Virtual Interface
Post by: Mann-IT on August 30, 2018, 10:48:44 pm
HI,

the hoster will money for that.
There must a way to simulate the lan interface.
The question is only how.

Greetings Mario
Title: Re: Virtual Interface
Post by: Milkwyrm on August 31, 2018, 02:16:34 am
vLAN? if I understand what you've written so far, you wont be able to connect to it (unless the provider allows trunk access out?), but you will be able to assign it as the LAN interface. Might want to be careful and sort firewall rules so you don't loose access once you have a LAN interface.
Title: Re: Virtual Interface
Post by: Mann-IT on August 31, 2018, 09:24:29 am
HI,

if I create an VLAN with the WAN, same problem i cannot to more then 1 vpn interface.

Greetings Mario