'2014/07'에 해당되는 글 1건

  1. 2014.07.30 리눅스 브릿지 방화벽 (Bridge Firewall)

*Centos 5.x 기준

#yum -y install bridge-utils


#cat /etc/sysctl.conf

net.ipv4.ip_forward = 1


#cat /etc/sysconfig/network-scripts/ifcfg-br0

DEVICE=br0
ONBOOT=yes
TYPE=Bridge
IPADDR=아이피
NETMASK=서브넷
GATEWAY=게이트웨이


#cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BRIDGE=br0


#cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BRIDGE=br0


#cat firewall.sh


Posted by 호랭이~