{"id":654,"date":"2009-09-03T16:51:41","date_gmt":"2009-09-03T23:51:41","guid":{"rendered":"http:\/\/xiehang.com\/blog\/?p=654"},"modified":"2009-09-03T16:52:35","modified_gmt":"2009-09-03T23:52:35","slug":"ufw-on-debian","status":"publish","type":"post","link":"https:\/\/xiehang.com\/blog\/2009\/09\/03\/ufw-on-debian\/","title":{"rendered":"ufw on Debian"},"content":{"rendered":"

Debian does not come with a good (I mean, easy to use :D) firewall, and to me ufw on Ubuntu is pretty cool so searched around, found this link:<\/p>\n

http:\/\/blog.ropetin.com\/?p=94<\/p>\n

and copy some words here in case someday that URL becomes inaccessible:<\/p>\n

# sudo apt-get install python
\n# wget http:\/\/people.ubuntu.com\/~jamie\/ufw\/ufw-0.25.tar.gz
\n# tar -xzvf ufw-0.25.tar.gz
\n# cd ufw-0.25
\n# sudo python .\/setup.py install<\/code><\/p>\n

Once installed it needs to be configured, which really depends on your requirements.\u00a0 A basic setup that allows SSH access, while blocking most other access can be configured by;<\/p>\n

# sudo ufw logging on
\n# sudo ufw default deny
\n# sudo ufw allow proto tcp from any to any port 22
\n# sudo ufw enable<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"

Debian does not come with a good (I mean, easy to use :D) firewall, and to me ufw on Ubuntu is pretty cool so searched around, found this link: http:\/\/blog.ropetin.com\/?p=94 and copy some words here in case someday that URL becomes inaccessible: # sudo apt-get install python # wget http:\/\/people.ubuntu.com\/~jamie\/ufw\/ufw-0.25.tar.gz # tar -xzvf ufw-0.25.tar.gz # […]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[127,13],"_links":{"self":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/654"}],"collection":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/comments?post=654"}],"version-history":[{"count":2,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/654\/revisions"}],"predecessor-version":[{"id":656,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/654\/revisions\/656"}],"wp:attachment":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/media?parent=654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/categories?post=654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/tags?post=654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}