From owner-freebsd-questions@FreeBSD.ORG Wed Jun 7 14:37:47 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D62916D1C2 for ; Wed, 7 Jun 2006 12:47:48 +0000 (UTC) (envelope-from voodoo@yukon.com.ua) Received: from core.yukon.com.ua (core.yukon.com.ua [213.133.161.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90AFC43D48 for ; Wed, 7 Jun 2006 12:47:47 +0000 (GMT) (envelope-from voodoo@yukon.com.ua) Received: from localhost (localhost [127.0.0.1]) by core.yukon.com.ua (Postfix) with ESMTP id 9D85340B0D6 for ; Wed, 7 Jun 2006 15:47:45 +0300 (EEST) Received: from core.yukon.com.ua ([127.0.0.1]) by localhost (core.yukon.com.ua [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 77831-03-67 for ; Wed, 7 Jun 2006 15:47:45 +0300 (EEST) Received: from voodoo.yukon (ucon.kiev.farlep.net [62.221.47.154]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by core.yukon.com.ua (Postfix) with ESMTP id 62BB840B0D5 for ; Wed, 7 Jun 2006 15:47:45 +0300 (EEST) Date: Wed, 7 Jun 2006 15:47:46 +0300 From: voodoo@yukon.com.ua X-Mailer: The Bat! (v3.5) Professional Organization: Yukon X-Priority: 3 (Normal) Message-ID: <392168323.20060607154746@yukon.com.ua> To: freebsd-questions@FreeBSD.ORG In-Reply-To: <4486ABA9.9080902@ee.duth.gr> References: <5.2.0.9.0.20060607120734.00a80700@127.0.0.1> <4486ABA9.9080902@ee.duth.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at core.yukon.com.ua Cc: Subject: Re[2]: natd not starting on boot-up X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: voodoo@yukon.com.ua List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 14:38:02 -0000 put this script into /usr/loca/etc/rc.d/ # cat /usr/local/etc/rc.d/natd.sh #!/bin/sh /sbin/natd -n rl1 > Roger Merritt wrote: >> I'm thoroughly puzzled. Over the weekend I transferred my FreeBSD >> system to a new hard drive. Through laziness I didn't follow the >> instructions and had to make a completely new install. Everything now >> seems to be working the way it should, Apache, MySQL, PHP, syslog, >> Samba -- except natd. Everything starts on boot-up as it should -- >> except natd. I can start it manually from the command line after >> booting up and logging in and it works fine, but I can't tell what's >> going on that it's failing to start. >> >> My /etc/rc.conf contains the following: >> >> # This file now contains just the overrides from /etc/defaults/rc.conf. >> defaultrouter="203.151.134.1" >> gateway_enable="YES" >> hostname="poppy.international.stjohn.ac.th" >> ifconfig_ed0="inet 10.3.16.125 netmask 255.255.255.0" >> ifconfig_ed1="inet 203.151.134.104 netmask 255.255.255.0" >> router_enable="YES" >> firewall_enable="YES" >> firewall_type="OPEN" >> firewall_quiet="YES" >> natd_enable="YES" >> natd_interface="ed1" >> ipv6_enable="YES" >> linux_enable="YES" >> moused_enable="YES" >> moused_port="/dev/sysmouse" >> moused_type="auto" >> screen="daemon" >> nfs_client_enable="YES" >> sshd_enable="YES" >> >> What can I do to get some indication of where the problem is? >> > Try to comment the line natd_enable="YES" and then add > a new line at the end of rc.conf: > /etc/rc.d/natd start > if this doesn't work, try to put > natd_flags="" > in your rc.conf and plesase check your ipfw rule for nat > it should be something like this: > (with natd_flags="") > ipfw -q add divert natd all from any to any via your_public_interface > Good luck!! > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" -- Skoryk Peter 80672343019 System Administrator at Yukon Mobile icq:291130 VOO-UANIC mailto:voodoo@yukon.com.ua