

{"id":838,"date":"2025-06-09T21:13:02","date_gmt":"2025-06-09T19:13:02","guid":{"rendered":"https:\/\/blog.koeckeis-fresel.net\/?p=838"},"modified":"2025-06-11T07:28:34","modified_gmt":"2025-06-11T05:28:34","slug":"how-to-install-safeline-waf-within-minutes","status":"publish","type":"post","link":"https:\/\/blog.koeckeis-fresel.net\/?p=838","title":{"rendered":"How to install SafeLine WAF within minutes"},"content":{"rendered":"\n<p>If you want to install the SafeLine WAF, here are some scripts to speed up your deployment.<\/p>\n\n\n\n<p>You must run the script as root as we need to install some packages from the official docker repository.<\/p>\n\n\n\n<p>I know &#8211; the official SafeLine installer already will install the needed packages. But this script helps in setting up a base server and can be used within a cloud-init script to deploy the basic packages during deployment.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Gets Installed<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Docker CE (latest stable from official repository)<\/li>\n\n\n\n<li>Docker Compose Plugin (integrated with Docker CLI)<\/li>\n\n\n\n<li>Python 3 + pip (if not present)<\/li>\n\n\n\n<li>Network tools (netstat, etc.)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Direct Installation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">One-liner installation &#8211; downloads and runs the script<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsSL https:\/\/raw.githubusercontent.com\/Michal-Koeckeis-Fresel\/server-deployment\/refs\/heads\/main\/linux\/waf\/safeline-prep.sh | bash<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Download and Inspect First (Security Best Practice)<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Download the script<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsSL https:\/\/raw.githubusercontent.com\/Michal-Koeckeis-Fresel\/server-deployment\/refs\/heads\/main\/linux\/waf\/safeline-prep.sh -o safeline-prep.sh<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Inspect the script (always recommended)<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>less safeline-prep.sh<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Make executable and run<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +x safeline-prep.sh\n.\/safeline-prep.sh<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Using wget (Alternative)<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Download with wget<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/raw.githubusercontent.com\/Michal-Koeckeis-Fresel\/server-deployment\/refs\/heads\/main\/linux\/waf\/safeline-prep.sh<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Make executable and run<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +x safeline-prep.sh\n.\/safeline-prep.sh<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Now run the SafeLine installer<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>bash -c \"$(curl -fsSLk https:\/\/waf.chaitin.com\/release\/latest\/manager.sh)\" -- --en<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to install the SafeLine WAF, here are some scripts to speed up your deployment. You must run the script as root as we need to install some packages from the official docker repository. I know &#8211; the official SafeLine installer already will install the needed packages. But this script helps in setting [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"How to install SafeLine WAF within minutes","jetpack_seo_html_title":"How to install SafeLine WAF within minutes","jetpack_seo_noindex":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8,16,19,2,27,3,10],"tags":[39],"class_list":["post-838","post","type-post","status-publish","format-standard","hentry","category-debian","category-deployment","category-deployment-linux","category-http","category-linux","category-tls","category-waf","tag-waf"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":847,"url":"https:\/\/blog.koeckeis-fresel.net\/?p=847","url_meta":{"origin":838,"position":0},"title":"Install SafeLine WAF on Hetzner VPS even faster with cloud-init script on Debian 12","author":"Michal","date":"2025-06-10","format":false,"excerpt":"As you know my servers are hosted at hetzner.de - use this Link to get a 20\u20ac start credit for your first servers. Now we will install a new virtual server with preparations for SafeLine WAF on Hetzner server. Preparations Select Debian 12 as your system! Follow the steps in\u2026","rel":"","context":"In &quot;debian&quot;","block_context":{"text":"debian","link":"https:\/\/blog.koeckeis-fresel.net\/?cat=8"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":860,"url":"https:\/\/blog.koeckeis-fresel.net\/?p=860","url_meta":{"origin":838,"position":1},"title":"Deploy BunkerWeb within minutes (docker on debian 12)","author":"Michal","date":"2025-06-20","format":false,"excerpt":"As you know my servers are hosted at hetzner.de - use this Link to get a 20\u20ac start credit for your first servers. Now we will install a new virtual server with preparations for BunkerWeb WAF on Hetzner server. Preparations Select Debian 12 as your system! Use the FQDN as\u2026","rel":"","context":"In &quot;debian&quot;","block_context":{"text":"debian","link":"https:\/\/blog.koeckeis-fresel.net\/?cat=8"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":792,"url":"https:\/\/blog.koeckeis-fresel.net\/?p=792","url_meta":{"origin":838,"position":2},"title":"What is a Web Application Firewall (WAF)","author":"Michal","date":"2025-06-09","format":false,"excerpt":"What is a WAF A Web Application Firewall (WAF) is a security tool that monitors, filters, and blocks HTTP\/HTTPS traffic between web applications and the internet. It acts as a protective barrier specifically designed to defend web applications from various cyber attacks. When should I use a WAF - is\u2026","rel":"","context":"In &quot;http&quot;","block_context":{"text":"http","link":"https:\/\/blog.koeckeis-fresel.net\/?cat=2"},"img":{"alt_text":"Traffic flow from client to protected server","src":"https:\/\/i0.wp.com\/blog.koeckeis-fresel.net\/wp-content\/uploads\/WAF-traffic-scaled.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/blog.koeckeis-fresel.net\/wp-content\/uploads\/WAF-traffic-scaled.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/blog.koeckeis-fresel.net\/wp-content\/uploads\/WAF-traffic-scaled.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/blog.koeckeis-fresel.net\/wp-content\/uploads\/WAF-traffic-scaled.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/blog.koeckeis-fresel.net\/wp-content\/uploads\/WAF-traffic-scaled.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/blog.koeckeis-fresel.net\/wp-content\/uploads\/WAF-traffic-scaled.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":719,"url":"https:\/\/blog.koeckeis-fresel.net\/?p=719","url_meta":{"origin":838,"position":3},"title":"How to install a virtual private server hosted by hetzner.de (get 20\u20ac credit for your first server)","author":"Michal","date":"2025-06-08","format":false,"excerpt":"this is an installation instruction to set up your virtual private server at hetzner.de","rel":"","context":"In &quot;deployment&quot;","block_context":{"text":"deployment","link":"https:\/\/blog.koeckeis-fresel.net\/?cat=16"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=\/wp\/v2\/posts\/838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=838"}],"version-history":[{"count":8,"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=\/wp\/v2\/posts\/838\/revisions"}],"predecessor-version":[{"id":846,"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=\/wp\/v2\/posts\/838\/revisions\/846"}],"wp:attachment":[{"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.koeckeis-fresel.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}