|
News,
Internal,
Projects,
Home Software, Support, Documentation |
5.0-CURRENT로 무선랜 AP를 만들어 쓰려고 natd를 설정하고 있습니다. wi0와 fxp0 인터페이스가 있고, 외부 선은 fxp0에 물려있습니다. Bridge 모듈을 이용해서 쓰려다가 IP도 부족하고 wi0쪽에만 DHCP로 같은 서브넷의 IP를 주기가 까다롭길래 NAT를 사용하기로 했습니다. 커널 설정에 options IPFIREWALL options IPDIVERT 를 넣고 잘 컴파일하고 부팅했습니다. /etc/rc.conf에는 natd_enable="YES" natd_interface="fxp0" firewall_enable="YES" firewall_type="open" 처럼 들어가 있고, 부팅할 때에도 ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to deny, logging disabled 라고 메시지도 뜨고 natd까지도 잘 뜹니다. 그런데 이상하게도 ipfw list에는 divert 규칙이 등록이 안되어 있습니다. ipfw add divert natd all from any to any via fxp0 명령을 실행하면 ipfw: getsockopt(IP_FW_ADD): Invalid argument라고 오류가 나고, 콘솔에는 ipfw: opcode 50 size 1 wrong 이라고 남습니다. 제가 프비로는 NAT를 처음 설정해보고, 또 CURRENT도 아직 생소해서 혹시 어느 부분을 빼먹거나 해서 이런 것인지, 아니면 CURRENT에 지금 원래 문제가 있는 것인지 궁금하네요. 커널, 세상 모두 오늘/어제 새로 가져와서 컴파일한 녀석입니다. FreeBSD nalgae.Mazic.org 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Mon Mar 17 02:48:57 KST 2003 root@xxxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/NALGAE i386 -- netj | Jaeho Shin | 신재호 ; http://netj.org/ System Programmers' Association for Researching Computer Systems Division of Computer Science, Department of EECS, KAIST -- Please look and take part in KFUG FAQ: <http://www.kr.freebsd.org/FAQ-kr/> To Unsubscribe: send mail to majordomo@xxxxxxxxxxxxxx with "unsubscribe questions" in the BODY of the message
|
Copyright © 1998-2005 Korea FreeBSD Users Group. All rights reserved. webmaster at kr.FreeBSD.org $Date: 2003/03/31 23:00:55 $ |
|