|
News,
Internal,
Projects,
Home Software, Support, Documentation |
/etc/services는 /usr/share/examples/etc에 있는 sample services를 참고해서 보완했습니다. sysctl -a 로 확인해보면 아래와 같습니다. .... net.inet.ip.portrange.hifirst: 49152 net.inet.ip.portrange.hilast: 65535 net.inet.ip.forwarding: 1 net.inet.ip.redirect: 1 net.inet.ip.ttl: 64 ... rc.conf는 아래와 같습니다. 그런데... 여전히 안되니... 저는 5.0을 포기해야 할 운명인것 같습니다. 절대로 그럴순 없지만요.... 5.0CD에서 그대로 설치하면 정상적으로 되나요? 소스 update없이 말예요? # -- sysinstall generated deltas -- # Sun Jan 26 15:03:42 2003 # Created: Sun Jan 26 15:03:42 2003 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. font8x14="NO" font8x16="NO" font8x8="NO" ##### network ##### defaultrouter="NO" hostname="localhost" network_interfaces="rl0 rl1 lo0" ifconfig_rl0="DHCP" ifconfig_rl1="inet 192.168.0.1 netmask 255.255.255.0" ipnat_enable="YES" gateway_enable="YES" ipfilter_enable="YES" ##### natd ##### natd_program="/sbin/natd" natd_enable="YES" natd_interface="rl0" natd_flags="-f /etc/natd.conf" natd_flags="-dynamic" ##### firewall ##### firewall_enable="YES" firewall_type="open" tcp_extensions="NO" inetd_enable="YES" inetd_program="/usr/sbin/inetd" #ipv6_enable="YES" kern_securelevel_enable="NO" linux_enable="YES" #moused_enable="YES" #moused_port="/dev/psm0" #moused_type="auto" nfs_client_enable="YES" nfs_server_enable="YES" rpcbind_enable="YES" sendmail_enable="YES" sshd_enable="YES" usbd_enable="YES" ppp_nat="YES" ppp_enable="YES" ppp_mode="ddial" ppp_profile="KT" ~ ----- Original Message ----- From: "CHOI Junho" <cjh@xxxxxxxxx> To: <rataplan@xxxxxxxxxx> Cc: <questions@xxxxxxxxxxxxxx> Sent: Thursday, February 20, 2003 10:30 AM Subject: Re: natd error > From: CHOI Junho <cjh@xxxxxxxxxxxxxx> > Subject: Re: natd error > Date: Thu, 20 Feb 2003 10:21:56 +0900 (KST) > > > From: "슬픈대구" <rataplan@xxxxxxxxxx> > > Subject: Re: natd error > > Date: Thu, 20 Feb 2003 00:05:10 +0900 > > > > > root# uname -a > > > FreeBSD localhost 5.0-CURRENT FreeBSD 5.0-CURRENT #7: Tue Feb 18 01:22:01 > > > KST 2003 root@xxxxxxxxx:/usr/obj/usr/src/sys/NAT i386 > > > root# > > > > > > 5.0을 설치하고 소스를 update하고 다시 세상만들기와 커널을 갱신했습니다. > > > > > > * natd.conf > > > --------------- > > > /sbin/natd -p 8668 -n rl0 -redirect_address 192.168.0.1 0.0.0.0 > > > use_sockets > > > same_ports > > > #unregistered_only > > > log_denied > > > > > > --------------- > > > > > > root# ipfw show > > > 00100 7268 735152 allow ip from any to any via lo0 > > > 00200 0 0 deny ip from any to 127.0.0.0/8 > > > 00300 0 0 deny ip from 127.0.0.0/8 to any > > > 65000 104624 33959272 allow ip from any to any > > > 65535 3 144 deny ip from any to any > > > root# > > > --------------- > > > > > > /etc/services는 5.0 설치하고 나니 아무 내용도 들어있지 않더군요... > > > > ipfw에 nat관련 설정이 안들어 있네요. /etc/natd.conf랑 다 없애고 > > /etc/rc.conf에 > > > > natd_enable="YES" > > natd_interface="rl0" > > firewall_enable="YES" > > firewall_type="open" > > > > 이렇게 주고 다시 부팅해서 결과를 살펴 보세요. 그리고 /etc/services가 > > 빈 파일이라니 이상하군요. > > 한가지 더. > > gateway_enable="YES" > > 인지도 확인해야 합니다. 부팅하고 나서는 > > net.inet.ip.forwarding sysctl값이 1이 되어야 합니다. > > -- > CHOI, Junho <cjh@xxxxxxxxx> R&D Center/CTO > Web Data Bank, Inc. <http://www.wdb.co.kr> TEL:82-2-554-9676(130) > CacheNet CDN <http://www.CacheNet.com> FAX:82-2-554-9677 > > -- 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/02/28 23:01:12 $ |
|