[OCI]방화벽 설정 변경
# Virtualation/Public Cloud2022. 10. 22. 14:19[OCI]방화벽 설정 변경

인스턴스를 생성하고나면 기본적으로 22번포트만 오픈되어 있음. 그래서 다른 포트도 오픈하기 위해 방화벽 설정으로 변경하기로함. 인스턴스 정보에서 서브넷을 클릭  보안목록에서 해당 네트워크 클릭 아래처럼 22번ssh 포트가 오픈되어 있는것으로 확인됨.   서버에서 방화벽룰 설정[root@kkari yum.repos.d]# iptables -I INPUT 5 -i ens3 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT[root@kkari yum.repos.d]# iptables -I INPUT 5 -i ens3 -p tcp --dport 443 -m state --state NEW,ESTABLISHED -j ACCEPT

# Operation System/Linux2019. 1. 6. 13:54CentOS7 초기 설정

CentOS7버전을 최소설치하고나면 ifconfig명령어를 쓸수가 없다 ㅠ 이럴때는 아래와 같이 net-tools를 설치하면 해결됩니다. # yum install net-tools 7버전때부터는 기본방화벽이 firewall으로 되어있습니다. 아직 익숙치 않기때문에 iptables으로 변경할라면 아래와 같이 진행하면됩니다. firewall서비스 중지# systemctl stop firewalld.service 부팅시 자동으로 실행되지 않게하기# systemctl mask firewalld.service iptables 설치 및 실행# yum -y install iptables-services# systemctl start iptables.service 부팅시 자동실행#systemctl enable ipta..

image