{"id":1506,"date":"2025-02-19T15:18:06","date_gmt":"2025-02-19T12:18:06","guid":{"rendered":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/"},"modified":"2025-03-10T02:47:18","modified_gmt":"2025-03-09T23:47:18","slug":"configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/","title":{"rendered":"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide"},"content":{"rendered":"<p><br \/>\n<\/p>\n<p>In today\u2019s connected world, the need for secure communication between remote offices and networks is paramount. A Site-to-Site Virtual Private Network (VPN) allows you to create a secure tunnel between two or more networks over the Internet. This blog post will guide you through the process of configuring a Site-to-Site VPN using OpenVPN on Linux servers.<\/p>\n<p><\/p>\n<h2>Prerequisites<\/h2>\n<p><\/p>\n<p>Before we begin, ensure you have the following:<\/p>\n<p><\/p>\n<ol><\/p>\n<li><strong>Two Linux servers<\/strong>: One will act as the VPN server and the other as the client. We\u2019ll assume both servers are running Ubuntu.<\/li>\n<p><\/p>\n<li><strong>Root access<\/strong>: You\u2019ll need administrative privileges to install packages and modify system configurations.<\/li>\n<p><\/p>\n<li><strong>Basic knowledge of Linux command line<\/strong>: Familiarity with terminal commands will help you through this guide.<\/li>\n<p>\n<\/ol>\n<p><\/p>\n<h2>Step 1: Install OpenVPN<\/h2>\n<p><\/p>\n<p>First, log in to both servers and install OpenVPN along with the required utilities.<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">sudo apt update<br \/>\nsudo apt install openvpn easy-rsa -y<\/code><\/pre>\n<p><\/p>\n<h2>Step 2: Configure the Certificate Authority (CA)<\/h2>\n<p><\/p>\n<p>After installation, you need to set up the Certificate Authority (CA) on the server that will act as your VPN server.<\/p>\n<p><\/p>\n<ol><\/p>\n<li>\n<p><strong>Create a directory for the Easy-RSA files<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">make-cadir ~\/openvpn-ca<br \/>\ncd ~\/openvpn-ca<\/code><\/pre>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p><strong>Edit the <code>vars<\/code> file<\/strong> to set up the variables for your CA. Look for lines containing <code>export KEY_COUNTRY<\/code>, <code>KEY_PROVINCE<\/code>, and other details, and adjust them according to your location:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">nano vars<\/code><\/pre>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p><strong>Generate the CA<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">source vars<br \/>\n.\/clean-all<br \/>\n.\/build-ca<\/code><\/pre>\n<p>\n<\/li>\n<p>\n<\/ol>\n<p><\/p>\n<h2>Step 3: Create Server and Client Certificates<\/h2>\n<p><\/p>\n<h3>Generate Server Certificate<\/h3>\n<p><\/p>\n<ol><\/p>\n<li>\n<p><strong>Generate the server certificate and private key<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">.\/build-key-server server<\/code><\/pre>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p><strong>Generate Diffie-Hellman parameters<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">.\/build-dh<\/code><\/pre>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p><strong>Generate HMAC key<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">openvpn --genkey --secret keys\/ta.key<\/code><\/pre>\n<p>\n<\/li>\n<p>\n<\/ol>\n<p><\/p>\n<h3>Generate Client Certificate<\/h3>\n<p><\/p>\n<p>On the server, generate a certificate for the client:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">.\/build-key client<\/code><\/pre>\n<p><\/p>\n<h2>Step 4: Configure OpenVPN on the Server<\/h2>\n<p><\/p>\n<ol><\/p>\n<li>\n<p><strong>Copy the example configuration file to the OpenVPN directory<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">sudo cp \/usr\/share\/doc\/openvpn\/examples\/sample-config-files\/server.conf.gz \/etc\/openvpn\/<br \/>\nsudo gzip -d \/etc\/openvpn\/server.conf.gz<\/code><\/pre>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p><strong>Edit the OpenVPN configuration file<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">sudo nano \/etc\/openvpn\/server.conf<\/code><\/pre>\n<p><\/p>\n<p>Modify the following lines (hold down <code>Ctrl + W<\/code> to search):<\/p>\n<p><\/p>\n<ul><\/p>\n<li>\n<p>Uncomment and set the <code>ca<\/code>, <code>cert<\/code>, <code>key<\/code>, and <code>dh<\/code> lines to point to the correct certificate paths:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">ca \/etc\/openvpn\/ca.crt<br \/>\ncert \/etc\/openvpn\/server.crt<br \/>\nkey \/etc\/openvpn\/server.key<br \/>\ndh \/etc\/openvpn\/dh2048.pem<\/code><\/pre>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p>Uncomment <code>user nobody<\/code> and <code>group nogroup<\/code> to run OpenVPN with non-privileged user privileges.<\/p>\n<p>\n<\/li>\n<p><\/p>\n<li>Set <code>push \"route &lt;your_client_network&gt; &lt;subnet_mask&gt;\"<\/code> to direct traffic to the client network.<\/li>\n<p>\n<\/ul>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p><strong>Start and enable the OpenVPN server<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">sudo systemctl start openvpn@server<br \/>\nsudo systemctl enable openvpn@server<\/code><\/pre>\n<p>\n<\/li>\n<p>\n<\/ol>\n<p><\/p>\n<h2>Step 5: Configure OpenVPN on the Client<\/h2>\n<p><\/p>\n<ol><\/p>\n<li>\n<p><strong>Create a Client Configuration File<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">sudo nano \/etc\/openvpn\/client.ovpn<\/code><\/pre>\n<p><\/p>\n<p>Paste the following configuration:<\/p>\n<p><\/p>\n<pre><code class=\"language-plaintext\">client<br \/>\ndev tun<br \/>\nproto udp<br \/>\nremote [SERVER_IP] 1194<br \/>\nresolv-retry infinite<br \/>\nnobind<br \/>\npersist-key<br \/>\npersist-tun<br \/>\nca ca.crt<br \/>\ncert client.crt<br \/>\nkey client.key<br \/>\nremote-cert-tls server<br \/>\ntls-auth ta.key 1<br \/>\ncipher AES-256-CBC<br \/>\nverb 3<\/code><\/pre>\n<p><\/p>\n<p>Replace <code>[SERVER_IP]<\/code> with the public IP address of your server.<\/p>\n<p>\n<\/li>\n<p><\/p>\n<li><strong>Copy the necessary certificates<\/strong>: Make sure the necessary <code>.crt<\/code> and <code>.key<\/code> files are transferred to the client from the server.<\/li>\n<p>\n<\/ol>\n<p><\/p>\n<h2>Step 6: Start the Client VPN<\/h2>\n<p><\/p>\n<ol><\/p>\n<li>\n<p><strong>Start the OpenVPN client<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">sudo openvpn --config \/etc\/openvpn\/client.ovpn<\/code><\/pre>\n<p>\n<\/li>\n<p>\n<\/ol>\n<p><\/p>\n<p>When successfully connected, you should see connection logs on both the server and client sides.<\/p>\n<p><\/p>\n<h2>Step 7: Verify the Connection<\/h2>\n<p><\/p>\n<p>To verify that the VPN is working:<\/p>\n<p><\/p>\n<ol><\/p>\n<li>\n<p>Check the IP address on the client to ensure it&#8217;s part of the VPN subnet:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">curl ifconfig.me<\/code><\/pre>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p>Ping the VPN server from the client:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">ping [SERVER_VPN_IP]<\/code><\/pre>\n<p>\n<\/li>\n<p>\n<\/ol>\n<p><\/p>\n<h2>Conclusion<\/h2>\n<p><\/p>\n<p>You have now successfully set up a Site-to-Site VPN using OpenVPN on Linux servers! This configuration allows secure communication between your networks, ensuring that your data remains private and secure.<\/p>\n<p><\/p>\n<h3>Resources<\/h3>\n<p><\/p>\n<ul><\/p>\n<li>OpenVPN Documentation<\/li>\n<p><\/p>\n<li><a href=\"https:\/\/github.com\/OpenVPN\/easy-rsa\">Easy-RSA Documentation<\/a><\/li>\n<p>\n<\/ul>\n<p><\/p>\n<p>This article aims to provide a comprehensive yet straightforward guide for setting up your Site-to-Site VPN on Linux. For further customization and advanced configurations, be sure to refer to the OpenVPN documentation. Happy tunneling!<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>In today\u2019s connected world, the need for secure communication between remote offices and networks is paramount. A Site-to-Site Virtual Private Network (VPN) allows you to create a secure tunnel between two or more networks over the Internet. This blog post will guide you through the process of configuring a Site-to-Site VPN using OpenVPN on Linux [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1507,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[22],"tags":[391,233,265,302,1016,279,450],"class_list":["post-1506","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-security","tag-configuring","tag-guide","tag-linux","tag-servers","tag-sitetosite","tag-stepbystep","tag-vpn","et-has-post-format-content","et_post_format-et-post-format-standard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.5 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide - WafaTech Blogs<\/title>\n<meta name=\"description\" content=\"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide %\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide\" \/>\n<meta property=\"og:description\" content=\"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide %\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"WafaTech Blogs\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-19T12:18:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-09T23:47:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/02\/Configuring-Site-to-Site-VPN-on-Linux-Servers-A-Step-by-Step-Guide.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"WafaTech SA\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wafatech_sa\" \/>\n<meta name=\"twitter:site\" content=\"@wafatech_sa\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"WafaTech SA\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/\"},\"author\":{\"name\":\"WafaTech SA\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/person\\\/1a5761fc0feb63ab59d295d7c2648f06\"},\"headline\":\"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide\",\"datePublished\":\"2025-02-19T12:18:06+00:00\",\"dateModified\":\"2025-03-09T23:47:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/\"},\"wordCount\":478,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/Configuring-Site-to-Site-VPN-on-Linux-Servers-A-Step-by-Step-Guide.png\",\"keywords\":[\"Configuring\",\"Guide\",\"Linux\",\"Servers\",\"SitetoSite\",\"StepbyStep\",\"VPN\"],\"articleSection\":[\"Linux Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/\",\"name\":\"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide - WafaTech Blogs\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/Configuring-Site-to-Site-VPN-on-Linux-Servers-A-Step-by-Step-Guide.png\",\"datePublished\":\"2025-02-19T12:18:06+00:00\",\"dateModified\":\"2025-03-09T23:47:18+00:00\",\"description\":\"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide %\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/Configuring-Site-to-Site-VPN-on-Linux-Servers-A-Step-by-Step-Guide.png\",\"contentUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/Configuring-Site-to-Site-VPN-on-Linux-Servers-A-Step-by-Step-Guide.png\",\"width\":1024,\"height\":1024,\"caption\":\"linux server site-to-site VPN configurations\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\",\"name\":\"WafaTech Blogs\",\"description\":\"Smart Technologies\",\"publisher\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\"},\"alternateName\":\"WafaTech\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\",\"name\":\"WafaTech Blogs\",\"alternateName\":\"WafaTech\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/logo_big.webp\",\"contentUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/logo_big.webp\",\"width\":2221,\"height\":482,\"caption\":\"WafaTech Blogs\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/people\\\/WafaTech\\\/61560546351289\\\/\",\"https:\\\/\\\/x.com\\\/wafatech_sa\",\"https:\\\/\\\/www.youtube.com\\\/@wafatech-sa\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wafatech\\\/\"],\"description\":\"WafaTech, a leading Saudi IT services provider, specializes in cloud solutions, connectivity, and ICT services. Offering secure cloud infrastructure, high-speed internet, and ICT solutions like hosting, backup, and disaster recovery, WafaTech operates a Tier 3 data center at KAUST with ISO certifications. Regulated by CST, the company is committed to innovation, security, and customer satisfaction, empowering businesses in the digital age.\",\"email\":\"sales@wafatech.sa\",\"legalName\":\"Al-Wafa Al-Dhakia For Information Technology LLC\",\"foundingDate\":\"2013-01-08\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/person\\\/1a5761fc0feb63ab59d295d7c2648f06\",\"name\":\"WafaTech SA\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g\",\"caption\":\"WafaTech SA\"},\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/author\\\/omer-yaseen\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide - WafaTech Blogs","description":"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide %","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:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/","og_locale":"en_US","og_type":"article","og_title":"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide","og_description":"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide %","og_url":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/","og_site_name":"WafaTech Blogs","article_publisher":"https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/","article_published_time":"2025-02-19T12:18:06+00:00","article_modified_time":"2025-03-09T23:47:18+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/02\/Configuring-Site-to-Site-VPN-on-Linux-Servers-A-Step-by-Step-Guide.png","type":"image\/png"}],"author":"WafaTech SA","twitter_card":"summary_large_image","twitter_creator":"@wafatech_sa","twitter_site":"@wafatech_sa","twitter_misc":{"Written by":"WafaTech SA","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/#article","isPartOf":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/"},"author":{"name":"WafaTech SA","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/person\/1a5761fc0feb63ab59d295d7c2648f06"},"headline":"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide","datePublished":"2025-02-19T12:18:06+00:00","dateModified":"2025-03-09T23:47:18+00:00","mainEntityOfPage":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/"},"wordCount":478,"commentCount":0,"publisher":{"@id":"https:\/\/wafatech.sa\/blog\/#organization"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/02\/Configuring-Site-to-Site-VPN-on-Linux-Servers-A-Step-by-Step-Guide.png","keywords":["Configuring","Guide","Linux","Servers","SitetoSite","StepbyStep","VPN"],"articleSection":["Linux Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/","url":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/","name":"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide - WafaTech Blogs","isPartOf":{"@id":"https:\/\/wafatech.sa\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/#primaryimage"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/02\/Configuring-Site-to-Site-VPN-on-Linux-Servers-A-Step-by-Step-Guide.png","datePublished":"2025-02-19T12:18:06+00:00","dateModified":"2025-03-09T23:47:18+00:00","description":"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide %","breadcrumb":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/#primaryimage","url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/02\/Configuring-Site-to-Site-VPN-on-Linux-Servers-A-Step-by-Step-Guide.png","contentUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/02\/Configuring-Site-to-Site-VPN-on-Linux-Servers-A-Step-by-Step-Guide.png","width":1024,"height":1024,"caption":"linux server site-to-site VPN configurations"},{"@type":"BreadcrumbList","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-site-to-site-vpn-on-linux-servers-a-step-by-step-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wafatech.sa\/blog\/"},{"@type":"ListItem","position":2,"name":"Configuring Site-to-Site VPN on Linux Servers: A Step-by-Step Guide"}]},{"@type":"WebSite","@id":"https:\/\/wafatech.sa\/blog\/#website","url":"https:\/\/wafatech.sa\/blog\/","name":"WafaTech Blogs","description":"Smart Technologies","publisher":{"@id":"https:\/\/wafatech.sa\/blog\/#organization"},"alternateName":"WafaTech","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wafatech.sa\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wafatech.sa\/blog\/#organization","name":"WafaTech Blogs","alternateName":"WafaTech","url":"https:\/\/wafatech.sa\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp","contentUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp","width":2221,"height":482,"caption":"WafaTech Blogs"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/","https:\/\/x.com\/wafatech_sa","https:\/\/www.youtube.com\/@wafatech-sa","https:\/\/www.linkedin.com\/company\/wafatech\/"],"description":"WafaTech, a leading Saudi IT services provider, specializes in cloud solutions, connectivity, and ICT services. Offering secure cloud infrastructure, high-speed internet, and ICT solutions like hosting, backup, and disaster recovery, WafaTech operates a Tier 3 data center at KAUST with ISO certifications. Regulated by CST, the company is committed to innovation, security, and customer satisfaction, empowering businesses in the digital age.","email":"sales@wafatech.sa","legalName":"Al-Wafa Al-Dhakia For Information Technology LLC","foundingDate":"2013-01-08","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/person\/1a5761fc0feb63ab59d295d7c2648f06","name":"WafaTech SA","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g","caption":"WafaTech SA"},"url":"https:\/\/wafatech.sa\/blog\/author\/omer-yaseen\/"}]}},"jetpack_featured_media_url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/02\/Configuring-Site-to-Site-VPN-on-Linux-Servers-A-Step-by-Step-Guide.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/1506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/comments?post=1506"}],"version-history":[{"count":1,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/1506\/revisions"}],"predecessor-version":[{"id":1751,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/1506\/revisions\/1751"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/media\/1507"}],"wp:attachment":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/media?parent=1506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/categories?post=1506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/tags?post=1506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}