LoginSignup
1
0

More than 5 years have passed since last update.

firewalldとSELinux無効化

Posted at

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
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0