firewalldセットアップ

$ firewall-cmd –get-active-zone

public

interfaces: enp3s0

デフォルトのゾーンはpublic。

現在有効なサービスは

$ firewall-cmd –list-services

dhcpv6-client ssh

sambaが登録されていないので登録する。

$ firewall-cmd –add-service=samba

$ firewall-cmd –list-services

dhcpv6-client samba ssh

アクセス出来るか確認してOKなら再起動後も有効にさせるために。

$ firewall-cmd –permanent –add-service=samba

とりあえずIPv6使わないのでdhcpv6-clientも切っておこう。

$ firewall-cmd –remove-service=dhcpv6-client

$ firewall-cmd –permanent –remove-service=dhcpv6-client

comments powered by Disqus