방화벽끄기

방화벽 해제

systemctl stop firewalld


리부팅시 방화벽 실행 하지 않게 하기

systemctl disable firewalld


방화벽설정은 어렵기때문에 tui를 이용한다.


yum install system-config-firewall system-config-firewall-tui


sudo system-config-firewall-tui


고정아이피설정

네트워크 인터페이스 아이디 확인(인터넷망 or 내부망)



$ sudo vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# 인터넷이되는 인터페이스는 자동으로 사용
auto enp0s3
iface enp0s3inet dhcp

# 호스트전용 내부 네트워크는 ip설정 ( 101로 자동할당되는것을 105로 변경)
auto enp0s8
iface enp0s8inet static
address 192.168.56.105
netmask 255.255.255.0
network 192.168.56.1
boradcast 192.168.56.255






$ sudo
firewall-cmd --zone=public --add-port=80/tcp --permanent


$ sudo
firewall-cmd --reload


service
firewalld stop



Ip addr show

상대 포트체크
nc -z 180.70.96.191 3000
  • No labels