Virtual Network NIC like phyical nic

HI BSD Pros,

I'am searching for follow problem. I installed opnsense an Firewall on FreeBSD on an vserver with 1physical nic.
Problem without a second lan some things not working probably well.
Now my question, is there a way to create an virtual nic that freebsd think that is an real phycial nic? So i can connect then to LAN in opnsense?

Greetings Mario
 
I asking not for opnsense im asking for an virtual nic in freebsd. opnsense is only the firewall software.
 
opnsense is only the firewall software.
It's not. OPNsense is a completely customized FreeBSD derivative. It was forked from pfSense, which is also a completely customized FreeBSD derivative.
 
Yes, but the core system is freebsd. I tried ifonfig lo1 create but this will not work.
Is there a way do say freebsd create a nic with the feeling like an physical nic?
 
Yes, but the core system is FreeBSD.
Yes, but is has been completely customized. The way OPNSense is configured is completely different from how a plain FreeBSD is configured. So I could tell you how to do this on FreeBSD but it will likely NOT work for OPNSense because they've set things up differently.

OPNSense is based on FreeBSD much like LibreELEC is based on Linux. But both are highly customized installations and what works on plain Linux or FreeBSD simply does not work the same way on those customized images.

In short, find an OPNSense forum and ask your questions there.

For FreeBSD, add to /etc/rc.conf
Code:
cloned_interfaces="lo1"
 
Back
Top