{"id":1628,"date":"2019-02-03T12:21:41","date_gmt":"2019-02-03T12:21:41","guid":{"rendered":"https:\/\/scunster.co.uk\/?p=1628"},"modified":"2019-02-03T12:21:41","modified_gmt":"2019-02-03T12:21:41","slug":"useful-commands-for-linux-ufw","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=1628","title":{"rendered":"Useful commands for linux UFW"},"content":{"rendered":"<p>Just a list of useful commands for UFW!<\/p>\n<p>Enable the firewall<\/p>\n<pre>ufw enable<\/pre>\n<p>Allow TCP on port 22 from specified IP address<\/p>\n<pre>ufw allow from 192.168.1.1 proto tcp to any port 22<\/pre>\n<p>Allow a range of tcp ports<\/p>\n<pre>ufw allow 40110:40210\/tcp<\/pre>\n<p>Check which ports are enabled with UFW<\/p>\n<pre>ufw status numbered<\/pre>\n<p>to remove a specific entry, after checking with the above status command<\/p>\n<pre>ufw delete 22<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Just a list of useful commands for UFW! Enable the firewall ufw enable Allow TCP on port 22 from specified IP address ufw allow from 192.168.1.1 proto tcp to any port 22 Allow a range of tcp ports ufw allow 40110:40210\/tcp Check which ports are enabled with UFW ufw status numbered to remove a specific [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,171],"tags":[154,478,79,479,118,288,234,480,477],"class_list":["post-1628","post","type-post","status-publish","format-standard","hentry","category-linux","category-security-linux","tag-add","tag-firewall","tag-linux-2","tag-ports","tag-remove","tag-specific","tag-ssh","tag-tcp","tag-ufw"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1628"}],"version-history":[{"count":1,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1628\/revisions"}],"predecessor-version":[{"id":1629,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1628\/revisions\/1629"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}