{"id":311,"date":"2011-05-04T14:35:02","date_gmt":"2011-05-04T19:35:02","guid":{"rendered":"http:\/\/www.rajatswarup.com\/blog\/?p=311"},"modified":"2011-05-04T14:35:02","modified_gmt":"2011-05-04T19:35:02","slug":"vpnc-connection-status","status":"publish","type":"post","link":"https:\/\/www.rajatswarup.com\/blog\/2011\/05\/04\/vpnc-connection-status\/","title":{"rendered":"VPNC Connection Status"},"content":{"rendered":"<p>I was using the vpnc the other day on my Backtrack 4 R2 system to log in to VPN.  I noticed that there was nothing that would give me the status of whether or not the tunnel was up.  So I wrote a small one-liner to help me:<br \/>\n<code><br \/>\nwhile [ `ps aux |grep vpnc|grep -v grep|awk '{print $2}'` ] ; do printf \"Connected\\r\"; done<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was using the vpnc the other day on my Backtrack 4 R2 system to log in to VPN. I noticed that there was nothing that would give me the status of whether or not the tunnel was up. So I wrote a small one-liner to help me: while [ `ps aux |grep vpnc|grep -v [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[230],"tags":[208,231,438,232],"class_list":["post-311","post","type-post","status-publish","format-standard","hentry","category-howto","tag-bash","tag-cisco","tag-cvpn","tag-vpn"],"_links":{"self":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/comments?post=311"}],"version-history":[{"count":1,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/311\/revisions"}],"predecessor-version":[{"id":312,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/311\/revisions\/312"}],"wp:attachment":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/media?parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/categories?post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/tags?post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}