화요일, 12월 12, 2006

Bridge & Netfilter

kernel 2.6 에서는 브릿지를 설정하고 iptables로 브릿지에 필터링을 걸 수 있다. 그러나 MIPS kernel 2.4.x에서 브릿지로 설정했을때 iptables로 필터를 설정해도 적용되지 않는다.

Kernel 2.4.x에서는 brnf 패치를 해야 필터링이 적용된다.

brnf 패치 소스 : http://ebtables.sourceforge.net/

수요일, 12월 06, 2006

브릿지(bridge) 설정하기

구성

voip폰 <----------------->(eth0) linux[bridge](eth1) <-------------------------->스위치 허브 <------ 크로스케이블 utp 케이블 [예제] configure a network interface
$ ifconfig eth0 0.0.0.0 promisc up
$ ifconfig eth1 0.0.0.0 promisc up

Creating a bridge device

$brctl addbr voipbr

Adding devices to a bridge
$brctl addif voipbr eth0
$brctl addif voipbr eth1

$ifconfig voipbr up


자세한 정보는 다음 사이트를 참조
http://linux-net.osdl.org/index.php/Bridge