{"id":1276,"date":"2013-01-16T13:36:26","date_gmt":"2013-01-16T12:36:26","guid":{"rendered":"http:\/\/www.switchbl8.nl\/blog\/?p=1276"},"modified":"2013-01-16T13:37:48","modified_gmt":"2013-01-16T12:37:48","slug":"making-iptables-rules-survive-a-reboot","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2013\/01\/making-iptables-rules-survive-a-reboot\/","title":{"rendered":"Making iptables rules survive a reboot"},"content":{"rendered":"<p>Ubuntu 12.04 has the default firewall ufw enabled, but I rather use iptables. And everytime I reboot the system, I run a script to enable the firewall rules again. But I just found out I don&#8217;t need to, there&#8217;s a tool for that. Of course.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\nsudo apt-get install iptables-persistent\r\n\r\n<\/pre>\n<p>That asks you to save the current IPv4 and IPv6 rules and creates a service that is started at boot time so it reads the created files.<\/p>\n<p>Voila.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 12.04 has the default firewall ufw enabled, but I rather use iptables. And everytime I reboot the system, I run a script to enable the firewall rules again. But I just found out I don&#8217;t need to, there&#8217;s a tool for that. Of course. sudo apt-get install iptables-persistent That asks you to save the <a href='https:\/\/www.switchbl8.nl\/blog\/2013\/01\/making-iptables-rules-survive-a-reboot\/' class='excerpt-more'>[&#8230;]<\/a><\/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":[131,76,77],"class_list":["post-1276","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-internet","tag-security","tag-server","category-1-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=1276"}],"version-history":[{"count":2,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1276\/revisions"}],"predecessor-version":[{"id":1278,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1276\/revisions\/1278"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=1276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=1276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=1276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}