{"id":1339,"date":"2017-02-20T11:59:03","date_gmt":"2017-02-20T10:59:03","guid":{"rendered":"http:\/\/clark.tipistrani.it\/?p=1339"},"modified":"2017-02-20T11:59:03","modified_gmt":"2017-02-20T10:59:03","slug":"startfw","status":"publish","type":"post","link":"http:\/\/clark.tipistrani.it\/?p=1339","title":{"rendered":"startfw"},"content":{"rendered":"<p>#!\/bin\/bash -x<br \/>\n### BEGIN INIT INFO<br \/>\n# Provides: ale338.sh<br \/>\n# Required-Start: $remote_fs $syslog<br \/>\n# Required-Stop: $remote_fs $syslog<br \/>\n# Default-Start: 2 3 4 5<br \/>\n# Default-Stop: 0 1 6<br \/>\n# Short-Description: Firewall initscript<br \/>\n# Description: Packet filtering iptables firewall<br \/>\n# placed in \/usr\/local\/bin.<br \/>\n### END INIT INFO<br \/>\n### Mario V. Guenzi giugno 2000<br \/>\n### Last modified february 2017<br \/>\nexport PATH=\/bin:\/sbin:\/usr\/bin:\/usr\/sbin:\/usr\/local\/bin:\/usr\/local\/sbin<br \/>\n######################<br \/>\n# start firewall<br \/>\n######################<\/p>\n<p>case &#8220;$1&#8221; in<br \/>\nstart)<br \/>\n\/usr\/local\/bin\/ale338.sh start<br \/>\n\/usr\/local\/bin\/torblock.sh<br \/>\necho iptables is now running<br \/>\n;;<br \/>\nstop)<br \/>\n\/usr\/local\/bin\/ale338.sh stop<\/p>\n<p>echo iptables is now stopped<br \/>\n;;<br \/>\n*)<br \/>\nesac<\/p>\n<p>exit 0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#!\/bin\/bash -x ### BEGIN INIT INFO # Provides: ale338.sh # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Firewall initscript # Description: Packet filtering iptables firewall # placed in \/usr\/local\/bin. ### END INIT INFO ### Mario V. Guenzi giugno 2000 ### Last modified [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,14,9,6],"tags":[104,107],"class_list":["post-1339","post","type-post","status-publish","format-standard","hentry","category-linux","category-networking","category-script","category-work","tag-bash-script","tag-init-script"],"_links":{"self":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1339"}],"version-history":[{"count":2,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1339\/revisions"}],"predecessor-version":[{"id":1341,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1339\/revisions\/1341"}],"wp:attachment":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1339"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}