LAN内なのでいらない
ローカルネットワークのみに接続しているLinuxマシン。OSはCentOS 7.6。
firewalldやSELinuxの学習は目的ではなく、物理的に外部から接続できない環境であるため無効化したい。
無効化する
console
[root@xxxxx ~]# systemctl stop firewalld && systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@xxxxx ~]# cp -p /etc/selinux/config /etc/selinux/config.org
[root@xxxxx ~]# vi /etc/selinux/config
[root@xxxxx ~]# diff /etc/selinux/config /etc/selinux/config.org
7c7
< SELINUX=disabled
---
> SELINUX=enforcing
[root@xxxxx ~]# reboot