{"id":773,"date":"2016-09-01T16:47:08","date_gmt":"2016-09-01T16:47:08","guid":{"rendered":"http:\/\/www.tech-g.com\/?p=773"},"modified":"2022-06-17T06:30:07","modified_gmt":"2022-06-17T06:30:07","slug":"ufw-the-2-minute-guide","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2016\/09\/01\/ufw-the-2-minute-guide\/","title":{"rendered":"ufw &#8211; the 2 minute guide"},"content":{"rendered":"<p>apt-get install ufw<\/p>\n<p>ufw allow ssh<\/p>\n<p>but what do you know, i got an error<\/p>\n<pre>ERROR: initcaps\n[Errno 2] modprobe: ERROR: could not insert 'ip6_tables': Unknown symbol in module, or unknown parameter (see dmesg)\nip6tables v1.4.21: can't initialize ip6tables table `filter': Table does not exist (do you need to insmod?)\nPerhaps ip6tables or your kernel needs to be upgraded.\n<\/pre>\n<p>Well, that was not so nice, so i went into the file \/etc\/default\/ufw and disabled IPv6, and now it works<\/p>\n<p>So, before we enable it, i enabled SSH access otherwise i will be locked out<\/p>\n<p>ufw allow ssh<\/p>\n<p>now, enable it with<\/p>\n<p>ufw enable<\/p>\n<p>Now, enabled a few more ports for website or SIP for example<\/p>\n<p>I have a website under development, so i will want to open port 80 and 443 for my ip only ! I would like to delete those rules as my IP changes<\/p>\n\n\n<pre class=\"wp-block-preformatted\">ufw allow from 213.139.53.70\n# and When my ip changes\nufw status numbered\nufw delete 4<\/pre>\n\n\n\n<p>Then add the new IP like in the first line<\/p>\n","protected":false},"excerpt":{"rendered":"<p>apt-get install ufw ufw allow ssh but what do you know, i got an error ERROR: initcaps [Errno 2] modprobe: ERROR: could not insert &#8216;ip6_tables&#8217;: Unknown symbol in module, or unknown parameter (see dmesg) ip6tables v1.4.21: can&#8217;t initialize ip6tables table `filter&#8217;: Table does not exist (do you need to insmod?) Perhaps ip6tables or your kernel [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-773","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=773"}],"version-history":[{"count":3,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/773\/revisions"}],"predecessor-version":[{"id":1506,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/773\/revisions\/1506"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}