티스토리 뷰

redhat 6.7에서는 cent0S7과 같이 방화벽 등록시에 firewall을 아래와 같이 등록 불가


[root@zedo zedo]# firewall-cmd --permanent --add-port=80/tcp

[root@zedo zedo]# firewall-cmd --reload


방법은 iptables를 사용하는 것으로 기본 적인 설치를 하고 나서

# yum -y install net-tools --> 기본적인 네트워크 도구들 설치

# yum install iptables --> 방화벽 관련 iptable 설정 함

# chkconfig --list    --> 확인

# chkconfig iptables on  --> 서비스 등록

# service iptables start

# iptables --flush

# iptables-save > /etc/sysconfig/iptables



 vi /etc/sysconfig/iptables 수행하여  아래와 같이 등록 필요

-A INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT 
-A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT
-A INPUT -m state –state NEW -m tcp -p tcp — dport 443 -j ACCEPT

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG more
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
글 보관함