1
24.7 Production Series / Re: Bridged OpenVPN only works after resetting interface
« on: November 03, 2024, 11:15:36 am »
Hi all
I spent quite some time investigating, checking all related forum entries and github issues I could find, but to no avail.
But I have an update on the investigation.
The most interesting observation:
--> I have several devices of same type plus some VMs. One only one of the devices, one of the two VPN Interfaces that are bridged on the same bridge shows as UP after reboot and works normally. On other devices (even same hardware with exact same config.xml loaded), both interfaces are down after reboot.
This seems like some kind of race condition to me.
Alss interesting: broadcast traffic, like a broadcast ping, comes through to the VPN client even on the interface shown as down. On both servers, the VPN clients can connect, but traffic is only normal on ovpns2/opt7.
I don't know of anything else to check/do tbh.
Any other information needed? Should I create an issue on github?
Any help is appreciated.
I went through the logs and there are different entries for both:
ovpns1/opt6 -- NOT WORKING after reboot
ovpns2/opt7 -- WORKING after reboot
Despite the ERROR, the ovpns2 also shows as member of the bridge and traffic goes through as expected.
I spent quite some time investigating, checking all related forum entries and github issues I could find, but to no avail.
But I have an update on the investigation.
The most interesting observation:
--> I have several devices of same type plus some VMs. One only one of the devices, one of the two VPN Interfaces that are bridged on the same bridge shows as UP after reboot and works normally. On other devices (even same hardware with exact same config.xml loaded), both interfaces are down after reboot.
This seems like some kind of race condition to me.
Alss interesting: broadcast traffic, like a broadcast ping, comes through to the VPN client even on the interface shown as down. On both servers, the VPN clients can connect, but traffic is only normal on ovpns2/opt7.
I don't know of anything else to check/do tbh.
Any other information needed? Should I create an issue on github?
Any help is appreciated.
I went through the logs and there are different entries for both:
ovpns1/opt6 -- NOT WORKING after reboot
Code: [Select]
2024-11-03T10:27:31 Notice kernel <118> INSTRUMENT_VPN_UDP (ovpns1) ->
2024-11-03T10:27:28 Notice kernel <118>Reconfiguring IPv4 on ovpns1
2024-11-03T10:27:28 Notice kernel <6>ovpns1: link state changed to UP
2024-11-03T10:27:28 Notice opnsense /usr/local/etc/rc.newwanip: IP renewal deferred during boot on 'ovpns1'
2024-11-03T10:27:27 Notice kernel <6>ovpns1: promiscuous mode enabled
2024-11-03T10:27:27 Notice kernel <6>tap1: changing name to 'ovpns1'
2024-11-03T10:27:27 Notice opnsense /usr/local/etc/rc.bootup: Device ovpns1 cannot be added to non-existent bridge0, skipping now.
2024-11-03T10:27:27 Notice opnsense /usr/local/etc/rc.bootup: Device ovpns1 required for opt6, configuring now
2024-11-03T10:27:26 Notice kernel <6>ovpns1: link state changed to DOWN
Code: [Select]
2024-11-03T10:27:28 Notice opnsense /usr/local/etc/rc.newwanip: Failed to detect IP for interface opt6
2024-11-03T10:27:27 Notice opnsense /usr/local/etc/rc.bootup: Device ovpns1 required for opt6, configuring now
ovpns2/opt7 -- WORKING after reboot
Code: [Select]
2024-11-03T10:27:31 Notice kernel <118> INSTRUMENT_VPN_TCP (ovpns2) ->
2024-11-03T10:27:28 Error opnsense /usr/local/etc/rc.linkup: The command `/sbin/ifconfig 'bridge0' addm 'ovpns2'' failed to execute
2024-11-03T10:27:28 Notice opnsense /usr/local/etc/rc.linkup: Device ovpns2 requires reload for opt7, configuring now
2024-11-03T10:27:28 Notice kernel <118>Reconfiguring IPv4 on ovpns2
2024-11-03T10:27:28 Notice kernel <6>ovpns2: link state changed to UP
2024-11-03T10:27:28 Notice opnsense /usr/local/etc/rc.linkup: DEVD: Ethernet attached event for opt7(ovpns2)
2024-11-03T10:27:28 Notice opnsense /usr/local/etc/rc.newwanip: IP renewal deferred during boot on 'ovpns2'
2024-11-03T10:27:27 Notice kernel <6>ovpns2: promiscuous mode enabled
2024-11-03T10:27:27 Notice opnsense /usr/local/etc/rc.bootup: Device ovpns2 cannot be added to non-existent bridge0, skipping now.
2024-11-03T10:27:27 Notice kernel <6>tap2: changing name to 'ovpns2'
2024-11-03T10:27:27 Notice opnsense /usr/local/etc/rc.bootup: Device ovpns2 required for opt7, configuring now
2024-11-03T10:27:26 Notice kernel <6>ovpns2: link state changed to DOWN
Code: [Select]
2024-11-03T10:27:29 Notice opnsense /usr/local/etc/rc.linkup: plugins_configure newwanip_map:rfc2136 (,opt7)
2024-11-03T10:27:28 Notice opnsense /usr/local/etc/rc.newwanip: Failed to detect IP for interface opt7
2024-11-03T10:27:28 Notice opnsense /usr/local/etc/rc.linkup: plugins_configure ipsec (execute task : ipsec_configure_do(,opt7))
2024-11-03T10:27:28 Notice opnsense /usr/local/etc/rc.linkup: plugins_configure ipsec (,opt7)
2024-11-03T10:27:28 Notice opnsense /usr/local/etc/rc.linkup: ROUTING: entering configure using opt7
2024-11-03T10:27:28 Notice opnsense /usr/local/etc/rc.linkup: Device ovpns2 requires reload for opt7, configuring now
2024-11-03T10:27:28 Notice opnsense /usr/local/etc/rc.linkup: DEVD: Ethernet attached event for opt7(ovpns2)
2024-11-03T10:27:27 Notice opnsense /usr/local/etc/rc.bootup: Device ovpns2 required for opt7, configuring now
Despite the ERROR, the ovpns2 also shows as member of the bridge and traffic goes through as expected.