너무너무 감사드려요.
기쁜 맘에.. 해보지도 않고 답글 부터 올립니다.
감사해요..
: 커널 패치할때 iptables 패치 하셨나요?
: 그걸 먼저 하신다음 커널 패치를 해야하는데.
: 그래서 지금 iptables-1.2.6 가 설치 안되는것같네요.
:
: 커널 2.4.18이랑 iptables-1.2.6a 다운 받으셔서요.
: 그담에
:
: ]# tar xzf linux-2.4.18.tar.gz
: ]# tar xjf iptable- (해당 버젼 tar.gz파일)
: ]# ln -s /usr/src/linux/include/linux /usr/include/linux
: ]# ln -s /usr/src/linux/include/asm /usr/include/asm
: ]# ln -s /usr/src/linux/include/scsi /usr/include/scsi
:
: 그담에 linux 커널 압축 푼곳으로 이동하세요.
:
: ]# cd linux
: ]# make menuconfig
:
: make menuconfig 가서 그냥 빠져나옵니다. 저장하지말고.
: 그담에 iptables 를 커널 패치에 적용시켜야하니.
:
: 아까 iptables 압축 푼 곳으로 가세요. 그다음
: ]# make pending-patches KERNEL_DIR=/usr/src/linux
: 패치중 실패한 화일은 그냥 무시하세요.
: 아직 개발이 완려 안되서 그런거니 크게 신경 안써도 됩니다.
:
: 그다음에
:
: ]# make KERNEL_DIR=/usr/src/linux
: ]# make install KERNEL_DIR=/usr/src/linux
: ]# cd ../linux (리눅스 커널 푼곳으로 다시 이동하세요.)
:
: 그담에..
: ]# make mrproper menuconfig
: 하셔서..
: 커널 패치하세요~
:
: : iptables 설치 할려고 하는데..
: : iptables 설치 문서가 부족하여..
: : 삽질중입니다...
: :
: : 아래와 같이 했는데 오류가 납니다.
: :
: : 1) /usr/src/linux
: : make menuconfig 하고 난후
: :
: : 2) /iptables_1.2.6a
: : make patch-o-matic
: : ipt_string 만 yes 나머지는 no
: : 한후 make install
: :
: : 3) make menuconfig
: : net filter --- ipt_string 선택..
: :
: : 4) make dep; make clean; make bzImage...
: : 5) make mouldes
: :
: : 했는데.. 다음과 같은 오류가 납니다.
: : ipt_string 해서 string 필터하고 싶은데..
: : 방법이 잘못 되었는데.. patch-o-matic 에서는 어떤것들을 체크해주어야 할지 잘 모르겠네
: : 요.. ___________________________________________________________
: : gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-str
: : ict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/lin
: : ux/include/linux/modversions.h -DKBUILD_BASENAME=ipt_string -c -o ipt_string.o ipt_string.c ipt_string.c:80: mac
: : ro `max' used with too many (3) args ipt_string.c: In function `search_sublinear': ipt_string.c:53: warning: subscri
: : pt has type `char' ipt_string.c:78: warning: subscript has type `char'
: : ipt_string.c:80: parse error before `;'
: : ipt_string.c:80: `_y' undeclared (first use in this function)
: : ipt_string.c:80: (Each undeclared identifier is reported only once
: : ipt_string.c:80: for each function it appears in.)
: : make[2]: *** [ipt_string.o] Error 1
: : make[2]: Leaving directory `/usr/src/linux/net/ipv4/netfilter'
: : make[1]: *** [_modsubdir_ipv4/netfilter] Error 2
: : make[1]: Leaving directory `/usr/src/linux/net'
: : make: *** [_mod_net] Error 2
: : ___________________________________________________________
:
: --
: 봄이네~