{"id":3262,"date":"2014-05-14T14:43:29","date_gmt":"2014-05-14T19:43:29","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=3262"},"modified":"2023-04-05T06:17:05","modified_gmt":"2023-04-05T11:17:05","slug":"openvpn-setup-script-for-debian-and-ubuntu","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/","title":{"rendered":"OpenVPN setup script for Debian and Ubuntu"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/02\/openvpn.png\"><img decoding=\"async\" class=\" wp-image-3294 alignleft\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/02\/openvpn.png\" alt=\"openvpn\" width=\"140\" height=\"140\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/02\/openvpn.png 256w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/02\/openvpn-150x150.png 150w\" sizes=\"(max-width: 140px) 100vw, 140px\" \/><\/a>OpenVPN is a free and open-source software application that can be used to securely link two or more private networks using an encrypted tunnel over the Internet.\u00a0 OpenVPN is bound to the OpenSSL library and derives much of its crypto capabilities from it.<\/p>\n<p>Today we will share a script you can use to install and configure OpenVPN on an <a title=\"Ubuntu VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu VPS.<\/a> The script is pretty much self-explanatory.<br \/>\n<!--more--><\/p>\n<p><strong>Code<\/strong><\/p>\n<pre class=\"brush: bash; gutter: false\">#!\/usr\/bin\/env bash\r\n#\r\n\r\n# Functions\r\nok() { \r\n    echo -e '\\e[32m'$1'\\e[m'; \r\n}\r\n\r\ndie() { \r\n    echo -e '\\e[1;31m'$1'\\e[m'; exit 1; \r\n}\r\n\r\n# Sanity check\r\nif [[ $(id -g) != \"0\" ]] ; then\r\n    die \"\u276f\u276f\u276f Script must be run as root.\"\r\nfi\r\n\r\nif [[  ! -e \/dev\/net\/tun ]] ; then \r\n    die \"\u276f\u276f\u276f TUN\/TAP device is not available.\"\r\nfi\r\n\r\ndpkg -l openvpn &gt; \/dev\/null 2&gt;&amp;1\r\nif [[ $? -eq 0 ]]; then\r\n    die \"\u276f\u276f\u276f OpenVPN is already installed.\"\r\nfi\r\n\r\n# Install openvpn\r\nok \"\u276f\u276f\u276f apt-get update\"\r\napt-get update -q &gt; \/dev\/null 2&gt;&amp;1\r\nok \"\u276f\u276f\u276f apt-get install openvpn curl openssl\"\r\napt-get install -qy openvpn curl &gt; \/dev\/null 2&gt;&amp;1\r\n\r\n# IP Address\r\nSERVER_IP=$(curl -s ipv4.icanhazip.com)\r\nif [[ -z \"${SERVER_IP}\" ]]; then\r\n    SERVER_IP=$(ip a | awk -F\"[ \/]+\" '\/global\/ &amp;&amp; !\/127.0\/ {print $3; exit}')\r\nfi\r\n\r\n# Generate CA Config\r\nok \"\u276f\u276f\u276f Generating CA Config\"\r\nopenssl dhparam -out \/etc\/openvpn\/dh.pem 2048 &gt; \/dev\/null 2&gt;&amp;1\r\nopenssl genrsa -out \/etc\/openvpn\/ca-key.pem 2048 &gt; \/dev\/null 2&gt;&amp;1\r\nchmod 600 \/etc\/openvpn\/ca-key.pem\r\nopenssl req -new -key \/etc\/openvpn\/ca-key.pem -out \/etc\/openvpn\/ca-csr.pem -subj \/CN=OpenVPN-CA\/ &gt; \/dev\/null 2&gt;&amp;1\r\nopenssl x509 -req -in \/etc\/openvpn\/ca-csr.pem -out \/etc\/openvpn\/ca.pem -signkey \/etc\/openvpn\/ca-key.pem -days 365 &gt; \/dev\/null 2&gt;&amp;1\r\necho 01 &gt; \/etc\/openvpn\/ca.srl\r\n\r\n# Generate Server Config\r\nok \"\u276f\u276f\u276f Generating Server Config\"\r\nopenssl genrsa -out \/etc\/openvpn\/server-key.pem 2048 &gt; \/dev\/null 2&gt;&amp;1\r\nchmod 600 \/etc\/openvpn\/server-key.pem\r\nopenssl req -new -key \/etc\/openvpn\/server-key.pem -out \/etc\/openvpn\/server-csr.pem -subj \/CN=OpenVPN\/ &gt; \/dev\/null 2&gt;&amp;1\r\nopenssl x509 -req -in \/etc\/openvpn\/server-csr.pem -out \/etc\/openvpn\/server-cert.pem -CA \/etc\/openvpn\/ca.pem -CAkey \/etc\/openvpn\/ca-key.pem -days 365 &gt; \/dev\/null 2&gt;&amp;1\r\n\r\ncat &gt; \/etc\/openvpn\/udp1194.conf &lt;&lt;EOF\r\nserver 10.8.0.0 255.255.255.0\r\nverb 3\r\nduplicate-cn\r\nkey server-key.pem\r\nca ca.pem\r\ncert server-cert.pem\r\ndh dh.pem\r\nkeepalive 10 120\r\npersist-key\r\npersist-tun\r\ncomp-lzo\r\npush \"redirect-gateway def1 bypass-dhcp\"\r\npush \"dhcp-option DNS 8.8.8.8\"\r\npush \"dhcp-option DNS 8.8.4.4\"\r\n\r\nuser nobody\r\ngroup nogroup\r\n\r\nproto udp\r\nport 1194\r\ndev tun1194\r\nstatus openvpn-status-1194.log\r\nEOF\r\n\r\n# Generate Client Config\r\nok \"\u276f\u276f\u276f Generating Client Config\"\r\nopenssl genrsa -out \/etc\/openvpn\/client-key.pem 2048 &gt; \/dev\/null 2&gt;&amp;1\r\nchmod 600 \/etc\/openvpn\/client-key.pem\r\nopenssl req -new -key \/etc\/openvpn\/client-key.pem -out \/etc\/openvpn\/client-csr.pem -subj \/CN=OpenVPN-Client\/ &gt; \/dev\/null 2&gt;&amp;1\r\nopenssl x509 -req -in \/etc\/openvpn\/client-csr.pem -out \/etc\/openvpn\/client-cert.pem -CA \/etc\/openvpn\/ca.pem -CAkey \/etc\/openvpn\/ca-key.pem -days 36525 &gt; \/dev\/null 2&gt;&amp;1\r\n\r\ncat &gt; \/etc\/openvpn\/client.ovpn &lt;&lt;EOF\r\nclient\r\nnobind\r\ndev tun\r\nredirect-gateway def1 bypass-dhcp\r\nremote $SERVER_IP 1194 udp\r\ncomp-lzo yes\r\n\r\n&lt;key&gt;\r\n$(cat \/etc\/openvpn\/client-key.pem)\r\n&lt;\/key&gt;\r\n&lt;cert&gt;\r\n$(cat \/etc\/openvpn\/client-cert.pem)\r\n&lt;\/cert&gt;\r\n&lt;ca&gt;\r\n$(cat \/etc\/openvpn\/ca.pem)\r\n&lt;\/ca&gt;\r\nEOF\r\n\r\n# Iptables\r\nif [[ ! -f \/proc\/user_beancounters ]]; then\r\n    N_INT=$(ip a |awk -v sip=\"$SERVER_IP\" '$0 ~ sip { print $7}')\r\n    iptables -t nat -A POSTROUTING -s 10.8.0.0\/24 -o $N_INT -j MASQUERADE\r\nelse\r\n    iptables -t nat -A POSTROUTING -s 10.8.0.0\/24 -j SNAT --to-source $SERVER_IP\r\nfi\r\n\r\niptables-save &gt; \/etc\/iptables.conf\r\n\r\ncat &gt; \/etc\/network\/if-up.d\/iptables &lt;&lt;EOF\r\n#!\/bin\/sh\r\niptables-restore &lt; \/etc\/iptables.conf\r\nEOF\r\n\r\nchmod +x \/etc\/network\/if-up.d\/iptables\r\n\r\n# Enable net.ipv4.ip_forward\r\nsed -i 's|#net.ipv4.ip_forward=1|net.ipv4.ip_forward=1|' \/etc\/sysctl.conf\r\necho 1 &gt; \/proc\/sys\/net\/ipv4\/ip_forward\r\n\r\n# Restart Service\r\nok \"\u276f\u276f\u276f service openvpn restart\"\r\nservice openvpn restart &gt; \/dev\/null 2&gt;&amp;1\r\nok \"\u276f\u276f\u276f Your client config is available at \/etc\/openvpn\/client.ovpn\"\r\nok \"\u276f\u276f\u276f All done!\"<\/pre>\n<p><strong>What does the script do?<\/strong><\/p>\n<p>The script will automatically install OpenVPN and all the necessary dependencies, configure, and add a new user.<\/p>\n<p><strong>How to use it ?<\/strong><\/p>\n<p>1. Download the script<br \/>\n<code><br \/>\nwget https:\/\/raw.github.com\/rosehosting\/OpenVPN_setup_script\/master\/install_openvpn.sh<\/code><\/p>\n<p>2. Make it executable<\/p>\n<p><code>chmod +x install_openvpn.sh<\/code><\/p>\n<p>3. Run<br \/>\n<code><br \/>\n.\/install_openvpn.sh<\/code><\/p>\n<p>Of course, if you are one of our <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS Hosting<\/a> customers, you don\u2019t have to do any of this, simply ask our admins, sit back and relax. Our admins will install OpenVPN for you immediately.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span>.<\/strong> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n<p>Here&#8217;s the latest update for <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-an-openvpn-server-on-debian-10\/\">How To Set Up an OpenVPN Server on Debian 10<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenVPN is a free and open-source software application that can be used to securely link two or more private networks &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"OpenVPN setup script for Debian and Ubuntu\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/#more-3262\" aria-label=\"Read more about OpenVPN setup script for Debian and Ubuntu\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":3294,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,5,1698],"tags":[48,404,59],"class_list":["post-3262","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-scripts","category-ubuntu","tag-debian","tag-openvpn","tag-ubuntu","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>OpenVPN setup script for Debian and Ubuntu | RoseHosting<\/title>\n<meta name=\"description\" content=\"OpenVPN setup script for Debian and Ubuntu | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OpenVPN setup script for Debian and Ubuntu\" \/>\n<meta property=\"og:description\" content=\"OpenVPN setup script for Debian and Ubuntu | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2014-05-14T19:43:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-05T11:17:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/02\/openvpn.png\" \/>\n\t<meta property=\"og:image:width\" content=\"256\" \/>\n\t<meta property=\"og:image:height\" content=\"256\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"OpenVPN setup script for Debian and Ubuntu\",\"datePublished\":\"2014-05-14T19:43:29+00:00\",\"dateModified\":\"2023-04-05T11:17:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/\"},\"wordCount\":189,\"commentCount\":14,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/02\\\/openvpn.png\",\"keywords\":[\"debian\",\"openvpn\",\"ubuntu\"],\"articleSection\":[\"Debian\",\"Scripts\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/\",\"name\":\"OpenVPN setup script for Debian and Ubuntu | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/02\\\/openvpn.png\",\"datePublished\":\"2014-05-14T19:43:29+00:00\",\"dateModified\":\"2023-04-05T11:17:05+00:00\",\"description\":\"OpenVPN setup script for Debian and Ubuntu | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/02\\\/openvpn.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/02\\\/openvpn.png\",\"width\":256,\"height\":256},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/openvpn-setup-script-for-debian-and-ubuntu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OpenVPN setup script for Debian and Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"OpenVPN setup script for Debian and Ubuntu | RoseHosting","description":"OpenVPN setup script for Debian and Ubuntu | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"OpenVPN setup script for Debian and Ubuntu","og_description":"OpenVPN setup script for Debian and Ubuntu | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2014-05-14T19:43:29+00:00","article_modified_time":"2023-04-05T11:17:05+00:00","og_image":[{"width":256,"height":256,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/02\/openvpn.png","type":"image\/png"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"OpenVPN setup script for Debian and Ubuntu","datePublished":"2014-05-14T19:43:29+00:00","dateModified":"2023-04-05T11:17:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/"},"wordCount":189,"commentCount":14,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/02\/openvpn.png","keywords":["debian","openvpn","ubuntu"],"articleSection":["Debian","Scripts","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/","url":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/","name":"OpenVPN setup script for Debian and Ubuntu | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/02\/openvpn.png","datePublished":"2014-05-14T19:43:29+00:00","dateModified":"2023-04-05T11:17:05+00:00","description":"OpenVPN setup script for Debian and Ubuntu | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/02\/openvpn.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/02\/openvpn.png","width":256,"height":256},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/openvpn-setup-script-for-debian-and-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"OpenVPN setup script for Debian and Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/3262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=3262"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/3262\/revisions"}],"predecessor-version":[{"id":45307,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/3262\/revisions\/45307"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/3294"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=3262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=3262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=3262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}