{"id":16517,"date":"2023-08-13T22:25:07","date_gmt":"2023-08-13T14:25:07","guid":{"rendered":"https:\/\/ailog.tw\/lifelog\/?p=16517"},"modified":"2023-08-13T22:26:40","modified_gmt":"2023-08-13T14:26:40","slug":"pfsense-country-ip","status":"publish","type":"post","link":"https:\/\/ailog.tw\/lifelog\/2023\/08\/13\/pfsense-country-ip\/","title":{"rendered":"\u8b93Pfsense\u9632\u706b\u7246\u4e5f\u6709\u5224\u5225\u570b\u5bb6IP(GEO IP)\u7684\u80fd\u529b"},"content":{"rendered":"<p><span style=\"font-size: 18px;\">\u4f7f\u7528\u904e\u65b0\u4e16\u4ee3\u9632\u706b\u7246\u8a2d\u5099\u7684\u5925\u4f34\u5011\u4e00\u5b9a\u77e5\u9053\uff0c\u9019\u4e9b\u8a2d\u5099\u5747\u6709\u5224\u5225\u570b\u5bb6IP\u4f86\u6e90(GEO IP)\u7684\u529f\u80fd\uff0c\u4f46Pfsense\u9019\u4e00\u5957\u8edf\u9ad4\u5f0f\u9632\u706b\u7246\u4f3c\u4e4e\u9084\u6c92\u5167\u5efa(Opnsense\u5012\u662f\u5df2\u6709\u5167\u5efa\u9019\u6a23\u7684\u529f\u80fd)\uff0c\u56e0\u6b64\u5c0f\u7de8\u4eca\u5929\u8981\u4f86\u4ecb\u7d39\u5982\u4f55\u8b93pfsense\u64c1\u6709\u904e\u6ffe\u4f86\u6e90\u570b\u5225IP\u7684\u80fd\u529b\u3002<\/span><\/p>\n<p><span style=\"font-size: 18px;\"><!--more--><\/span><\/p>\n<p><span style=\"color: #0000ff; font-size: 18px;\"><strong>\u4e00\u3001\u60c5\u5883<\/strong><\/span><br \/>\n<span style=\"font-family: verdana, geneva; font-size: 18px;\">Pfsense\uff1a2.2.4-RELEASE<\/span><\/p>\n<p><span style=\"font-size: 18px;\"><strong><span style=\"color: #0000ff;\">\u4e8c\u3001IP\u60c5\u8cc7\u4f86\u6e90<\/span><\/strong><\/span><br \/>\n<span style=\"font-size: 18px;\">\u5b98\u7db2<\/span><br \/>\n<span style=\"font-family: verdana, geneva; font-size: 18px;\"><a href=\"https:\/\/github.com\/herrbischoff\">https:\/\/github.com\/herrbischoff<\/a><\/span><\/p>\n<p><span style=\"font-size: 18px;\">\u570b\u5bb6IP\u5c08\u6848\u9801\u9762\uff1a<\/span><br \/>\n<span style=\"font-family: verdana, geneva; font-size: 18px;\"><a href=\"https:\/\/github.com\/herrbischoff\/country-ip-blocks\/tree\/master\/ipv4\">https:\/\/github.com\/herrbischoff\/country-ip-blocks\/tree\/master\/ipv4<\/a><\/span><\/p>\n<p><span style=\"font-size: 18px;\">\u8209\u4f8b\u5e7e\u500b\u7bc4\u4f8b\u570b\u5225\u7684\u9023\u7d50\uff1a<\/span><br \/>\n<span style=\"font-family: verdana, geneva; font-size: 18px;\">[Japan]<\/span><br \/>\n<span style=\"font-family: verdana, geneva; font-size: 18px;\"><a href=\"https:\/\/raw.githubusercontent.com\/herrbischoff\/country-ip-blocks\/master\/ipv4\/jp.cidr\">https:\/\/raw.githubusercontent.com\/herrbischoff\/country-ip-blocks\/master\/ipv4\/jp.cidr<\/a><\/span><\/p>\n<p><span style=\"font-family: verdana, geneva; font-size: 18px;\">[Taiwan]<\/span><br \/>\n<span style=\"font-family: verdana, geneva; font-size: 18px;\"><a href=\"https:\/\/raw.githubusercontent.com\/herrbischoff\/country-ip-blocks\/master\/ipv4\/tw.cidr\">https:\/\/raw.githubusercontent.com\/herrbischoff\/country-ip-blocks\/master\/ipv4\/tw.cidr<\/a><\/span><\/p>\n<p><span style=\"font-size: 18px;\"><strong>\u4e09\u3001Pfsense\u8a2d\u5b9a\u570b\u5225IP\u6e05\u55ae<\/strong><\/span><br \/>\n<span style=\"font-size: 18px;\">01\u3001\u9ede\u9078\u300cFirewall\u300d\u2192\u300cAliases\u300d<\/span><br \/>\n<span style=\"font-size: 18px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16518 size-full\" src=\"https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip01.png\" alt=\"\" width=\"195\" height=\"231\" \/><\/span><\/p>\n<p><span style=\"font-size: 18px;\">02\u3001\u9ede\u9078\u300cURLs\u300d\u9801\u9762<\/span><br \/>\n<span style=\"font-size: 18px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16519 size-full\" src=\"https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip02.png\" alt=\"\" width=\"707\" height=\"260\" srcset=\"https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip02.png 707w, https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip02-300x110.png 300w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/span><\/p>\n<p><span style=\"font-size: 18px;\">03\u3001\u8f38\u5165\u8a2d\u5b9a\u503c<\/span><br \/>\n<span style=\"font-family: verdana, geneva; font-size: 18px;\"><span style=\"color: #ff0000;\">Name\uff1a<\/span><br \/>\n\u8f38\u5165\u53ef\u8b58\u5225\u7684\u540d\u7a31<br \/>\n<\/span><br \/>\n<span style=\"font-family: verdana, geneva; font-size: 18px;\"><span style=\"color: #ff0000;\">Description\uff1a<\/span><br \/>\n\u8f38\u5165\u8a3b\u89e3\u540d\u7a31<br \/>\n<\/span><br \/>\n<span style=\"font-family: verdana, geneva; font-size: 18px;\"><span style=\"color: #ff0000;\">Type\uff1a<\/span><br \/>\n\u9078\u64c7URL Table (IPs)<br \/>\n<\/span><br \/>\n<span style=\"font-size: 18px;\"><span style=\"font-family: verdana, geneva;\"><span style=\"color: #ff0000;\">\u5728\u300cURL Table (IPs)\u300d\u6b04\u4f4d\u8f38\u5165\u53c3\u8003\u7db2\u5740\u6240\u53d6\u5f97\u7684url\uff1a<\/span><br \/>\n<\/span>https:\/\/raw.githubusercontent.com\/herrbischoff\/country-ip-blocks\/master\/ipv4\/tw.cidr<\/span><\/p>\n<p><span style=\"color: #ff0000; font-size: 18px;\">Update Freq. (days)\uff1a<\/span><br \/>\n<span style=\"font-size: 18px;\">\u9078\u64c7\u8cc7\u6599\u4f86\u6e90\u7684\u66f4\u65b0\u983b\u7387(\u4ee5\u5929\u70ba\u55ae\u4f4d)<\/span><br \/>\n<span style=\"font-size: 18px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16520 size-full\" src=\"https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip03.png\" alt=\"\" width=\"592\" height=\"465\" srcset=\"https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip03.png 592w, https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip03-300x236.png 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/span><\/p>\n<p><span style=\"font-size: 18px;\">04\u3001\u8cc7\u6599\u78ba\u8a8d\u7121\u8aa4\u7684\u8a71\uff0c\u9ede\u9078\u300cApply Changes\u300d\u5957\u7528\u8a2d\u5b9a<\/span><br \/>\n<span style=\"font-size: 18px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16522 size-full\" src=\"https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip04.png\" alt=\"\" width=\"897\" height=\"252\" srcset=\"https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip04.png 897w, https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip04-300x84.png 300w, https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip04-768x216.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/span><\/p>\n<p><span style=\"font-size: 18px;\">05\u3001\u63a5\u8457\u5230\u300cFirewall\u300d\u2192\u300cRules\u300d\u6216\u300cNAT\u300d<\/span><br \/>\n<span style=\"font-size: 18px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16523\" src=\"https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip05.png\" alt=\"\" width=\"210\" height=\"288\" \/><\/span><\/p>\n<p><span style=\"font-size: 18px;\">06\u3001\u5728Source\u6b04\u4f4d\uff0c\u5c07\u300cType\u300d\u9078\u64c7\u300cSingle host or alias\u300d\uff0c\u5728\u300cAddress\u300d\u6b04\u4f4d\u8f38\u5165\u5148\u524dAliases\u6b65\u9a5f\u6240\u65b0\u589e\u7684\u7269\u4ef6\u540d\u7a31<\/span><br \/>\n<span style=\"font-size: 18px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16524 size-full\" src=\"https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip06.png\" alt=\"\" width=\"834\" height=\"660\" srcset=\"https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip06.png 834w, https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip06-300x237.png 300w, https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip06-768x608.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/span><\/p>\n<p><span style=\"font-size: 18px;\">07\u3001\u9632\u706b\u7246\u898f\u5247\u8a2d\u5b9a\u5b8c\u7562\u7684\u72c0\u614b<\/span><br \/>\n<span style=\"font-size: 18px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16526 size-full\" src=\"https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip07.png\" alt=\"\" width=\"1336\" height=\"261\" srcset=\"https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip07.png 1336w, https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip07-300x59.png 300w, https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip07-1024x200.png 1024w, https:\/\/ailog.tw\/lifelog\/wp-content\/uploads\/2023\/08\/pfsense-country-ip07-768x150.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528\u904e\u65b0\u4e16\u4ee3\u9632\u706b\u7246\u8a2d\u5099\u7684\u5925\u4f34\u5011\u4e00\u5b9a\u77e5\u9053\uff0c\u9019\u4e9b\u8a2d\u5099\u5747\u6709\u5224\u5225\u570b\u5bb6IP\u4f86\u6e90(GEO IP)\u7684\u529f\u80fd\uff0c\u4f46Pfsense\u9019 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ailog.tw\/lifelog\/2023\/08\/13\/pfsense-country-ip\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u8b93Pfsense\u9632\u706b\u7246\u4e5f\u6709\u5224\u5225\u570b\u5bb6IP(GEO IP)\u7684\u80fd\u529b\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,381,385],"tags":[5938,167,6251,6250,722],"class_list":["post-16517","post","type-post","status-publish","format-standard","hentry","category-itinfo","category-firewall","category-security","tag-country-ip","tag-firewall","tag-geo-ip","tag-ip","tag-722"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ailog.tw\/lifelog\/wp-json\/wp\/v2\/posts\/16517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ailog.tw\/lifelog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ailog.tw\/lifelog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ailog.tw\/lifelog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ailog.tw\/lifelog\/wp-json\/wp\/v2\/comments?post=16517"}],"version-history":[{"count":6,"href":"https:\/\/ailog.tw\/lifelog\/wp-json\/wp\/v2\/posts\/16517\/revisions"}],"predecessor-version":[{"id":16530,"href":"https:\/\/ailog.tw\/lifelog\/wp-json\/wp\/v2\/posts\/16517\/revisions\/16530"}],"wp:attachment":[{"href":"https:\/\/ailog.tw\/lifelog\/wp-json\/wp\/v2\/media?parent=16517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ailog.tw\/lifelog\/wp-json\/wp\/v2\/categories?post=16517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ailog.tw\/lifelog\/wp-json\/wp\/v2\/tags?post=16517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}