Works/CentOS & RockyLinux
Centos7 브릿지 방화벽(iptables forward) 작동안할시
Antamis
2021. 12. 15. 11:54
Centos7 브릿지 방화벽(iptables forward) 작동안할시
Centos7 서버에 bridge 를 이용하여 iptables 방화벽을 구성
iptables forward가 작동하지 않고 nf_contrack 에 패킷이 보이지 않는다
Centos7 에서 아래 모듈을 올려줘야 작동한다
modprobe br_netfilter
Centos6 에서는 아래 파라미터를 1로 활성화 하면 됨
/etc/sysctl.conf
# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-arptables = 1
출처 : http://blog.servis.co.kr/index.php/2021/11/17/centos7-bridge_iptables/