월간 인기 게시물

게시물 160건
   
초간단 Bridge Firewall 설정
글쓴이 : 최고관리자 날짜 : 2010-01-08 (금) 13:45 조회 : 9719
글주소 :
                          

커널 2.4.x 대에서는 별도에 커널옵션 항목이 필요하며 2.6.x 대에서는 기본으로 bridge 모듈이 포함되어있다....

# YUM 을 통한 Brige Uitl 설치...(브리지를 컨트롤 하는 유틸)
yum install brige-util

[root@localhost ~]# brctl
Usage: brctl [commands]
commands:
        addbr           <bridge>                add bridge
        delbr           <bridge>                delete bridge
        addif           <bridge> <device>       add interface to bridge
        delif           <bridge> <device>       delete interface from bridge
        setageing       <bridge> <time>         set ageing time
        setbridgeprio   <bridge> <prio>         set bridge priority
        setfd           <bridge> <time>         set bridge forward delay
        sethello        <bridge> <time>         set hello time
        setmaxage       <bridge> <time>         set max message age
        setpathcost     <bridge> <port> <cost>  set path cost
        setportprio     <bridge> <port> <prio>  set port priority
        show                                    show a list of bridges
        showmacs        <bridge>                show a list of mac addrs
        showstp         <bridge>                show bridge stp info
        stp             <bridge> {on|off}       turn stp on/off



# 네트워크 인터페이스 설정
 - IN / OUT 을 위해 최소 2개이상의 이더넷 포트가 필요하다.
 - 나는 접근용 포트를 별도로 분리해서 총 3개의 포트를 사용했다.

[root@localhost ~]# brctl addbr br0
[root@localhost ~]# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.000000000000       no

[root@localhost ~]# brctl addif br0 eth1

[root@localhost ~]# brctl addif br0 eth2

[root@localhost ~]# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.0015173a009c       no              eth1
                                                                   eth2

[root@localhost network-scripts]# ifconfig eth1 0.0.0.0 promisc up
[root@localhost network-scripts]# ifconfig eth2 0.0.0.0 promisc up
[root@localhost network-scripts]# ifconfig br0 promisc up

브릿지 start / stop 스크립트는 알아서 작성하시길...


최고관리자 2011-01-20 (목) 17:49
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BRIDGE=br0
ONBOOT=yes

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

/etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
IPADDR=211.XXX.XXX.XXX
GATEWAY=211.XXX.XXX.XXX
NETMASK=255.255.XXX.XXX
ONBOOT=yes
이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.