{"id":122,"date":"2009-06-11T10:25:17","date_gmt":"2009-06-11T03:25:17","guid":{"rendered":"http:\/\/www.icez.net\/blog\/?p=122"},"modified":"2009-06-11T16:49:16","modified_gmt":"2009-06-11T09:49:16","slug":"block-ip-%e0%b8%95%e0%b9%88%e0%b8%b2%e0%b8%87%e0%b8%9b%e0%b8%a3%e0%b8%b0%e0%b9%80%e0%b8%97%e0%b8%a8-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b9%83%e0%b8%ab%e0%b9%89-ftp-%e0%b9%80%e0%b8%82%e0%b9%89%e0%b8%b2","status":"publish","type":"post","link":"https:\/\/www.icez.net\/blog\/122\/block-ip-%e0%b8%95%e0%b9%88%e0%b8%b2%e0%b8%87%e0%b8%9b%e0%b8%a3%e0%b8%b0%e0%b9%80%e0%b8%97%e0%b8%a8-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b9%83%e0%b8%ab%e0%b9%89-ftp-%e0%b9%80%e0%b8%82%e0%b9%89%e0%b8%b2","title":{"rendered":"0063 | block IP \u0e15\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28 \u0e44\u0e21\u0e48\u0e43\u0e2b\u0e49 FTP \u0e40\u0e02\u0e49\u0e32\u0e21\u0e32\u0e44\u0e14\u0e49"},"content":{"rendered":"<p>\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e34\u0e49\u0e19\u0e04\u0e34\u0e14 \u0e01\u0e4a\u0e2d\u0e1b\u0e27\u0e32\u0e07\u0e01\u0e47\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e17\u0e31\u0e19\u0e17\u0e35\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e1b\u0e23\u0e38\u0e07 (\u0e22\u0e34\u0e48\u0e07\u0e01\u0e27\u0e48\u0e32\u0e21\u0e32\u0e21\u0e48\u0e32\u0e2d\u0e35\u0e01)<\/p>\n<pre lang=\"bash\">\r\niptables -D INPUT -p tcp --dport 21 -j FTPFILTER\r\niptables -N FTPFILTER\r\niptables -F FTPFILTER\r\niptables -A FTPFILTER -j REJECT\r\nfor i in `wget -qO - http:\/\/www.icez.net\/files\/thaiiplist`; do\r\niptables -I FTPFILTER -s $i -j ACCEPT\r\ndone\r\niptables -A INPUT -p tcp --dport 21 -j FTPFILTER\r\n<\/pre>\n<p>\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e41\u0e25\u0e49\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e25\u0e37\u0e21\u0e2a\u0e31\u0e48\u0e07 save iptables \u0e14\u0e49\u0e27\u0e22\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a<br \/>\nRedhat\/CentOS\/Fedora: service iptables save<br \/>\nDebian\/Ubuntu: iptables-save<\/p>\n<p>\u0e02\u0e2d\u0e1a\u0e04\u0e38\u0e13\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23 ip \u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22 \u0e08\u0e32\u0e01 <a href=\"http:\/\/software77.net\/geo-ip\/\" target=\"_blank\">http:\/\/software77.net\/geo-ip\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e34\u0e49\u0e19\u0e04\u0e34\u0e14 \u0e01\u0e4a\u0e2d\u0e1b\u0e27\u0e32\u0e07\u0e01\u0e47\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e17\u0e31\u0e19\u0e17\u0e35\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e1b\u0e23\u0e38\u0e07 (\u0e22\u0e34\u0e48\u0e07\u0e01\u0e27\u0e48\u0e32\u0e21\u0e32\u0e21\u0e48\u0e32\u0e2d\u0e35\u0e01) iptables -D INPUT -p tcp &#8211;dport 21 -j FTPFILTER iptables -N FTPFILTER iptables -F FTPFILTER iptables -A FTPFILTER -j REJECT for i in `wget -qO &#8211; http:\/\/www.icez.net\/files\/thaiiplist`; do iptables -I FTPFILTER -s $i -j ACCEPT done iptables -A INPUT -p tcp &#8211;dport 21 -j FTPFILTER \u0e40\u0e2a\u0e23\u0e47\u0e08\u0e41\u0e25\u0e49\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e25\u0e37\u0e21\u0e2a\u0e31\u0e48\u0e07 save iptables \u0e14\u0e49\u0e27\u0e22\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a Redhat\/CentOS\/Fedora: service iptables [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,50],"tags":[9,5909],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-network","category-linux","tag-internet","tag-ip"],"_links":{"self":[{"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/comments?post=122"}],"version-history":[{"count":0,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/posts\/122\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/categories?post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/tags?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}