Monitoring Libreswan IPsec VPN tunnel

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Monitoring Libreswan IPsec VPN tunnel

Postby kaushalshriyan » Sun Feb 10, 2019 12:55 pm

Hi,

I am running Libreswan IPsec VPN tunnel and the details are as below

Code: Select all
ipsec --version
Linux Libreswan 3.27 (netkey) on 3.10.0-957.5.1.el7.centos.plus.x86_64
ipsec whack --trafficstatus
006 #4: "primary", type=ESP, add_time=1549763990, inBytes=5703, outBytes=2750, id='128.65.31.14'
006 #3: "secondary", type=ESP, add_time=1549763990, inBytes=656, outBytes=864, id='128.65.31.15'


Is there a way to check if the IPsec tunnel is working or not?

Also how do i monitor IP and port for network connectivity? For example

Code: Select all
#nc -v 192.168.1.10 5643
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 192.168.1.10:5643.


Best Regards,

Kaushal
kaushalshriyan
 
Posts: 88
Joined: Fri May 22, 2015 7:12 am

Re: Monitoring Libreswan IPsec VPN tunnel

Postby cdienger » Mon Feb 11, 2019 3:50 pm

Check out check_tcp to verify a IP and port are up - including IPs and ports only accessible via the VPN. There is also https://exchange.nagios.org/directory/P ... ec/details or https://exchange.nagios.org/directory/P ... c2/details.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 2811
Joined: Tue Feb 07, 2017 11:26 am

Re: Monitoring Libreswan IPsec VPN tunnel

Postby kaushalshriyan » Tue Feb 12, 2019 11:38 am

Thanks cdienger for the reply and much appreciated. I will let you know if i get into issues while setting it up.

Best Regards,

Kaushal
kaushalshriyan
 
Posts: 88
Joined: Fri May 22, 2015 7:12 am

Re: Monitoring Libreswan IPsec VPN tunnel

Postby cdienger » Tue Feb 12, 2019 1:28 pm

Sounds good. Keep us posted!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 2811
Joined: Tue Feb 07, 2017 11:26 am


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 14 guests