{"id":17555,"date":"2025-04-19T00:03:17","date_gmt":"2025-04-18T16:03:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/17555.html"},"modified":"2025-04-19T00:03:17","modified_gmt":"2025-04-18T16:03:17","slug":"linux-%e6%9c%8d%e5%8a%a1%e5%99%a8-firewalld-%e9%85%8d%e7%bd%ae%e7%ab%af%e5%8f%a3%e8%bd%ac%e5%8f%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/17555.html","title":{"rendered":"Linux \u670d\u52a1\u5668 Firewalld \u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1"},"content":{"rendered":"<p>**\u4f7f\u7528\u4e86\u5fae\u4fe1\u622a\u56fe&#xff0c;\u6240\u4ee5\u56fe\u7247\u5e26\u4e86\u5fae\u4fe1\u516c\u4f17\u53f7\u6c34\u5370<\/p>\n<p>\u4f7f\u7528\u573a\u666f&#xff1a;<\/p>\n<p>1\u3001\u5728\u90e8\u5206\u751f\u4ea7\u73af\u5883\u4e2d&#xff0c;\u670d\u52a1\u9700\u8981\u4e34\u65f6\u4f7f\u7528&#xff0c;\u4f46\u662f\u4e0d\u60f3\u91cd\u65b0\u7533\u8bf7\u7aef\u53e3\u5f00\u653e&#xff0c;\u53ef\u4ee5\u5229\u7528\u73b0\u6709\u5df2\u7ecf\u5f00\u653e\u7684\u7aef\u53e3&#xff0c;\u8fdb\u884c\u6d41\u91cf\u8f6c\u53d1\u3002<\/p>\n<p>2\u3001\u5bf9\u5916\u670d\u52a1\u5668\u7684\u90e8\u5206\u4e1a\u52a1\u53ea\u5bf9\u5185\u7f51\u7f51\u6bb5\u5f00\u653e\u8bbf\u95ee&#xff0c;\u5916\u7f51\u7f51\u6bb5\u65e0\u6cd5\u8bbf\u95ee&#xff0c;\u9700\u8981Linux\u670d\u52a1\u5668\u6d41\u91cf\u8f6c\u53d1&#xff0c;\u8fdc\u7a0b\u767b\u5f55\u5230\u5185\u7f51windows\u7535\u8111\u3002\u518d\u4ecewindows\u7535\u8111\u8bbf\u95ee\u3002<\/p>\n<p>\u539f\u7406&#xff1a;\u8fd0\u7528\u5230firewalld\u7684 &#8211;add-forward-port \u547d\u4ee4<\/p>\n<p>\u62d3\u6251\u56fe\u5982\u4e0b&#xff1a;PC2\u65e0\u6cd5\u76f4\u63a5\u8bbf\u95eePC1<\/p>\n<p>PC2&#xff1a;Windows 10<\/p>\n<p>Server&#xff1a;CentOS 7<\/p>\n<p>PC1&#xff1a;Windows 7<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"387\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160314-680277c2259bd.png\" width=\"984\" \/><\/p>\n<p>\u5b9e\u9a8c\u6548\u679c&#xff1a;<\/p>\n<p>1\u3001PC2\u901a\u8fc7mstsc&#xff0c;\u8bbf\u95ee192.168.22.145:111\u3002\u5b9e\u73b0\u8bbf\u95eePC1\u7684\u8fdc\u7a0b\u684c\u9762<\/p>\n<p>2\u3001Server\u7684ssh\u7aef\u53e3\u4e3a22&#xff0c;PC2\u901a\u8fc7\u8bbf\u95eeServer\u76842222\u7aef\u53e3\u5b9e\u73b0ssh\u767b\u5f55<\/p>\n<p>1\u3001\u786e\u8ba4\u9632\u706b\u5899\u72b6\u6001\u6b63\u5e38<\/p>\n<p>systemctl enable firewalld\u00a0 \u00a0 \/\/\u5f00\u542f\u9632\u706b\u5899<\/p>\n<p>systemctl restart firewalld\u00a0 \u00a0 \u00a0\/\/\u91cd\u542f\u9632\u706b\u5899\u00a0<\/p>\n<p>systemctl status firewalld\u00a0 \u00a0 \u00a0\/\/\u67e5\u770b\u9632\u706b\u5899\u72b6\u6001 <\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"417\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160314-680277c24d6c5.png\" width=\"1080\" \/><\/p>\n<p>2\u3001\u5f00\u542f\u7aef\u53e3\u8f6c\u53d1\u548cIP\u4f2a\u88c5<\/p>\n<p>echo &#034;net.ipv4.ip_forward &#061; 1&#034; &gt;&gt; \/etc\/sysctl.conf<\/p>\n<p>sysctl -p<\/p>\n<p>firewall-cmd &#8211;add-masquerade\u00a0 &#8211;permanent<\/p>\n<p>firewall-cmd &#8211;reload <\/p>\n<p>\/etc\/sysctl.conf\u6587\u4ef6\u662f\u7528\u6765\u914d\u7f6eLinux\u7cfb\u7edf\u5185\u6838\u53c2\u6570\u7684\u6587\u4ef6\u3002\u901a\u8fc7\u8fd9\u4e2a\u6587\u4ef6&#xff0c;\u53ef\u4ee5\u4fee\u6539\u7cfb\u7edf\u7684\u7f51\u7edc\u53c2\u6570\u3001\u5185\u5b58\u7ba1\u7406\u3001\u6587\u4ef6\u7cfb\u7edf\u4ee5\u53ca\u5176\u4ed6\u4e00\u4e9b\u7cfb\u7edf\u53c2\u6570\u3002\u8fd9\u4e9b\u53c2\u6570\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\/etc\/sysctl.conf\u6587\u4ef6\u6765\u5b9e\u73b0\u7cfb\u7edf\u6027\u80fd\u7684\u8c03\u4f18\u548c\u4f18\u5316\u3002\u6bcf\u6b21\u4fee\u6539&#xff0c;\u90fd\u9700\u8981\u6267\u884csysctl -p\u547d\u4ee4\u4f7f\u914d\u7f6e\u751f\u6548\u3002<\/p>\n<p>3\u3001\u786e\u8ba4\u8f6c\u53d1\u7684\u7aef\u53e3\u5df2\u7ecf\u5f00\u542f<\/p>\n<p>firewall-cmd &#8211;list-ports <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"54\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160314-680277c28e880.png\" width=\"602\" \/><\/p>\n<p>4-1\u3001\u914d\u7f6eServer\u6d41\u91cf\u8f6c\u53d1\u5230PC2<\/p>\n<p>firewall-cmd &#8211;add-forward-port&#061;port&#061;111:proto&#061;tcp:toport&#061;3389:toaddr&#061;192.168.10.128 &#8211;permanent <\/p>\n<p>\/\/\u547d\u4ee4\u8be6\u89e3&#xff1a;firewalld-cmd \u00a0&#8211;add-forward-port&#061;port&#061;\u6e90\u7aef\u53e3\u53f7:proto&#061;\u534f\u8bae:toport&#061;\u76ee\u6807\u7aef\u53e3\u53f7:toaddr&#061;\u76ee\u6807IP\u5730\u5740\u00a0&#8211;permanent<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"61\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160314-680277c2a0f27.png\" width=\"1080\" \/><\/p>\n<p># firewall-cmd &#8211;reload\u00a0 \u00a0\/\/\u91cd\u542ffirewalld<\/p>\n<p># firewall-cmd &#8211;list-all   \/\/\u67e5\u770b\u6240\u6709\u8f6c\u53d1\u5217\u8868 <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"380\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160314-680277c2b89ad.png\" width=\"1080\" \/><\/p>\n<p>4-2 \u914d\u7f6eServer\u7aef\u53e3\u8f6c\u53d12222\u523022<\/p>\n<p>firewall-cmd &#8211;add-forward-port&#061;port&#061;2222:proto&#061;tcp:toport&#061;22 &#8211;permanent <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"89\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160314-680277c2ef449.png\" width=\"1080\" \/><\/p>\n<p>5-1\u3001\u6d4b\u8bd5\u767b\u5f55\u6548\u679c<\/p>\n<p>\u4ecePC2\u901a\u8fc7\u8fdc\u7a0b\u684c\u9762\u8bbf\u95eeserver\u768411\u7aef\u53e3&#xff0c;\u6d41\u91cf\u8f6c\u53d1\u5230PC1\u76843389\u767b\u5f55\u3002PC1\u7684\u4e8b\u4ef6\u67e5\u770b\u5668\u67e5\u770b\u767b\u5f55\u4e8b\u4ef6&#xff0c;\u663e\u793a\u4e3aServer\u8fdb\u884c\u7684\u8fdc\u7a0b\u767b\u5f55\u3002<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"682\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160315-680277c318872.png\" width=\"1080\" \/><\/p>\n<\/p>\n<p>5-2 \u6d4b\u8bd5\u767b\u5f55\u6548\u679c<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"646\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160315-680277c36ecde.png\" width=\"1006\" \/><\/p>\n<p>\u67e5\u770b\/etc\/ssh\/sshd_conf\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5b9e\u9645ssh\u7aef\u53e3\u4ecd\u4e3a22<\/p>\n<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\u56fe\u7247\" height=\"535\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160315-680277c3a49a7.png\" width=\"959\" \/><\/p>\n<p>\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u516c\u4f17\u53f7&#xff1a;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"430\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160315-680277c3d46f8.png\" width=\"430\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\/\u547d\u4ee4\u8be6\u89e3\uff1afirewalld-cmd  &#8211;add-forward-port=port=\u6e90\u7aef\u53e3\u53f7:proto=\u534f\u8bae:toport=\u76ee\u6807\u7aef\u53e3\u53f7:toaddr=\u76ee\u6807IP\u5730\u5740 &#8211;permanent\u30022\u3001\u5bf9\u5916\u670d\u52a1\u5668\u7684\u90e8\u5206\u4e1a\u52a1\u53ea\u5bf9\u5185\u7f51\u7f51\u6bb5\u5f00\u653e\u8bbf\u95ee\uff0c\u5916\u7f51\u7f51\u6bb5\u65e0\u6cd5\u8bbf\u95ee\uff0c\u9700\u8981Linux\u670d\u52a1\u5668\u6d41\u91cf\u8f6c\u53d1\uff0c\u8fdc\u7a0b\u767b\u5f55\u5230\u5185\u7f51windows\u7535\u8111\u3002PC1\u7684\u4e8b\u4ef6\u67e5\u770b\u5668\u67e5\u770b\u767b\u5f55\u4e8b\u4ef6\uff0c\u663e\u793a\u4e3aServer\u8fdb\u884c\u7684\u8fdc\u7a0b\u767b\u5f55\u30021\u3001\u5728\u90e8\u5206\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u670d\u52a1\u9700\u8981\u4e34\u65f6\u4f7f\u7528\uff0c\u4f46\u662f\u4e0d\u60f3\u91cd\u65b0\u7533\u8bf7\u7aef\u53e3\u5f00\u653e\uff0c\u53ef\u4ee5\u5229\u7528\u73b0\u6709\u5df2\u7ecf\u5f00\u653e\u7684\u7aef\u53e3\uff0c\u8fdb\u884c\u6d41\u91cf\u8f6c\u53d1\u3002_firewalld \u7aef\u53e3\u8f6c\u53d1<\/p>\n","protected":false},"author":2,"featured_media":17545,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,44],"topic":[],"class_list":["post-17555","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u670d\u52a1\u5668 Firewalld \u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/17555.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u670d\u52a1\u5668 Firewalld \u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\/\u547d\u4ee4\u8be6\u89e3\uff1afirewalld-cmd --add-forward-port=port=\u6e90\u7aef\u53e3\u53f7:proto=\u534f\u8bae:toport=\u76ee\u6807\u7aef\u53e3\u53f7:toaddr=\u76ee\u6807IP\u5730\u5740 --permanent\u30022\u3001\u5bf9\u5916\u670d\u52a1\u5668\u7684\u90e8\u5206\u4e1a\u52a1\u53ea\u5bf9\u5185\u7f51\u7f51\u6bb5\u5f00\u653e\u8bbf\u95ee\uff0c\u5916\u7f51\u7f51\u6bb5\u65e0\u6cd5\u8bbf\u95ee\uff0c\u9700\u8981Linux\u670d\u52a1\u5668\u6d41\u91cf\u8f6c\u53d1\uff0c\u8fdc\u7a0b\u767b\u5f55\u5230\u5185\u7f51windows\u7535\u8111\u3002PC1\u7684\u4e8b\u4ef6\u67e5\u770b\u5668\u67e5\u770b\u767b\u5f55\u4e8b\u4ef6\uff0c\u663e\u793a\u4e3aServer\u8fdb\u884c\u7684\u8fdc\u7a0b\u767b\u5f55\u30021\u3001\u5728\u90e8\u5206\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u670d\u52a1\u9700\u8981\u4e34\u65f6\u4f7f\u7528\uff0c\u4f46\u662f\u4e0d\u60f3\u91cd\u65b0\u7533\u8bf7\u7aef\u53e3\u5f00\u653e\uff0c\u53ef\u4ee5\u5229\u7528\u73b0\u6709\u5df2\u7ecf\u5f00\u653e\u7684\u7aef\u53e3\uff0c\u8fdb\u884c\u6d41\u91cf\u8f6c\u53d1\u3002_firewalld \u7aef\u53e3\u8f6c\u53d1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/17555.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T16:03:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160314-680277c2259bd.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/17555.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/17555.html\",\"name\":\"Linux \u670d\u52a1\u5668 Firewalld \u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T16:03:17+00:00\",\"dateModified\":\"2025-04-18T16:03:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/17555.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/17555.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/17555.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u670d\u52a1\u5668 Firewalld \u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux \u670d\u52a1\u5668 Firewalld \u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/17555.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux \u670d\u52a1\u5668 Firewalld \u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf8\u6b21\u3002\/\u547d\u4ee4\u8be6\u89e3\uff1afirewalld-cmd --add-forward-port=port=\u6e90\u7aef\u53e3\u53f7:proto=\u534f\u8bae:toport=\u76ee\u6807\u7aef\u53e3\u53f7:toaddr=\u76ee\u6807IP\u5730\u5740 --permanent\u30022\u3001\u5bf9\u5916\u670d\u52a1\u5668\u7684\u90e8\u5206\u4e1a\u52a1\u53ea\u5bf9\u5185\u7f51\u7f51\u6bb5\u5f00\u653e\u8bbf\u95ee\uff0c\u5916\u7f51\u7f51\u6bb5\u65e0\u6cd5\u8bbf\u95ee\uff0c\u9700\u8981Linux\u670d\u52a1\u5668\u6d41\u91cf\u8f6c\u53d1\uff0c\u8fdc\u7a0b\u767b\u5f55\u5230\u5185\u7f51windows\u7535\u8111\u3002PC1\u7684\u4e8b\u4ef6\u67e5\u770b\u5668\u67e5\u770b\u767b\u5f55\u4e8b\u4ef6\uff0c\u663e\u793a\u4e3aServer\u8fdb\u884c\u7684\u8fdc\u7a0b\u767b\u5f55\u30021\u3001\u5728\u90e8\u5206\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u670d\u52a1\u9700\u8981\u4e34\u65f6\u4f7f\u7528\uff0c\u4f46\u662f\u4e0d\u60f3\u91cd\u65b0\u7533\u8bf7\u7aef\u53e3\u5f00\u653e\uff0c\u53ef\u4ee5\u5229\u7528\u73b0\u6709\u5df2\u7ecf\u5f00\u653e\u7684\u7aef\u53e3\uff0c\u8fdb\u884c\u6d41\u91cf\u8f6c\u53d1\u3002_firewalld \u7aef\u53e3\u8f6c\u53d1","og_url":"https:\/\/www.wsisp.com\/helps\/17555.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T16:03:17+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418160314-680277c2259bd.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/17555.html","url":"https:\/\/www.wsisp.com\/helps\/17555.html","name":"Linux \u670d\u52a1\u5668 Firewalld \u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T16:03:17+00:00","dateModified":"2025-04-18T16:03:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/17555.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/17555.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/17555.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux \u670d\u52a1\u5668 Firewalld \u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/17555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=17555"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/17555\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/17545"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=17555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=17555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=17555"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=17555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}