Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - rreboto

#1
Hello,

I have been able to get a Linux VM running with vm-bhyve on OPNsense, but I'm having trouble getting a stable network connection to a VLAN.

What I see is when the VM boots up the firewall filters the VM's tap interface and deny entries against the tap interface show in the logs. After roughly 18-20 minutes, deny logs stop and packets flow through the VLAN rule set.  I setup a script that makes DNS requests until it's successful, logs how long it takes, and reboots the VM.  Out of ~35 iterations, most times DNS request succeed in the 18-20 minute range.

I used `vm switch create` to make a switch on a vlan interface `ix2_vlan66`.  This creates a bridge interface, which I assigned in the UI, and an entry for it became available in the firewall rules section.  In the firewall I create a single rule that allows everything.  From what I can tell, that rule is used to allow DHCP to work; all other packets appear to be processed with the VLAN's rules.

Per instructions on "How to set up a LAN Bridge" [1] I set `net.link.bridge.pfil_member` to 0 and net.link.bridge.pfil_bridge to 1.

Any thoughts on what might be causing this?  Ideally the correct firewall rules would be applied to the VM immediately without the delay.  It seems like `net.link.bridge.pfil_member` and `net.link.bridge.pfil_bridge` tunables take effect on the tap interface/new members to the bridge after ~18 minutes.

Thank you!

[1] https://docs.opnsense.org/manual/how-tos/lan_bridge.html
#2
Virtual private networks / Add DNS entry for VPN client?
February 01, 2022, 04:49:39 PM
Hi all,

I have configured OPNSense to accept client OpenVPN connections.  I have a few remote servers that connect via VPN and I would like to connect to them, say with SSH, via hostname when I'm either on the network or connected via VPN myself.

I'm unable to find an option in the GUI to be able to create DNS entries for VPN clients using their VPN IP address.  Is this possible?  If it's not an option in the GUI is there some elegant way to achieve this?  In the past when installing and configuring OpenVPN on my own I had created a script that watches a status log file with the option `status <filename>` in the server configuration.

Thank you!