본문 바로가기
server/Cent_os7

Migrate from FirewallD to Iptables on CentOS 7

Centos은 net filter 를 이용한 네트워크 패킷 방화벽으로 iptables 을 사용 했지만
Centos 7 부터 iptables 대신하여  firewalld 를 사용 한다. firewalld 는 iptables 와 동일한 목적을 수행 하지만
현재의 연결을 중단하지 않고 구성을 변경 하거나, openstack 을 많이 고려되어 있다.

그렇지만 iptables 에 익숙한 사람이라면 firewalld 를 사용하기 어려운 부분이 있기 때문에 firewalld 를 disable 시키고 iptables를 활성화
시켜 사용해도 무방하다.

# firewalld을 기존에 부팅시 올라오지 않도록 systemctl 에 disable 및 중지 한다.
[root@localhost ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.

[root@node201 ~]# systemctl list-unit-files | grep firewalld
firewalld.service                      disabled

# iptables 패키지 설치및 systemctl 에 등록 한다. 그외 사용 법은 iptables 와 동일

[root@localhost ~]# yum install iptables-services

[root@node201 ~]# systemctl enable iptables
Created symlink from /etc/systemd/system/basic.target.wants/iptables.service to /usr/lib/systemd/system/iptables.service.
[root@node201 ~]# systemctl list-unit-files | grep iptables
iptables.service                       enabled


반응형

'server > Cent_os7' 카테고리의 다른 글

CentOS 7 OvpenVpn Oracle Freeradius 연동  (0) 2017.07.29
CentOS 7 OpenVpn install  (0) 2017.07.29
Centos7 NIC rename  (0) 2016.05.06
Centos7 Net-tools install  (0) 2016.05.06