Yeah, this should work.

Andreas

[email protected] wrote:
> Hello All , 
>               The following is the situation :               
> 
> 1] I am writing code to check whether VPN tunnels are working or not in
> my system 
> 
> 2] So I do "ipsec status" and it shows me some output . I am thinking of
> grepping for "ESTABLISHED" and "INSTALLED" and If I find these words I
> am concluding that VPN tunnels are working fine .
> 
> 3] If "ipsec status" doesn't show any output and the output length is
> "0" I am concluding that the tunnels are not working and VPN between the
> two machines is down.
> 
> Is this the correct approach ?
> 
> Thanks,
> Bhavesh Bhanushali

======================================================================
Andreas Steffen                         [email protected]
strongSwan - the Linux VPN Solution!                www.strongswan.org
Institute for Internet Technologies and Applications
University of Applied Sciences Rapperswil
CH-8640 Rapperswil (Switzerland)
===========================================================[ITA-HSR]==
_______________________________________________
Users mailing list
[email protected]
https://lists.strongswan.org/mailman/listinfo/users

Reply via email to