[strongSwan] remote_ts to catch in 'updown' - how?
Tobias Brunner
tobias at strongswan.org
Mon Jun 29 09:37:23 CEST 2020
Hi,
> And the log's content:
>
> ----RUN
> vti2 - up-client
> ip tunnel add vti2 local _IPa remote _IPb mode vti key 12
> ip link set vti2 mtu 1400 up
> ip addr add 172.16.32.59 dev vti2
> ip route add 10.5.4.204/32 dev vti2
> sysctl -w net.ipv4.conf.vti2.disable_policy=1
>
> ----RUN
> vti2 - up-client
> (here I'd expect something but it's where the file ends)
It clearly runs twice. But since you can't add the VTI device twice
(same name), it fails the second time. You have `set -o errexit` so the
script is immediately terminated once `ip tunnel` returns a non-zero
exit status (the log message follows the command and is never printed).
Regards,
Tobias
More information about the Users
mailing list