sudo ps auxww | grep openvpn
sudo kill PID
sudo opnsense-shell reboot ─╯The system will reboot. Do you want to proceed? [y/N]: y>>> Invoking stop script 'beep'>>> Invoking stop script 'freebsd'Stopping crowdsec_firewall.Waiting for PIDS: 57894.Stopping crowdsec.Waiting for PIDS: 8413.Stopping vnstat.Waiting for PIDS: 29581.Stopping netdata.Waiting for PIDS: 80448 81906, 80448 81906, 80448 81906, 80448 81906, 80448 81906, 80448 81906, 80448 81906, 80448 81906.Stopping suricata.Waiting for PIDS: 18882.Stopping flowd.Waiting for PIDS: 34208 35086.Stopping mdns_repeater.Waiting for PIDS: 81454.Stopping flowd_aggregate...doneStopping monit.Waiting for PIDS: 77963.Network UPS Tools upsmon 2.8.0nut not running? (check /var/db/nut/upsd.pid).crowdsec not running? (check /var/run/crowdsec.pid).crowdsec_firewall not running? (check /var/run/crowdsec_firewall.pid).>>> Invoking stop script 'backup'>>> Invoking backup script 'captiveportal'>>> Invoking backup script 'dhcpleases'>>> Invoking backup script 'duid'>>> Invoking backup script 'netflow'>>> Invoking backup script 'rrd'>>> Invoking stop script 'config'shutdown: [pid 11227]Shutdown NOW!*** FINAL System shutdown message from XXXX@opnsense.XXXXX.org ***System going down IMMEDIATELY
sudo ps auxww | grep openvpn ─╯Password:XXXX 87188 0.4 0.0 12828 2452 2 S+ 22:29 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox openvpnroot 33848 0.0 0.0 17932 7200 - Ss 22:23 0:00.06 /usr/local/sbin/openvpn --config /var/etc/openvpn/client2.confroot 70723 0.0 0.0 17932 7200 - Ss 22:23 0:01.36 /usr/local/sbin/openvpn --config /var/etc/openvpn/client1.conf
...Syncing disks, vnodes remaining... 8 0 0 doneAll buffers synced.Uptime: 2d14h58m34s...Rebooting...
dmesg | grep ovpnc
echo hold | socat - unix-connect:/var/etc/openvpn/client1.sock
ovpnc1: link state changed to DOWNovpnc1: link state changed to UPovpnc2: link state changed to DOWNovpnc2: link state changed to UPovpnc1: link state changed to DOWNovpnc1: link state changed to UPovpnc2: link state changed to DOWNovpnc2: link state changed to UPovpnc1: link state changed to DOWNovpnc2: link state changed to DOWNWaiting (max 60 seconds) for system process `vnlru' to stop... doneWaiting (max 60 seconds) for system process `syncer' to stop...Syncing disks, vnodes remaining... 0 0 0 0 0 doneAll buffers synced.Uptime: 11h54m41s---<<BOOT>>---Copyright (c) 1992-2021 The FreeBSD Project.Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved.FreeBSD is a registered trademark of The FreeBSD Foundation.FreeBSD 13.1-RELEASE-p7 stable/23.1-n250411-85724e9ce22 SMP amd64FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)VT(efifb): resolution 800x600CPU: Intel(R) Core(TM) i7-10810U CPU @ 1.10GHz (1600.00-MHz K8-class CPU) Origin="GenuineIntel" Id=0xa0660 Family=0x6 Model=0xa6 Stepping=0 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0x7ffafbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM> AMD Features2=0x121<LAHF,ABM,Prefetch> Structured Extended Features=0x29c67af<FSGSBASE,TSCADJ,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE> Structured Extended Features3=0xbc000400<MD_CLEAR,IBPB,STIBP,L1DFL,ARCH_CAP,SSBD> XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES> IA32_ARCH_CAPS=0x2b<RDCL_NO,IBRS_ALL,SKIP_L1DFL_VME,MDS_NO> VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statisticsreal memory = 34358689792 (32767 MB)avail memory = 33209929728 (31671 MB)Event timer "LAPIC" quality 600ACPI APIC Table: <ALASKA A M I >FreeBSD/SMP: Multiprocessor System Detected: 12 CPUsFreeBSD/SMP: 1 package(s) x 6 core(s) x 2 hardware threadsrandom: registering fast source Intel Secure Key RNGrandom: fast provider: "Intel Secure Key RNG"random: unblocking device.ioapic0 <Version 2.0> irqs 0-119Launching APs: 1 11 3 5 7 9 10 4 8 6 2random: entropy device external interfacewlan: mac acl policy registeredkbd1 at kbdmux0WARNING: Device "spkr" is Giant locked and may be deleted before FreeBSD 14.0.efirtc0: <EFI Realtime Clock>efirtc0: registered as a time-of-day clock, resolution 1.000000ssmbios0: <System Management BIOS> at iomem 0x9b70f000-0x9b70f01esmbios0: Version: 3.2, BCD Revision: 3.2aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS>acpi0: <ALASKA A M I >acpi0: Power Button (fixed)cpu0: <ACPI CPU> on acpi0hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0Timecounter "HPET" frequency 24000000 Hz quality 950Event timer "HPET" frequency 24000000 Hz quality 350Event timer "HPET1" frequency 24000000 Hz quality 340Event timer "HPET2" frequency 24000000 Hz quality 340Event timer "HPET3" frequency 24000000 Hz quality 340Event timer "HPET4" frequency 24000000 Hz quality 340Event timer "HPET5" frequency 24000000 Hz quality 340Event timer "HPET6" frequency 24000000 Hz quality 340Event timer "HPET7" frequency 24000000 Hz quality 340attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0Timecounter "i8254" frequency 1193182 Hz quality 0Event timer "i8254" frequency 1193182 Hz quality 100Timecounter "ACPI-fast" frequency 3579545 Hz quality 900acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0pci0: <ACPI PCI bus> on pcib0vgapci0: <VGA-compatible display> port 0x3000-0x303f mem 0xb0000000-0xb0ffffff,0xa0000000-0xafffffff irq 16 at device 2.0 on pci0vgapci0: Boot video devicexhci0: <XHCI (generic) USB 3.0 controller> mem 0xb2100000-0xb210ffff irq 16 at device 20.0 on pci0xhci0: 32 bytes context size, 64-bit DMAusbus0 on xhci0usbus0: 5.0Gbps Super Speed USB v3.0pci0: <memory, RAM> at device 20.2 (no driver attached)pci0: <simple comms> at device 22.0 (no driver attached)ahci0: <AHCI SATA controller> port 0x3090-0x3097,0x3080-0x3083,0x3060-0x307f mem 0xb2114000-0xb2115fff,0xb211b000-0xb211b0ff,0xb211a000-0xb211a7ff irq 16 at device 23.0 on pci0ahci0: AHCI v1.31 with 2 6Gbps ports, Port Multiplier not supportedahcich0: <AHCI channel> at channel 0 on ahci0ahcich1: <AHCI channel> at channel 1 on ahci0pci0: <serial bus> at device 25.0 (no driver attached)pcib1: <ACPI PCI-PCI bridge> at device 28.0 on pci0pci1: <ACPI PCI bus> on pcib1pcib2: <ACPI PCI-PCI bridge> at device 28.5 on pci0pci2: <ACPI PCI bus> on pcib2igc0: <Intel(R) Ethernet Controller I225-V> mem 0xb1f00000-0xb1ffffff,0xb2000000-0xb2003fff irq 17 at device 0.0 on pci2igc0: Using 1024 TX descriptors and 1024 RX descriptorsigc0: Using 4 RX queues 4 TX queuesigc0: Using MSI-X interrupts with 5 vectorsigc0: Ethernet address: 20:7c:14:a2:62:f8igc0: netmap queues/slots: TX 4/1024, RX 4/1024pcib3: <ACPI PCI-PCI bridge> at device 28.6 on pci0pci3: <ACPI PCI bus> on pcib3igc1: <Intel(R) Ethernet Controller I225-V> mem 0xb1d00000-0xb1dfffff,0xb1e00000-0xb1e03fff irq 18 at device 0.0 on pci3igc1: Using 1024 TX descriptors and 1024 RX descriptorsigc1: Using 4 RX queues 4 TX queuesigc1: Using MSI-X interrupts with 5 vectorsigc1: Ethernet address: 20:7c:14:a2:62:f9igc1: netmap queues/slots: TX 4/1024, RX 4/1024pcib4: <ACPI PCI-PCI bridge> at device 28.7 on pci0pci4: <ACPI PCI bus> on pcib4igc2: <Intel(R) Ethernet Controller I225-V> mem 0xb1b00000-0xb1bfffff,0xb1c00000-0xb1c03fff irq 19 at device 0.0 on pci4igc2: Using 1024 TX descriptors and 1024 RX descriptorsigc2: Using 4 RX queues 4 TX queuesigc2: Using MSI-X interrupts with 5 vectorsigc2: Ethernet address: 20:7c:14:a2:62:faigc2: netmap queues/slots: TX 4/1024, RX 4/1024pcib5: <ACPI PCI-PCI bridge> irq 16 at device 29.0 on pci0pci5: <ACPI PCI bus> on pcib5igc3: <Intel(R) Ethernet Controller I225-V> mem 0xb1900000-0xb19fffff,0xb1a00000-0xb1a03fff irq 16 at device 0.0 on pci5igc3: Using 1024 TX descriptors and 1024 RX descriptorsigc3: Using 4 RX queues 4 TX queuesigc3: Using MSI-X interrupts with 5 vectorsigc3: Ethernet address: 20:7c:14:a2:62:fbigc3: netmap queues/slots: TX 4/1024, RX 4/1024pcib6: <ACPI PCI-PCI bridge> irq 16 at device 29.4 on pci0pci6: <ACPI PCI bus> on pcib6igc4: <Intel(R) Ethernet Controller I225-V> mem 0xb1700000-0xb17fffff,0xb1800000-0xb1803fff irq 16 at device 0.0 on pci6igc4: Using 1024 TX descriptors and 1024 RX descriptorsigc4: Using 4 RX queues 4 TX queuesigc4: Using MSI-X interrupts with 5 vectorsigc4: Ethernet address: 20:7c:14:a2:62:fcigc4: netmap queues/slots: TX 4/1024, RX 4/1024pcib7: <ACPI PCI-PCI bridge> irq 17 at device 29.5 on pci0pci7: <ACPI PCI bus> on pcib7igc5: <Intel(R) Ethernet Controller I225-V> mem 0xb1500000-0xb15fffff,0xb1600000-0xb1603fff irq 17 at device 0.0 on pci7igc5: Using 1024 TX descriptors and 1024 RX descriptorsigc5: Using 4 RX queues 4 TX queuesigc5: Using MSI-X interrupts with 5 vectorsigc5: Ethernet address: 20:7c:14:a2:62:fdigc5: netmap queues/slots: TX 4/1024, RX 4/1024pcib8: <ACPI PCI-PCI bridge> irq 18 at device 29.6 on pci0pci8: <ACPI PCI bus> on pcib8igc6: <Intel(R) Ethernet Controller I225-V> mem 0xb1300000-0xb13fffff,0xb1400000-0xb1403fff irq 18 at device 0.0 on pci8igc6: Using 1024 TX descriptors and 1024 RX descriptorsigc6: Using 4 RX queues 4 TX queuesigc6: Using MSI-X interrupts with 5 vectorsigc6: Ethernet address: 20:7c:14:a2:62:feigc6: netmap queues/slots: TX 4/1024, RX 4/1024pcib9: <ACPI PCI-PCI bridge> irq 19 at device 29.7 on pci0pci9: <ACPI PCI bus> on pcib9igc7: <Intel(R) Ethernet Controller I225-V> mem 0xb1100000-0xb11fffff,0xb1200000-0xb1203fff irq 19 at device 0.0 on pci9igc7: Using 1024 TX descriptors and 1024 RX descriptorsigc7: Using 4 RX queues 4 TX queuesigc7: Using MSI-X interrupts with 5 vectorsigc7: Ethernet address: 20:7c:14:a2:62:ffigc7: netmap queues/slots: TX 4/1024, RX 4/1024isab0: <PCI-ISA bridge> at device 31.0 on pci0isa0: <ISA bus> on isab0hdac0: <Intel Comet Lake-LP HDA Controller> mem 0xb2110000-0xb2113fff,0xb1000000-0xb10fffff irq 16 at device 31.3 on pci0pci0: <serial bus> at device 31.5 (no driver attached)acpi_button0: <Sleep Button> on acpi0acpi_button1: <Power Button> on acpi0acpi_tz0: <Thermal Zone> on acpi0atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0atkbd0: <AT Keyboard> irq 1 on atkbdc0kbd0 at atkbd0atkbd0: [GIANT-LOCKED]uart0: <16950 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0uart1: <16950 or compatible> port 0x2f8-0x2ff irq 3 on acpi0uart2: <16950 or compatible> port 0x3e8-0x3ef irq 7 on acpi0uart3: <16950 or compatible> port 0x2e8-0x2ef irq 7 on acpi0uart4: <16950 or compatible> port 0x2f0-0x2f7 irq 7 on acpi0uart5: <16950 or compatible> port 0x2e0-0x2e7 irq 7 on acpi0acpi_syscontainer0: <System Container> on acpi0orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0atrtc0: <AT realtime clock> at port 0x70 irq 8 on isa0atrtc0: Warning: Couldn't map I/O.atrtc0: registered as a time-of-day clock, resolution 1.000000sEvent timer "RTC" frequency 32768 Hz quality 0hwpstate_intel0: <Intel Speed Shift> on cpu0hwpstate_intel1: <Intel Speed Shift> on cpu1hwpstate_intel2: <Intel Speed Shift> on cpu2hwpstate_intel3: <Intel Speed Shift> on cpu3hwpstate_intel4: <Intel Speed Shift> on cpu4hwpstate_intel5: <Intel Speed Shift> on cpu5hwpstate_intel6: <Intel Speed Shift> on cpu6hwpstate_intel7: <Intel Speed Shift> on cpu7hwpstate_intel8: <Intel Speed Shift> on cpu8hwpstate_intel9: <Intel Speed Shift> on cpu9hwpstate_intel10: <Intel Speed Shift> on cpu10hwpstate_intel11: <Intel Speed Shift> on cpu11Timecounter "TSC" frequency 1607999430 Hz quality 1000Timecounters tick every 1.000 msecZFS filesystem version: 5ZFS storage pool version: features support (5000)hdacc0: <Intel Kaby Lake HDA CODEC> at cad 2 on hdac0hdaa0: <Intel Kaby Lake Audio Function Group> at nid 1 on hdacc0pcm0: <Intel Kaby Lake (HDMI/DP 8ch)> at nid 3 on hdaa0Trying to mount root from zfs:zroot/ROOT/Current []...ugen0.1: <Intel XHCI root HUB> at usbus0uhub0 on usbus0uhub0: <Intel XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0ada0 at ahcich1 bus 0 scbus1 target 0 lun 0ada0: <KINGSTON SKC600MS512G S4800105> ACS-3 ATA SATA 3.x deviceada0: Serial Number 50026B77846F91A7ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes)ada0: Command Queueing enabledada0: 488386MB (1000215216 512 byte sectors)uhub0: 18 ports with 18 removable, self poweredigc0: link state changed to UPigc7: link state changed to UPpchtherm0: <CometLake-LP Thermal Subsystem> mem 0xb211e000-0xb211efff irq 16 at device 18.0 on pci0ig4iic0: <Intel Comet Lake-LP I2C Controller-4> at device 25.0 on pci0ig4iic0: Using MSIiicbus0: <Philips I2C bus (ACPI-hinted)> on ig4iic0ichsmb0: <Intel Comet Lake SMBus controller> port 0xefa0-0xefbf mem 0xb2118000-0xb21180ff irq 16 at device 31.4 on pci0smbus0: <System Management Bus> on ichsmb0acpi_wmi0: <ACPI-WMI mapping> on acpi0acpi_wmi0: cannot find EC deviceacpi_wmi0: Embedded MOF foundACPI: \134_SB.WFDE.WQCC: 1 arguments were passed to a non-method ACPI object (Buffer) (20201113/nsarguments-361)acpi_wmi1: <ACPI-WMI mapping> on acpi0acpi_wmi1: cannot find EC deviceacpi_wmi1: Embedded MOF foundACPI: \134_SB.WFTE.WQCC: 1 arguments were passed to a non-method ACPI object (Buffer) (20201113/nsarguments-361)lo0: link state changed to UPcoretemp0: <CPU On-Die Thermal Sensors> on cpu0pflog0: permanently promiscuous mode enabledigc0: link state changed to DOWNvlan0: changing name to 'igc0_vlan38'vlan1: changing name to 'igc0_vlan51'tun1: changing name to 'ovpnc1'tun2: changing name to 'ovpnc2'igc7: link state changed to DOWNigc7: link state changed to UPovpnc1: link state changed to UPovpnc2: link state changed to UPWARNING: attempt to domain_add(netgraph) after domainfinalize()ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to accept, logging disabledload_dn_sched dn_sched FIFO loadedload_dn_sched dn_sched QFQ loadedload_dn_sched dn_sched RR loadedload_dn_sched dn_sched WF2Q+ loadedload_dn_sched dn_sched PRIO loadedload_dn_sched dn_sched FQ_CODEL loadedload_dn_sched dn_sched FQ_PIE loadedload_dn_aqm dn_aqm CODEL loadedload_dn_aqm dn_aqm PIE loadedovpnc1: link state changed to DOWNovpnc2: link state changed to DOWNovpnc1: link state changed to UPovpnc2: link state changed to UPigc0: link state changed to UPigc0_vlan51: link state changed to UPigc0_vlan38: link state changed to UP
persist-keypersist-tunauth-nocachefast-ioexplicit-exit-notify 5push-peer-inforemote-cert-tls serverserver-poll-timeout 10key-direction 1sndbuf 393216rcvbuf 393216push "sndbuf 393216"push "rcvbuf 393216"reneg-sec 3600replay-window 64 [15]
cho hold | socat - unix-connect:/var/etc/openvpn/client1.sock ─╯>INFO:OpenVPN Management Interface Version 3 -- type 'help' for more infoSUCCESS: hold=0
╭─XX│ X /usr/local/opnsense/service/conf/actions.d X X ✔ │ with XXXX@opnsense │ at 11:05:28 AM XX─╮╰─ cat actions_airvpnone.conf ─╯[restart]command:/usr/local/sbin/pluginctl -s openvpn restart 1parameters:type:scriptmessage:reloading AirVPNOnedescription: Reload AirVPNOne (opt2)
So this time before I rebooted OPNsense, I manually stopped both VPN clients ...not sure why they keep cycling up and down in the above dmesg printout.
ovpnc1: link state changed to UPovpnc2: link state changed to UPWARNING: attempt to domain_add(netgraph) after domainfinalize()ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to accept, logging disabledload_dn_sched dn_sched FIFO loadedload_dn_sched dn_sched QFQ loadedload_dn_sched dn_sched RR loadedload_dn_sched dn_sched WF2Q+ loadedload_dn_sched dn_sched PRIO loadedload_dn_sched dn_sched FQ_CODEL loadedload_dn_sched dn_sched FQ_PIE loadedload_dn_aqm dn_aqm CODEL loadedload_dn_aqm dn_aqm PIE loadedovpnc1: link state changed to DOWNovpnc2: link state changed to DOWNovpnc1: link state changed to UPovpnc2: link state changed to UP
Do you know of any slick way to divide the OpenVPN log?