OPNsense Forum

English Forums => Virtual private networks => Topic started by: ragno on October 31, 2024, 07:08:28 PM

Title: Disable IPSEC Tunnel by Command Line
Post by: ragno on October 31, 2024, 07:08:28 PM
Hi everyone,

Is there a way to disable and enable a specific IPSEC Tunnel from the command line that has been created in "Connections" (not Legacy)?

The command below seemed to work, but it didn't actually disable the tunnel, it just stopped it briefly and then restarted it:

swanctl --terminate --ike 6dc1eb32-c3d2-4ea5-a9fc-20d03ece80bd

Thank you,