From owner-freebsd-newbies@FreeBSD.ORG Wed Dec 10 06:24:28 2003 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EA8E16A4CE for ; Wed, 10 Dec 2003 06:24:28 -0800 (PST) Received: from office.adept.co.za (office.adept.co.za [196.44.32.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A1F343D29 for ; Wed, 10 Dec 2003 06:24:27 -0800 (PST) (envelope-from ondrugs@ananzi.co.za) Received: from ananzi.co.za (unknown [192.168.1.11]) by office.adept.co.za (Postfix) with ESMTP id 5AFDC11EFEB for ; Wed, 10 Dec 2003 16:24:25 +0200 (SAST) Message-ID: <3FD72C98.3070005@ananzi.co.za> Date: Wed, 10 Dec 2003 16:24:24 +0200 From: Andre Grove User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-newbies@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: configuring a leased line server X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2003 14:24:28 -0000 Hello there How do would I go about configuring FreeBSD 5.1 to be a leased line server? Basically a mail server and gateway. I can get a null modem to connect and obtain an IP address. But I am only able to access the machine from outside if there is a "default_router" for my network. Here is my rc.conf file: #defaultrouter="192.168.1.4" hostname="bsd.adept.co.za" ifconfig_rl0="inet 192.168.1.145 netmask 255.255.255.0" inetd_enable="NO" kern_securelevel_enable="NO" linux_enable="YES" saver="daemon" sendmail_enable="YES" sshd_enable="YES" network_interfaces="rl0 ppp0" router_enable="NO" gateway_enable="YES" firewall_enable="YES" firewall_type="OPEN" natd_enable="YES" natd_interface="ppp0" natd_flags="" I cannot ping any external addresses from the box. I have already compiled my kernel for IP forwarding as stated in the handbook. The other thing, is that my connect script doesn't run at startup, even though i have put it in /usr/local/etc/rc.d/ . But that is minor for now. What have I done incorrectly and what else do i still need to do? Thanks Andre