How to restart specific vpn tunnel via cli
-
Hello Experts -
we have multiple tunnels but we require to restart one particular tunnel Can we restart one particular ipsec tunnel via cli.(like GUI disconnect connect) we want to restart it via command line.
-
have anyone answer about above question? Please help please.
-
Hi,
Try so
ipsec down <connection name> (for example, con2000 )
and then
ipsec up <connection name>
https://wiki.strongswan.org/projects/strongswan/wiki/Ipseccommand -
@konstanti Thanks Sir , let me try it and get back you with an update.
-
@konstanti Hello ,
Thanks Konstani but we doubt connection name what exact ? i mean is you talking about description or anything else.
-
@ejaj
/var/etc/ipsec/ipsec.conf
https://wiki.strongswan.org/projects/strongswan/wiki/ConnSectionfor example,
or from cli
ipsec statusall
-
Sir you are truly genius ,it working for us Thank you so so much.