{"id":130,"date":"2014-03-15T00:22:35","date_gmt":"2014-03-15T00:22:35","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=130"},"modified":"2014-03-15T00:22:35","modified_gmt":"2014-03-15T00:22:35","slug":"vpn","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/03\/15\/vpn\/","title":{"rendered":"Cisco VPN on CentOS 6"},"content":{"rendered":"<p>Install eplel repo<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# rpm -ivh http:\/\/mirror.vcu.edu\/pub\/gnu+linux\/epel\/6\/i386\/epel-release-6-8.noarch.rpm\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# yum -y install vpnc\n# chmod 700 \/etc\/vpnc\/vpnc-script\n# cp \/etc\/vpnc\/default.conf \/etc\/vpnc\/default.conf.orig\n\n<\/pre>\n<p>Save your .pnc file from Networking to \/etc\/vpnc\/ folder<\/p>\n<p>Install the VPN .pnc file as a default.conf file<\/p>\n<p>Get the pcf to vpnc configuration file converter<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# wget http:\/\/svn.unix-ag.uni-kl.de\/vpnc\/trunk\/pcf2vpnc\n\n<\/pre>\n<p>Make it executable<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# chmod +x pcf2vpnc\n\n<\/pre>\n<p>Move it to a place in our path<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# mv pcf2vpnc \/usr\/local\/bin\/\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# cd \/etc\n# pcf2vpnc \/path\/username.pcf default.conf\n# chown root:root default.conf\n# chmod 600 default.conf\n\n<\/pre>\n<p>Edit the config file to either use your username and password, or to manually enter<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# nano default.conf\n# Uncomment for auto login\n# Xauth username myusername\n# Xauth password userpass\n# Uncomment for manual login\nXauth interactive\n\n<\/pre>\n<p>Backup resolv.conf<\/p>\n<p>As a final configuration step, it is a good idea to make a backup of your resolv.conf file. The vpnc program will replace the resolv.conf upon connection and will restore it when you disconnect.<\/p>\n<p>Connect and Disconnect<\/p>\n<p>You must be logged in as Root for this to work<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# vpnc\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# vpnc-disconnect\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Install eplel repo # rpm -ivh http:\/\/mirror.vcu.edu\/pub\/gnu+linux\/epel\/6\/i386\/epel-release-6-8.noarch.rpm # yum -y install vpnc # chmod 700 \/etc\/vpnc\/vpnc-script # cp \/etc\/vpnc\/default.conf \/etc\/vpnc\/default.conf.orig Save your .pnc file from Networking to \/etc\/vpnc\/ folder Install the VPN .pnc file as a default.conf file Get the pcf to vpnc configuration file converter # wget http:\/\/svn.unix-ag.uni-kl.de\/vpnc\/trunk\/pcf2vpnc Make it executable # chmod +x &#8230; <a title=\"Cisco VPN on CentOS 6\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/03\/15\/vpn\/\" aria-label=\"Read more about Cisco VPN on CentOS 6\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,14,121],"tags":[],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-centos6","category-cisco","category-vpn"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}