{"id":226,"date":"2023-08-20T14:25:17","date_gmt":"2023-08-08T03:30:22","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/"},"modified":"2024-03-19T23:15:20","modified_gmt":"2024-03-19T14:15:20","slug":"rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/","title":{"rendered":"Rocky Linux 9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>firewalld\u306f\u591a\u304f\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u5229\u7528\u53ef\u80fd\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u7ba1\u7406\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002\u3053\u308c\u306fLinux\u306e\u30ab\u30fc\u30cd\u30eb\u30d9\u30fc\u30b9\u306enftables\u3084iptables\u30d1\u30b1\u30c3\u30c8\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Rocky Linux 9\u30b5\u30fc\u30d0\u30fc\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u3068\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3042\u308bfirewall-cmd\u306e\u57fa\u672c\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h2>\u5fc5\u8981\u6761\u4ef6 (Hitsuy\u014d j\u014dken)<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5b8c\u4e86\u3059\u308b\u306b\u306f\u3001Rocky Linux 9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u304c\u5fc5\u8981\u3067\u3059\u3002\u975e\u30eb\u30fc\u30c8\u3067sudo\u6a29\u9650\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u305f\u3081\u306b\u306f\u3001Rocky Linux 9\u306e\u521d\u671f\u30b5\u30fc\u30d0\u30fc\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30ac\u30a4\u30c9\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d71 &#8211; firewalld\u306e\u4e2d\u6838\u30b3\u30f3\u30bb\u30d7\u30c8\u306e\u5fa9\u7fd2<\/h2>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u5b9f\u969b\u306b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u7ba1\u7406\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3067\u3069\u306e\u3088\u3046\u306b\u4f7f\u3046\u304b\u3092\u898b\u308b\u524d\u306b\u3001\u3053\u306e\u30c4\u30fc\u30eb\u304c\u5c0e\u5165\u3059\u308b\u3044\u304f\u3064\u304b\u306e\u6982\u5ff5\u306b\u6163\u308c\u3066\u304a\u304f\u3079\u304d\u3067\u3059\u3002<\/p>\n<h3>\u30be\u30fc\u30f3<\/h3>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u30c7\u30fc\u30e2\u30f3\u306f\u3001\u30be\u30fc\u30f3\u3068\u547c\u3070\u308c\u308b\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066\u3001\u30eb\u30fc\u30eb\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002\u30be\u30fc\u30f3\u306f\u4fe1\u983c\u30ec\u30d9\u30eb\u306b\u5fdc\u3058\u3066\u8a31\u53ef\u3059\u308b\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u898f\u5b9a\u3059\u308b\u30eb\u30fc\u30eb\u306e\u96c6\u5408\u3067\u3059\u3002\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u8a31\u53ef\u3059\u308b\u3079\u304d\u52d5\u4f5c\u3092\u898f\u5b9a\u3059\u308b\u305f\u3081\u306b\u30be\u30fc\u30f3\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u983b\u7e41\u306b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u79fb\u52d5\u3059\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\uff08\u4f8b\u3048\u3070\u3001\u30ce\u30fc\u30c8\u30d1\u30bd\u30b3\u30f3\uff09\u306b\u3068\u3063\u3066\u3001\u3053\u306e\u3088\u3046\u306a\u67d4\u8edf\u6027\u306f\u74b0\u5883\u306b\u5fdc\u3058\u3066\u30eb\u30fc\u30eb\u3092\u5909\u66f4\u3059\u308b\u826f\u3044\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u516c\u5171\u306eWi-Fi\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u64cd\u4f5c\u3059\u308b\u6642\u306b\u306f\u3001\u307b\u3068\u3093\u3069\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u7981\u6b62\u3059\u308b\u53b3\u3057\u3044\u30eb\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u4e00\u65b9\u3067\u3001\u81ea\u5b85\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u63a5\u7d9a\u3055\u308c\u305f\u5834\u5408\u306b\u306f\u3088\u308a\u7de9\u3084\u304b\u306a\u5236\u9650\u3092\u8a31\u53ef\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e00\u65b9\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u74b0\u5883\u304c\u3081\u3063\u305f\u306b\u5909\u308f\u3089\u306a\u3044\u305f\u3081\u3001\u3053\u308c\u3089\u306e\u30be\u30fc\u30f3\u306f\u305d\u308c\u307b\u3069\u91cd\u8981\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3069\u308c\u307b\u3069\u52d5\u7684\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u74b0\u5883\u3067\u3082\u3001firewalld\u306e\u4e8b\u524d\u5b9a\u7fa9\u30be\u30fc\u30f3\u306e\u5404\u6982\u5ff5\u306b\u3064\u3044\u3066\u77e5\u3063\u3066\u304a\u304f\u3053\u3068\u306f\u4f9d\u7136\u3068\u3057\u3066\u5f79\u7acb\u3061\u307e\u3059\u3002firewalld\u5185\u306e\u4e8b\u524d\u5b9a\u7fa9\u30be\u30fc\u30f3\u306f\u3001\u6700\u3082\u4fe1\u983c\u3055\u308c\u306a\u3044\u9806\u306b\u4e26\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>drop: The lowest level of trust. All incoming connections are dropped without reply and only outgoing connections are possible.<\/li>\n<li>block: Similar to the above, but instead of dropping connections, incoming requests are rejected with an icmp-host-prohibited or icmp6-adm-prohibited message.<\/li>\n<li>public: Represents public, untrusted networks. You don\u2019t trust other computers but may allow selected incoming connections on a case-by-case basis.<\/li>\n<li>external: External networks in the event that you are using the firewall as your gateway. It is configured for NAT masquerading so that your internal network remains private but reachable.<\/li>\n<li>internal: The other side of the external zone, used for the internal portion of a gateway. The computers are fairly trustworthy and some additional services are available.<\/li>\n<li>dmz: Used for computers located in a DMZ (isolated computers that will not have access to the rest of your network). Only certain incoming connections are allowed.<\/li>\n<li>work: Used for work machines. Trust most of the computers in the network. A few more services might be allowed.<\/li>\n<li>home: A home environment. It generally implies that you trust most of the other computers and that a few more services will be accepted.<\/li>\n<li>trusted: Trust all of the machines in the network. The most open of the available options and should be used sparingly.<\/li>\n<\/ul>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30eb\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30be\u30fc\u30f3\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5909\u66f4\u3057\u3066\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u9069\u5207\u306a\u30be\u30fc\u30f3\u306b\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30eb\u30fc\u30eb\u306e\u6c38\u7d9a\u6027<\/h3>\n<p>firewalld\u3067\u306f\u3001\u30eb\u30fc\u30eb\u306f\u73fe\u5728\u306e\u5b9f\u884c\u4e2d\u30eb\u30fc\u30eb\u30bb\u30c3\u30c8\u306b\u9069\u7528\u3055\u308c\u308b\u304b\u3001\u307e\u305f\u306f\u6c38\u7d9a\u7684\u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002\u30eb\u30fc\u30eb\u304c\u8ffd\u52a0\u307e\u305f\u306f\u5909\u66f4\u3055\u308c\u308b\u3068\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u5b9f\u884c\u4e2d\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u307f\u304c\u5909\u66f4\u3055\u308c\u307e\u3059\u3002\u6b21\u56de\u306e\u518d\u8d77\u52d5\u3084firewalld\u30b5\u30fc\u30d3\u30b9\u306e\u518d\u8aad\u307f\u8fbc\u307f\u5f8c\u306b\u306f\u3001\u6c38\u7d9a\u7684\u306a\u30eb\u30fc\u30eb\u306e\u307f\u304c\u6b8b\u308a\u307e\u3059\u3002<\/p>\n<p>\u307b\u3068\u3093\u3069\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u306f\u3001&#8211;permanent\u30d5\u30e9\u30b0\u3092\u4f7f\u7528\u3057\u3066\u6c38\u7d9a\u7684\u306a\u8a2d\u5b9a\u3078\u306e\u5909\u66f4\u3092\u793a\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u73fe\u5728\u5b9f\u884c\u4e2d\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u6c38\u7d9a\u7684\u306a\u8a2d\u5b9a\u306b\u4fdd\u5b58\u3059\u308b\u306b\u306f\u3001firewall-cmd &#8211;runtime-to-permanent\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30e9\u30f3\u30bf\u30a4\u30e0\u3068\u6c38\u4e45\u7684\u306a\u8a2d\u5b9a\u306e\u5206\u96e2\u306b\u3088\u308a\u3001\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u30eb\u30fc\u30eb\u3092\u5b89\u5168\u306b\u30c6\u30b9\u30c8\u3057\u3001\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306f\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u6700\u521d\u304b\u3089\u3084\u308a\u76f4\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d72- firewalld\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u6709\u52b9\u5316<\/h2>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3001Rocky Linux\u3092\u542b\u3080\u4e00\u90e8\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001firewalld\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3042\u306a\u305f\u81ea\u8eab\u3067firewalld\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002Rocky\u306ednf\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> dnf <span class=\"token function\">install<\/span> firewalld <span class=\"token parameter variable\">-y<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u3001systemctl\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d3\u30b9\u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001\u8d77\u52d5\u6642\u306b\u30b5\u30fc\u30d3\u30b9\u304c\u958b\u59cb\u3055\u308c\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6f5c\u5728\u7684\u306a\u554f\u984c\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u3001SSH\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u307e\u307e\u3067\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u30eb\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30c6\u30b9\u30c8\u3059\u308b\u6a5f\u4f1a\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u6700\u5584\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> firewalld<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl start firewalld<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30b5\u30fc\u30d3\u30b9\u304c\u5b9f\u884c\u4e2d\u3067\u5230\u9054\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;state<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>running<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306f\u3001\u65e5\u672c\u8a9e\u3067\u306e\u30d1\u30e9\u30d5\u30ec\u30fc\u30ba\u4f8b\u3067\u3059\uff1a\u300c\u3053\u308c\u306f\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3067\u8d77\u52d5\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3055\u3089\u306a\u308b\u5909\u66f4\u3092\u884c\u3046\u524d\u306b\u3001firewalld\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u74b0\u5883\u3068\u30eb\u30fc\u30eb\u306b\u6163\u308c\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3059\u3002\u300d<\/p>\n<h3>\u30c7\u30d5\u30a9\u30eb\u30c8\u3092\u63a2\u7d22\u3059\u308b<\/h3>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30be\u30fc\u30f3\u304c\u3069\u308c\u304b\u306f\u3001&#8221;firewall-cmd &#8211;get-default-zone&#8221; \u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">firewall-cmd &#8211;get-default-zone<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>public<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u30be\u30fc\u30f3\u304b\u3089\u306e\u9038\u8131\u30b3\u30de\u30f3\u30c9\u3092firewalld\u306b\u4e0e\u3048\u3066\u3044\u306a\u3044\u3057\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3082\u4ed6\u306e\u30be\u30fc\u30f3\u306b\u30d0\u30a4\u30f3\u30c9\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u305d\u306e\u30be\u30fc\u30f3\u306f\u30a2\u30af\u30c6\u30a3\u30d6\u30be\u30fc\u30f3\u3068\u3057\u3066\u552f\u4e00\u306e\u30be\u30fc\u30f3\u306b\u306a\u308a\u307e\u3059\uff08\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u5236\u5fa1\u3057\u3066\u3044\u308b\u30be\u30fc\u30f3\u3067\u3059\uff09\u3002firewall-cmd &#8211;get-active-zones\u3092\u5b9f\u884c\u3057\u3066\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">firewall-cmd &#8211;get-active-zones<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>public interfaces: eth0 eth1<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u3053\u3067\u306f\u3001\u304a\u5ba2\u69d8\u306e\u4f8b\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306b\u3088\u3063\u3066\u5236\u5fa1\u3055\u308c\u3066\u3044\u308b2\u3064\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff08eth0\u3068eth1\uff09\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u73fe\u5728\u3001\u4e21\u65b9\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u306f\u516c\u958b\u30be\u30fc\u30f3\u306b\u5b9a\u7fa9\u3055\u308c\u305f\u30eb\u30fc\u30eb\u306b\u57fa\u3065\u3044\u3066\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u306b\u95a2\u9023\u3059\u308b\u30eb\u30fc\u30eb\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u30be\u30fc\u30f3\u306e\u69cb\u6210\u306b\u57fa\u3065\u3044\u3066\u51fa\u529b\u3059\u308b\u306b\u306f\u3001firewall-cmd &#8211;list-all\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd &#8211;list-all<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>public (active) target: default icmp-block-inversion: no interfaces: eth0 eth1 sources: services: <mark>cockpit dhcpv6-client ssh<\/mark> ports: protocols: forward: yes masquerade: no forward-ports: source-ports: icmp-blocks: rich rules:<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u51fa\u529b\u304b\u3089\u3001\u3053\u306e\u30be\u30fc\u30f3\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3042\u308a\u3001\u30a2\u30af\u30c6\u30a3\u30d6\u3067\u3042\u308b\u3053\u3068\u3001\u305d\u3057\u3066eth0\u3068eth1\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u3053\u306e\u30be\u30fc\u30f3\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u30b5\u30fc\u30d3\u30b9\u306e\u884c\u304b\u3089\u306f\u3001\u3053\u306e\u30be\u30fc\u30f3\u304cDHCP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff08IP\u30a2\u30c9\u30ec\u30b9\u306e\u5272\u308a\u5f53\u3066\u306e\u305f\u3081\uff09\u3001SSH\uff08\u30ea\u30e2\u30fc\u30c8\u7ba1\u7406\u306e\u305f\u3081\uff09\u3001\u304a\u3088\u3073Cockpit\uff08Web\u30d9\u30fc\u30b9\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\uff09\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3057\u3066\u3044\u308b\u3053\u3068\u3082\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<h3>\u4ee3\u66ff\u7684\u306a\u30a8\u30ea\u30a2\u306e\u63a2\u7d22<\/h3>\n<p>\u4ed6\u306e\u30be\u30fc\u30f3\u306e\u60c5\u5831\u3082\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 (Hoka no z\u014dn no j\u014dh\u014d mo mitsukeru koto ga dekimasu.)<\/p>\n<p>\u5229\u7528\u53ef\u80fd\u306a\u30be\u30fc\u30f3\u306e\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001firewall-cmd &#8211;get-zones \u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">firewall-cmd &#8211;get-zones<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>block dmz drop external home internal nm-shared public trusted work<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3042\u306a\u305f\u304c&#8211;list-all\u30b3\u30de\u30f3\u30c9\u306b&#8211;zone=\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u542b\u3081\u308b\u3053\u3068\u3067\u3001\u30be\u30fc\u30f3\u306b\u95a2\u9023\u3059\u308b\u5177\u4f53\u7684\u306a\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span><mark>home<\/mark> &#8211;list-all<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>home target: default icmp-block-inversion: no interfaces: sources: services: cockpit dhcpv6-client mdns samba-client ssh ports: protocols: forward: yes masquerade: no forward-ports: source-ports: icmp-blocks: rich rules:<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&#8211;list-all-zones\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3059\u3079\u3066\u306e\u30be\u30fc\u30f3\u5b9a\u7fa9\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306b\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u30be\u30fc\u30f3\u3092\u5272\u308a\u5f53\u3066\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d73 \u2014 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30be\u30fc\u30f3\u3092\u9078\u629e\u3059\u308b<\/h2>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066\u3044\u306a\u3044\u9650\u308a\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u8d77\u52d5\u3059\u308b\u3068\u3001\u5404\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30be\u30fc\u30f3\u306b\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30be\u30fc\u30f3\u3092\u5909\u66f4\u3059\u308b<\/h3>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u4e2d\u306b&#8211;zone=\u30d1\u30e9\u30e1\u30fc\u30bf\u3092&#8211;change-interface=\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u30be\u30fc\u30f3\u9593\u3067\u79fb\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u5909\u66f4\u3059\u308b\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3068\u540c\u69d8\u306b\u3001sudo\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001eth0 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u30db\u30fc\u30e0\u30be\u30fc\u30f3\u306b\u79fb\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>home &#8211;change-interface<span class=\"token operator\">=<\/span>eth0<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>success<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u65b0\u3057\u3044\u30be\u30fc\u30f3\u306b\u79fb\u52d5\u3059\u308b\u969b\u306f\u3001\u3069\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u52d5\u4f5c\u3059\u308b\u304b\u304c\u5909\u66f4\u3055\u308c\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4eca\u56de\u306f\u30db\u30fc\u30e0\u30be\u30fc\u30f3\u306b\u79fb\u52d5\u3057\u3066\u3044\u308b\u305f\u3081\u3001SSH\u304c\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u63a5\u7d9a\u304c\u5207\u65ad\u3055\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u4ed6\u306e\u30be\u30fc\u30f3\u306b\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067SSH\u304c\u6709\u52b9\u3067\u306f\u306a\u3044\u5834\u5408\u3082\u3042\u308a\u3001\u3053\u308c\u3089\u306e\u30be\u30fc\u30f3\u306b\u5207\u308a\u66ff\u3048\u308b\u3068\u63a5\u7d9a\u304c\u5207\u308c\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u518d\u5ea6\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u30a2\u30af\u30c6\u30a3\u30d6\u30be\u30fc\u30f3\u3092\u518d\u5ea6\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u304c\u6210\u529f\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">firewall-cmd &#8211;get-active-zones<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>home interfaces: eth0 public interfaces: eth1<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<h3>\u30c7\u30d5\u30a9\u30eb\u30c8\u30be\u30fc\u30f3\u306e\u8abf\u6574<\/h3>\n<p>\u3082\u3057\u3059\u3079\u3066\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u4e88\u3081\u5b9a\u7fa9\u3055\u308c\u305f1\u3064\u306e\u30be\u30fc\u30f3\u3067\u9069\u5207\u306b\u6271\u3048\u308b\u306a\u3089\u3070\u3001\u305d\u306e\u30be\u30fc\u30f3\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u8a2d\u5b9a\u3059\u3079\u304d\u3067\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u30be\u30fc\u30f3\u306f\u3001&#8211;set-default-zone=\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3067\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30be\u30fc\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u5373\u5ea7\u306b\u5909\u66f4\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd &#8211;set-default-zone<span class=\"token operator\">=<\/span><mark>home<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>success<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<h2>\u30b9\u30c6\u30c3\u30d7\uff14\uff1a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30eb\u30fc\u30eb\u8a2d\u5b9a<\/h2>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u4f8b\u5916\u306e\u5b9a\u7fa9\u65b9\u6cd5\u306b\u3064\u3044\u3066\u9032\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u3042\u306a\u305f\u306e\u30be\u30fc\u30f3\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u8ffd\u52a0\u3059\u308b<\/h3>\n<p>\u6700\u3082\u76f4\u63a5\u7684\u306a\u65b9\u6cd5\u306f\u3001\u4f7f\u7528\u3057\u3066\u3044\u308b\u30be\u30fc\u30f3\u306b\u5fc5\u8981\u306a\u30b5\u30fc\u30d3\u30b9\u307e\u305f\u306f\u30dd\u30fc\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3059\u3002firewall-cmd\u306e&#8211;get-services\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u5229\u7528\u53ef\u80fd\u306a\u30b5\u30fc\u30d3\u30b9\u306e\u5b9a\u7fa9\u306e\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">firewall-cmd &#8211;get-services<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>RH-Satellite-6 RH-Satellite-6-capsule amanda-client amanda-k5-client amqp amqps apcupsd audit bacula bacula-client bb bgp bitcoin bitcoin-rpc bitcoin-testnet bitcoin-testnet-rpc bittorrent-lsd ceph ceph-mon cfengine cockpit collectd condor-collector ctdb dhcp dhcpv6 dhcpv6-client distcc dns dns-over-tls docker-registry docker-swarm dropbox-lansync elasticsearch etcd-client etcd-server finger foreman foreman-proxy freeipa-4 freeipa-ldap freeipa-ldaps freeipa-replication freeipa-trust ftp galera ganglia-client ganglia-master git grafana gre high-availability http https imap imaps ipp ipp-client ipsec irc ircs iscsi-target isns jenkins kadmin kdeconnect kerberos kibana klogin kpasswd kprop kshell kube-api kube-apiserver kube-control-plane kube-controller-manager kube-scheduler kubelet-worker ldap ldaps libvirt libvirt-tls lightning-network llmnr managesieve matrix mdns memcache minidlna mongodb mosh mountd mqtt mqtt-tls ms-wbt mssql murmur mysql nbd netbios-ns nfs nfs3 nmea-0183 nrpe ntp nut openvpn ovirt-imageio ovirt-storageconsole ovirt-vmconsole plex pmcd pmproxy pmwebapi pmwebapis pop3 pop3s postgresql privoxy prometheus proxy-dhcp ptp pulseaudio puppetmaster quassel radius rdp redis redis-sentinel rpc-bind rquotad rsh rsyncd rtsp salt-master samba samba-client samba-dc sane sip sips slp smtp smtp-submission smtps snmp snmptrap spideroak-lansync spotify-sync squid ssdp ssh steam-streaming svdrp svn syncthing syncthing-gui synergy syslog syslog-tls telnet tentacle tftp tile38 tinc tor-socks transmission-client upnp-client vdsm vnc-server wbem-http wbem-https wireguard wsman wsmans xdmcp xmpp-bosh xmpp-client xmpp-local xmpp-server zabbix-agent zabbix-server<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u5404\u30b5\u30fc\u30d3\u30b9\u306e\u8a73\u7d30\u306f\u3001\/usr\/lib\/firewalld\/services\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u95a2\u9023\u3059\u308b.xml\u30d5\u30a1\u30a4\u30eb\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001SSH\u30b5\u30fc\u30d3\u30b9\u306f\u6b21\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\uff1a\/usr\/lib\/firewalld\/services\/ssh.xml<br \/>\n<!--?xml version=\"1.0\" encoding=\"utf-8\"?--><\/p>\n<p>SSH<br \/>\nSecure Shell\uff08SSH\uff09\u306f\u3001\u30ea\u30e2\u30fc\u30c8\u30de\u30b7\u30f3\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3059\u3002\u5b89\u5168\u3067\u6697\u53f7\u5316\u3055\u308c\u305f\u901a\u4fe1\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u4fdd\u8b77\u3055\u308c\u305f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u7d4c\u7531\u3067\u30ea\u30e2\u30fc\u30c8\u3067\u30de\u30b7\u30f3\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u4e88\u5b9a\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6709\u7528\u306b\u3059\u308b\u306b\u306f\u3001openssh-server\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p><\/div>\n<\/div>\n<p>&#8211;add-service=\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001\u30be\u30fc\u30f3\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u64cd\u4f5c\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u30be\u30fc\u30f3\u3001\u307e\u305f\u306f&#8211;zone=\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u6307\u5b9a\u3055\u308c\u305f\u30be\u30fc\u30f3\u3092\u5bfe\u8c61\u3068\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u3053\u308c\u306f\u73fe\u5728\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u307f\u3092\u8abf\u6574\u3057\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u518d\u8d77\u52d5\u3084\u518d\u8d77\u52d5\u5f8c\u306b\u306f\u6c38\u7d9a\u3057\u307e\u305b\u3093\u3002&#8211;permanent\u30d5\u30e9\u30b0\u3092\u542b\u3081\u308b\u3053\u3068\u3067\u3001\u6c38\u7d9a\u7684\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a\u3092\u8abf\u6574\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u5f93\u6765\u306eHTTP\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u63d0\u4f9b\u3059\u308b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30d1\u30d6\u30ea\u30c3\u30af\u30be\u30fc\u30f3\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u4e00\u6642\u7684\u306b\u3053\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>public &#8211;add-service<span class=\"token operator\">=<\/span>http<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u30be\u30fc\u30f3\u3092\u5909\u66f4\u3059\u308b\u305f\u3081\u306b\u3001&#8211;zone=\u30d5\u30e9\u30b0\u3092\u7701\u7565\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u64cd\u4f5c\u306e\u6210\u529f\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001&#8211;list-all\u307e\u305f\u306f&#8211;list-services\u306e\u64cd\u4f5c\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>public &#8211;list-services<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>cockpit dhcpv6-client <mark>http<\/mark> ssh<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3059\u3079\u3066\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u30c6\u30b9\u30c8\u3057\u305f\u5f8c\u3001\u6c38\u7d9a\u7684\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u30eb\u30fc\u30eb\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u3001\u518d\u8d77\u52d5\u5f8c\u3082\u30b5\u30fc\u30d3\u30b9\u304c\u5229\u7528\u53ef\u80fd\u306a\u72b6\u614b\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u524d\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6c38\u7d9a\u7684\u306b\u3059\u308b\u306b\u306f\u3001&#8211;permanent\u30d5\u30e9\u30b0\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>public &#8211;add-service<span class=\"token operator\">=<\/span>http <mark><span class=\"token parameter variable\">&#8211;permanent<\/span><\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>success<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u5225\u306e\u9078\u629e\u80a2\u3068\u3057\u3066\u3001\u73fe\u5728\u5b9f\u884c\u4e2d\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u6c38\u7d9a\u7684\u306a\u69cb\u6210\u306b\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b &#8211;runtime-to-permanent \u30d5\u30e9\u30b0\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd &#8211;runtime-to-permanent<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u306f\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5b9f\u884c\u4e2d\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306b\u884c\u308f\u308c\u305f\u3059\u3079\u3066\u306e\u5909\u66f4\u306f\u6c38\u4e45\u306b\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3069\u306e\u65b9\u6cd5\u3092\u9078\u3093\u3067\u3082\u3001&#8211;list-services\u64cd\u4f5c\u306b&#8211;permanent\u30d5\u30e9\u30b0\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u6210\u529f\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002&#8211;permanent\u306e\u64cd\u4f5c\u306b\u306fsudo\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>public &#8211;list-services <mark><span class=\"token parameter variable\">&#8211;permanent<\/span><\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>cockpit dhcpv6-client <mark>http<\/mark> ssh<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3054\u5229\u7528\u306e\u30d1\u30d6\u30ea\u30c3\u30af\u30be\u30fc\u30f3\u306f\u3001\u30dd\u30fc\u30c880\u4e0a\u306eHTTP\u30a6\u30a7\u30d6\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002\u3082\u3057\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u304cSSL\/TLS\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001https\u30b5\u30fc\u30d3\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u3082\u3042\u308a\u307e\u3059\u3002\u73fe\u5728\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3068\u6c38\u7d9a\u7684\u306a\u30eb\u30fc\u30eb\u30bb\u30c3\u30c8\u306b\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>public &#8211;add-service<span class=\"token operator\">=<\/span>https<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>public &#8211;add-service<span class=\"token operator\">=<\/span>https <span class=\"token parameter variable\">&#8211;permanent<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>firewalld\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u542b\u307e\u308c\u308b\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\u4e00\u822c\u7684\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u591a\u304f\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u3089\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u8981\u4ef6\u306b\u30de\u30c3\u30c1\u3057\u306a\u3044\u5834\u5408\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u72b6\u6cc1\u3067\u306f\u3001\u3042\u306a\u305f\u306b\u306f2\u3064\u306e\u9078\u629e\u80a2\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u3042\u306a\u305f\u306e\u30be\u30fc\u30f3\u306b\u30dd\u30fc\u30c8\u3092\u958b\u653e\u3059\u308b<\/h3>\n<p>\u7279\u5b9a\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5bfe\u3059\u308b\u30b5\u30dd\u30fc\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u6700\u3082\u76f4\u63a5\u7684\u306a\u65b9\u6cd5\u306f\u3001\u9069\u5207\u306a\u30be\u30fc\u30f3\u3067\u4f7f\u7528\u3059\u308b\u30dd\u30fc\u30c8\u3092\u958b\u653e\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u30dd\u30fc\u30c8\u307e\u305f\u306f\u30dd\u30fc\u30c8\u7bc4\u56f2\u3068\u95a2\u9023\u3059\u308b\u30d7\u30ed\u30c8\u30b3\u30eb\uff08TCP\u307e\u305f\u306fUDP\uff09\u3092\u6307\u5b9a\u3057\u3066\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30dd\u30fc\u30c85000\u4e0a\u3067\u5b9f\u884c\u3055\u308c\u3001TCP\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001&#8211;add-port=\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u3066\u4e00\u6642\u7684\u306b\u3053\u308c\u3092\u30d1\u30d6\u30ea\u30c3\u30af\u30be\u30fc\u30f3\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d7\u30ed\u30c8\u30b3\u30eb\u306ftcp\u307e\u305f\u306fudp\u3068\u3057\u3066\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>public &#8211;add-port<span class=\"token operator\">=<\/span><span class=\"token number\">5000<\/span>\/tcp<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>success<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&#8211;list-ports\u64cd\u4f5c\u3092\u4f7f\u7528\u3057\u3066\u3001\u3053\u308c\u304c\u6210\u529f\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>public &#8211;list-ports<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>5000\/tcp<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u59cb\u3081\u306e\u30dd\u30fc\u30c8\u3068\u7d42\u308f\u308a\u306e\u30dd\u30fc\u30c8\u3092\u30c0\u30c3\u30b7\u30e5\u3067\u5206\u3051\u308b\u3053\u3068\u3067\u3001\u9023\u7d9a\u3057\u305f\u30dd\u30fc\u30c8\u306e\u7bc4\u56f2\u3082\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u3042\u306a\u305f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304cUDP\u30dd\u30fc\u30c8\u306e4990\u304b\u30894999\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u3053\u308c\u3089\u3092\u516c\u958b\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>public &#8211;add-port<span class=\"token operator\">=<\/span><span class=\"token number\">4990<\/span>-4999\/udp<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c6\u30b9\u30c8\u7d42\u4e86\u5f8c\u3001\u3053\u308c\u3089\u3092\u6052\u4e45\u7684\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002sudo firewall-cmd &#8211;runtime-to-permanent\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001&#8211;permanent\u30d5\u30e9\u30b0\u3068\u5171\u306b\u30b3\u30de\u30f3\u30c9\u3092\u518d\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>public <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;add-port<span class=\"token operator\">=<\/span><span class=\"token number\">5000<\/span>\/tcp<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>public <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;add-port<span class=\"token operator\">=<\/span><span class=\"token number\">4990<\/span>-4999\/udp<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>public <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;list-ports<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>success success 5000\/tcp 4990-4999\/udp<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<h3>\u30b5\u30fc\u30d3\u30b9\u306e\u5b9a\u7fa9<\/h3>\n<p>\u5404\u30be\u30fc\u30f3\u306e\u30dd\u30fc\u30c8\u3092\u958b\u653e\u3059\u308b\u3053\u3068\u306f\u3001\u7c21\u5358\u306a\u89e3\u6c7a\u7b56\u3067\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u306e\u30dd\u30fc\u30c8\u304c\u4f55\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b\u304b\u3092\u8ffd\u8de1\u3059\u308b\u306e\u306f\u96e3\u3057\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u30b5\u30fc\u30d3\u30b9\u3092\u5ec3\u6b62\u3057\u305f\u5834\u5408\u3001\u958b\u653e\u3055\u308c\u305f\u30dd\u30fc\u30c8\u304c\u307e\u3060\u5fc5\u8981\u304b\u3069\u3046\u304b\u3092\u30ab\u30bf\u30ed\u30b0\u5316\u3059\u308b\u306e\u306b\u82e6\u52b4\u3059\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3053\u306e\u3088\u3046\u306a\u72b6\u6cc1\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u3001\u65b0\u3057\u3044\u30b5\u30fc\u30d3\u30b9\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u95a2\u9023\u3059\u308b\u540d\u524d\u3068\u8aac\u660e\u3092\u6301\u3064\u30dd\u30fc\u30c8\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u3059\u3002\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u7ba1\u7406\u3059\u308b\u65b9\u304c\u3001\u901a\u5e38\u3001\u30dd\u30fc\u30c8\u3092\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3088\u308a\u3082\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u5bb9\u6613\u3067\u3059\u304c\u3001\u521d\u671f\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306f\u975e\u6a19\u6e96\u306e\u5b9a\u7fa9\u3092\u898b\u3064\u3051\u308b\u5834\u6240\u3068\u3057\u3066\u3001\u65e2\u5b58\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\/usr\/lib\/firewalld\/services\u304b\u3089\/etc\/firewalld\/services\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b3\u30d4\u30fc\u3057\u3066\u958b\u59cb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u3001SSH\u30b5\u30fc\u30d3\u30b9\u306e\u5b9a\u7fa9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001\u3042\u306a\u305f\u306e\u4f8b\u306e\u30b5\u30fc\u30d3\u30b9\u5b9a\u7fa9\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u30b5\u30fc\u30d3\u30b9\u30ea\u30b9\u30c8\u5185\u306e\u30b5\u30fc\u30d3\u30b9\u540d\u306f\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u304b\u3089.xml\u306e\u62e1\u5f35\u5b50\u3092\u53d6\u308a\u9664\u3044\u305f\u3082\u306e\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">cp<\/span> \/usr\/lib\/firewalld\/services\/ssh.xml \/etc\/firewalld\/services\/<mark>example<\/mark>.xml<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002vi\u307e\u305f\u306f\u304a\u6c17\u306b\u5165\u308a\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">vi<\/span> \/etc\/firewalld\/services\/<mark>example<\/mark>.xml<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306b\u3001\u30b3\u30d4\u30fc\u3057\u305fSSH\u306e\u5b9a\u7fa9\u304c\u30d5\u30a1\u30a4\u30eb\u306b\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u6587\u3092\u65e5\u672c\u8a9e\u3067\u66f8\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\uff08\uff11\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u307f\u3067\u7d50\u69cb\u3067\u3059\uff09\uff1a<br \/>\n\/etc\/firewalld\/services\/example.xml<\/div>\n<pre class=\"post-pre\"><code><span class=\"token prolog\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;<\/span>\r\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>service<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>\r\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>short<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>SSH<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>short<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>\r\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>description<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>Secure Shell (SSH) is a protocol for logging into and executing commands on remote machines. It provides secure encrypted communications. If you plan on accessing your machine remotely via SSH over a firewalled interface, enable this option. You need the openssh-server package installed for this option to be useful.<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>description<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>\r\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>port<\/span> <span class=\"token attr-name\">protocol<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=<\/span><span class=\"token punctuation\">\"<\/span>tcp<span class=\"token punctuation\">\"<\/span><\/span> <span class=\"token attr-name\">port<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=<\/span><span class=\"token punctuation\">\"<\/span>22<span class=\"token punctuation\">\"<\/span><\/span><span class=\"token punctuation\">\/&gt;<\/span><\/span>\r\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>service<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>\r\n<\/code><\/pre>\n<p>\u3053\u306e\u5b9a\u7fa9\u306e\u5927\u90e8\u5206\u306f\u5b9f\u969b\u306b\u306f\u30e1\u30bf\u30c7\u30fc\u30bf\u3067\u3059\u3002\u30b5\u30fc\u30d3\u30b9\u306e\u30bf\u30b0\u5185\u306e\u77ed\u3044\u540d\u524d\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u30b5\u30fc\u30d3\u30b9\u306e\u8aad\u307f\u3084\u3059\u3044\u540d\u524d\u3067\u3059\u3002\u307e\u305f\u3001\u5c06\u6765\u30b5\u30fc\u30d3\u30b9\u3092\u76e3\u67fb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b\u306f\u3001\u3088\u308a\u8a73\u7d30\u306a\u60c5\u5831\u3092\u6301\u3064\u305f\u3081\u306b\u8aac\u660e\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5b9f\u969b\u306b\u30b5\u30fc\u30d3\u30b9\u306e\u6a5f\u80fd\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u552f\u4e00\u306e\u8a2d\u5b9a\u306f\u3001\u958b\u304f\u30dd\u30fc\u30c8\u306e\u756a\u53f7\u3068\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u8b58\u5225\u3059\u308b\u30dd\u30fc\u30c8\u306e\u5b9a\u7fa9\u3067\u3059\u3002\u8907\u6570\u306e\u30bf\u30b0\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u4f8b\u3067\u306f\u3001TCP\u306e\u30dd\u30fc\u30c87777\u3068UDP\u306e\u30dd\u30fc\u30c88888\u3092\u958b\u653e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u60f3\u50cf\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6b21\u306e\u3088\u3046\u306a\u65e2\u5b58\u306e\u5b9a\u7fa9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div>\/etc\/firewalld\/services\/example.xml \u2192<br \/>\n\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\uff1a\/etc\/firewalld\/services\/example.xml<\/div>\n<pre class=\"post-pre\"><code><span class=\"token prolog\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;<\/span>\r\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>service<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>\r\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>short<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><mark>Example Service<\/mark><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>short<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>\r\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>description<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><mark>This is just an example service. It probably shouldn't be used on a real system.<\/mark><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>description<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>\r\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>port<\/span> <span class=\"token attr-name\">protocol<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=<\/span><span class=\"token punctuation\">\"<\/span><mark>tcp<\/mark><span class=\"token punctuation\">\"<\/span><\/span> <span class=\"token attr-name\">port<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=<\/span><span class=\"token punctuation\">\"<\/span><mark>7777<\/mark><span class=\"token punctuation\">\"<\/span><\/span><span class=\"token punctuation\">\/&gt;<\/span><\/span>\r\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>port<\/span> <span class=\"token attr-name\">protocol<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=<\/span><span class=\"token punctuation\">\"<\/span><mark>udp<\/mark><span class=\"token punctuation\">\"<\/span><\/span> <span class=\"token attr-name\">port<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">=<\/span><span class=\"token punctuation\">\"<\/span><mark>8888<\/mark><span class=\"token punctuation\">\"<\/span><\/span><span class=\"token punctuation\">\/&gt;<\/span><\/span>\r\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>service<\/span><span class=\"token punctuation\">&gt;<\/span><\/span>\r\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u65b0\u3057\u3044\u30b5\u30fc\u30d3\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;reload<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3001\u5229\u7528\u53ef\u80fd\u306a\u30b5\u30fc\u30d3\u30b9\u306e\u30ea\u30b9\u30c8\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">firewall-cmd &#8211;get-services<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>RH-Satellite-6 RH-Satellite-6-capsule amanda-client amanda-k5-client amqp amqps apcupsd audit bacula bacula-client bb bgp bitcoin bitcoin-rpc bitcoin-testnet bitcoin-testnet-rpc bittorrent-lsd ceph ceph-mon cfengine cockpit collectd condor-collector ctdb dhcp dhcpv6 dhcpv6-client distcc dns dns-over-tls docker-registry docker-swarm dropbox-lansync elasticsearch etcd-client etcd-server <mark>example<\/mark> finger foreman foreman-proxy freeipa-4 freeipa-ldap freeipa-ldaps freeipa-replication freeipa-trust ftp galera ganglia-client ganglia-master git grafana gre high-availability http https imap imaps ipp ipp-client ipsec irc ircs iscsi-target isns jenkins kadmin kdeconnect kerberos kibana klogin kpasswd kprop kshell kube-api kube-apiserver kube-control-plane kube-controller-manager kube-scheduler kubelet-worker ldap ldaps libvirt libvirt-tls lightning-network llmnr managesieve matrix mdns memcache minidlna mongodb mosh mountd mqtt mqtt-tls ms-wbt mssql murmur mysql nbd netbios-ns nfs nfs3 nmea-0183 nrpe ntp nut openvpn ovirt-imageio ovirt-storageconsole ovirt-vmconsole plex pmcd pmproxy pmwebapi pmwebapis pop3 pop3s postgresql privoxy prometheus proxy-dhcp ptp pulseaudio puppetmaster quassel radius rdp redis redis-sentinel rpc-bind rquotad rsh rsyncd rtsp salt-master samba samba-client samba-dc sane sip sips slp smtp smtp-submission smtps snmp snmptrap spideroak-lansync spotify-sync squid ssdp ssh steam-streaming svdrp svn syncthing syncthing-gui synergy syslog syslog-tls telnet tentacle tftp tile38 tinc tor-socks transmission-client upnp-client vdsm vnc-server wbem-http wbem-https wireguard wsman wsmans xdmcp xmpp-bosh xmpp-client xmpp-local xmpp-server zabbix-agent zabbix-server<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u901a\u5e38\u901a\u308a\u306b\u3001\u3042\u306a\u305f\u306e\u5730\u57df\u3067\u3053\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d75 &#8211; \u81ea\u5206\u306e\u30be\u30fc\u30f3\u306e\u4f5c\u6210<\/h2>\n<p>\u591a\u304f\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u3068\u3063\u3066\u306f\u3001\u4e8b\u524d\u306b\u5b9a\u7fa9\u3055\u308c\u305f\u30be\u30fc\u30f3\u304c\u6a5f\u80fd\u3059\u308b\u306f\u305a\u3067\u3059\u304c\u3001\u3088\u308a\u5177\u4f53\u7684\u306a\u5f79\u5272\u3092\u6301\u3064\u72ec\u81ea\u306e\u30be\u30fc\u30f3\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3082\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Web\u30b5\u30fc\u30d0\u30fc\u306e\u305f\u3081\u306e\u30be\u30fc\u30f3\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30be\u30fc\u30f3\u306f\u300cpublicweb\u300d\u3068\u547c\u3070\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u3067\u63d0\u4f9b\u3055\u308c\u308bDNS\u30b5\u30fc\u30d3\u30b9\u306e\u305f\u3081\u306b\u306f\u3001\u5225\u306e\u30be\u30fc\u30f3\u3092\u69cb\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u306f\u3001\u300cprivateDNS\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u5225\u306e\u30be\u30fc\u30f3\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30be\u30fc\u30f3\u3092\u8ffd\u52a0\u3059\u308b\u969b\u306b\u306f\u3001\u305d\u308c\u3092\u6052\u4e45\u7684\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u8a2d\u5b9a\u3092\u5b9f\u884c\u4e2d\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u53cd\u6620\u3055\u305b\u308b\u305f\u3081\u306b\u30ea\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001firewall-cmd \u2013new-zone\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3053\u308c\u3089\u306e2\u3064\u306e\u30be\u30fc\u30f3\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;new-zone<span class=\"token operator\">=<\/span>publicweb<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;new-zone<span class=\"token operator\">=<\/span>privateDNS<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u300c\u3053\u308c\u3089\u304c\u6c38\u7d9a\u7684\u306a\u8a2d\u5b9a\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u5165\u529b\u3057\u3066\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u300d<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;get-zones<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>block dmz drop external home internal nm-shared <mark>privateDNS<\/mark> public <mark>publicweb<\/mark> trusted work<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u3089\u306e\u65b0\u3057\u3044\u30be\u30fc\u30f3\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30e9\u30f3\u30bf\u30a4\u30e0\u69cb\u6210\u306b\u53d6\u308a\u8fbc\u3080\u305f\u3081\u306b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;reload<\/span><\/li>\n<li data-prefix=\"$\">firewall-cmd &#8211;get-zones<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>block dmz drop external home internal nm-shared <mark>privateDNS<\/mark> public <mark>publicweb<\/mark> trusted work<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3001\u9069\u5207\u306a\u30b5\u30fc\u30d3\u30b9\u3068\u30dd\u30fc\u30c8\u3092\u30be\u30fc\u30f3\u306b\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5b9f\u884c\u6642\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8abf\u6574\u3057\u3001\u30c6\u30b9\u30c8\u5f8c\u306b\u6c38\u7d9a\u7684\u306a\u8a2d\u5b9a\u306b\u5909\u66f4\u3092\u4fdd\u5b58\u3059\u308b\u3053\u3068\u306f\u901a\u5e38\u826f\u3044\u8003\u3048\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001publicweb\u30be\u30fc\u30f3\u306b\u306fSSH\u3001HTTP\u3001\u304a\u3088\u3073HTTPS\u30b5\u30fc\u30d3\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>publicweb &#8211;add-service<span class=\"token operator\">=<\/span>ssh<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>publicweb &#8211;add-service<span class=\"token operator\">=<\/span>http<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>publicweb &#8211;add-service<span class=\"token operator\">=<\/span>https<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>publicweb &#8211;list-all<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>publicweb target: default icmp-block-inversion: no interfaces: sources: services: http https ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules:<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8DNS\u30be\u30fc\u30f3\u306bDNS\u30b5\u30fc\u30d3\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>privateDNS &#8211;add-service<span class=\"token operator\">=<\/span>dns<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>privateDNS &#8211;list-all<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>privateDNS target: default icmp-block-inversion: no interfaces: sources: services: dns ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules:<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u308c\u304b\u3089\u3001\u3053\u308c\u3089\u306e\u65b0\u3057\u3044\u30be\u30fc\u30f3\u306b\u79c1\u9054\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5207\u308a\u66ff\u3048\u3066\u3001\u305d\u308c\u3089\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>publicweb &#8211;change-interface<span class=\"token operator\">=<\/span>eth0<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>privateDNS &#8211;change-interface<span class=\"token operator\">=<\/span>eth1<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u6642\u70b9\u3067\u306f\u3001\u8a2d\u5b9a\u3092\u30c6\u30b9\u30c8\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u5024\u304c\u3042\u306a\u305f\u306b\u5408\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u3053\u306e\u30eb\u30fc\u30eb\u3092\u6052\u4e45\u7684\u306a\u8a2d\u5b9a\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u2014permanent\u30d5\u30e9\u30b0\u3092\u4ed8\u3051\u3066\u518d\u3073\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u306e\u5834\u5408\u3001\u2014runtime-to-permanent\u30d5\u30e9\u30b0\u3092\u4f7f\u7528\u3057\u3066\u30e9\u30f3\u30bf\u30a4\u30e0\u69cb\u6210\u5168\u4f53\u3092\u6c38\u4e45\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd &#8211;runtime-to-permanent<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u3089\u306e\u30eb\u30fc\u30eb\u3092\u6c38\u4e45\u306b\u9069\u7528\u3057\u305f\u5f8c\u3001\u5909\u66f4\u304c\u7dad\u6301\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;reload<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b63\u3057\u3044\u30be\u30fc\u30f3\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u3053\u3068\u3092\u691c\u8a3c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">firewall-cmd &#8211;get-active-zones<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>privateDNS interfaces: eth1 publicweb interfaces: eth0<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e21\u30be\u30fc\u30f3\u306b\u9069\u5207\u306a\u30b5\u30fc\u30d3\u30b9\u304c\u5229\u7528\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>publicweb &#8211;list-services<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>http https ssh<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">=<\/span>privateDNS &#8211;list-services<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>dns<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3042\u306a\u305f\u306f\u81ea\u5206\u306e\u30be\u30fc\u30f3\u3092\u6210\u529f\u88cf\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\uff01\u4ed6\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u3059\u308b\u305f\u3081\u306b\u3001&#8211;set-default-zone=\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u305d\u306e\u52d5\u4f5c\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> firewall-cmd &#8211;set-default-zone<span class=\"token operator\">=<\/span>publicweb<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u65e5\u5e38\u306e\u4f7f\u7528\u306e\u305f\u3081\u306bRocky Linux\u30b7\u30b9\u30c6\u30e0\u3067firewalld\u30b5\u30fc\u30d3\u30b9\u3092\u7ba1\u7406\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u3042\u306a\u305f\u306f\u4eca\u304b\u306a\u308a\u8a73\u3057\u3044\u7406\u89e3\u3092\u6301\u3064\u3079\u304d\u3067\u3059\u3002<\/p>\n<p>firewalld\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u74b0\u5883\u3092\u8003\u616e\u3057\u305f\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u53ef\u80fd\u306a\u30eb\u30fc\u30eb\u3068\u30eb\u30fc\u30eb\u30bb\u30c3\u30c8\u306e\u8a2d\u5b9a\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u30be\u30fc\u30f3\u306e\u4f7f\u7528\u306b\u3088\u308a\u3001\u7570\u306a\u308b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u30dd\u30ea\u30b7\u30fc\u9593\u3067\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u79fb\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u4f5c\u696d\u77e5\u8b58\u3092\u7fd2\u5f97\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u30c4\u30fc\u30eb\u304c\u63d0\u4f9b\u3059\u308b\u67d4\u8edf\u6027\u3068\u6a5f\u80fd\u3092\u6700\u5927\u9650\u306b\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30ebD\u306b\u95a2\u3059\u308b\u8a73\u7d30\u60c5\u5831\u306b\u3064\u3044\u3066\u306f\u3001\u516c\u5f0f\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30ebD\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b firewalld\u306f\u591a\u304f\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u5229\u7528\u53ef\u80fd\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u7ba1\u7406\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002\u3053\u308c\u306fLinux\u306e\u30ab\u30fc\u30cd\u30eb\u30d9\u30fc\u30b9\u306enftables\u3084iptables\u30d1\u30b1\u30c3\u30c8\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306e\u30d5 [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-226","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Rocky Linux 9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud<\/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.silicloud.com\/ja\/blog\/rocky-linux-9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rocky Linux 9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"\u306f\u3058\u3081\u306b firewalld\u306f\u591a\u304f\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u5229\u7528\u53ef\u80fd\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u7ba1\u7406\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002\u3053\u308c\u306fLinux\u306e\u30ab\u30fc\u30cd\u30eb\u30d9\u30fc\u30b9\u306enftables\u3084iptables\u30d1\u30b1\u30c3\u30c8\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306e\u30d5 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-08T03:30:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-19T14:15:20+00:00\" \/>\n<meta name=\"author\" content=\"\u5149, \u660e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5149, \u660e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"7\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/\",\"name\":\"Rocky Linux 9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-08-08T03:30:22+00:00\",\"dateModified\":\"2024-03-19T14:15:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rocky Linux 9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\",\"name\":\"\u5149, \u660e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"caption\":\"\u5149, \u660e\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Rocky Linux 9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","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.silicloud.com\/ja\/blog\/rocky-linux-9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\/","og_locale":"ja_JP","og_type":"article","og_title":"Rocky Linux 9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5","og_description":"\u306f\u3058\u3081\u306b firewalld\u306f\u591a\u304f\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u5229\u7528\u53ef\u80fd\u306a\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u7ba1\u7406\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002\u3053\u308c\u306fLinux\u306e\u30ab\u30fc\u30cd\u30eb\u30d9\u30fc\u30b9\u306enftables\u3084iptables\u30d1\u30b1\u30c3\u30c8\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306e\u30d5 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-08-08T03:30:22+00:00","article_modified_time":"2024-03-19T14:15:20+00:00","author":"\u5149, \u660e","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u5149, \u660e","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"7\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/","name":"Rocky Linux 9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-08-08T03:30:22+00:00","dateModified":"2024-03-19T14:15:20+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Rocky Linux 9\u3067firewalld\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55","name":"\u5149, \u660e","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","caption":"\u5149, \u660e"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/rocky-linux-9%e3%81%a7firewalld%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%83%95%e3%82%a1%e3%82%a4%e3%82%a2%e3%82%a6%e3%82%a9%e3%83%bc%e3%83%ab%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=226"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/226\/revisions"}],"predecessor-version":[{"id":37939,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/226\/revisions\/37939"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}