パブリックゾーンから「ssh」を削除し、信頼できるゾーンにのみ豊富なルールを維持すると、私のサーバーにアクセスできますか?

パブリックゾーンから「ssh」を削除し、信頼できるゾーンにのみ豊富なルールを維持すると、私のサーバーにアクセスできますか?

以下があります(空の項目は複数省略されています)。

$ sudo firewall-cmd --list-all-zones
block
  target: %%REJECT%%
  icmp-block-inversion: no
  masquerade: no


dmz
  target: default
  icmp-block-inversion: no
  services: ssh
  masquerade: no


drop
  target: DROP
  icmp-block-inversion: no
  masquerade: no


external
  target: default
  icmp-block-inversion: no
  services: ssh
  masquerade: yes


home
  target: default
  icmp-block-inversion: no
  services: ssh mdns samba-client dhcpv6-client
  masquerade: no


internal
  target: default
  icmp-block-inversion: no
  services: ssh mdns samba-client dhcpv6-client
  masquerade: no


public (active)
  target: default
  icmp-block-inversion: no
  interfaces: enp2s0
  services: dhcpv6-client https ssh
  ports: 50036/tcp
  masquerade: no

trusted
  target: ACCEPT
  icmp-block-inversion: no
  masquerade: no
  rich rules:
        rule family="ipv4" source address="myip1" service name="ssh" accept
        rule family="ipv4" source address="myip2" service name="ssh" accept
        rule family="ipv4" source address="myip3" service name="ssh" accept

work
  target: default
  icmp-block-inversion: no
  services: ssh dhcpv6-client
  masquerade: no

もし私がするなら

firewall-cmd --zone=public --remove-service=ssh --permanent

それで私のサーバーにアクセスできますか?このtrusted地域はソースもなく表示もされていないので混乱していますactive。なぜ1つの領域しかアクティブになっていないのですか?

timeoutオプションサービス削除コマンドも表示されません。

ベストアンサー1

おすすめ記事