From owner-freebsd-questions Tue Apr 23 5:50:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by hub.freebsd.org (Postfix) with ESMTP id D88E237B419 for ; Tue, 23 Apr 2002 05:49:52 -0700 (PDT) Received: from SAGEONE (sageone [192.168.0.5]) by sage-one.net (8.11.6/8.11.6) with SMTP id g3NCnof10268; Tue, 23 Apr 2002 07:49:51 -0500 (CDT) (envelope-from jack@sage-one.net) Message-Id: <3.0.5.32.20020423074949.011fa098@mail.sage-one.net> X-Sender: jack@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Tue, 23 Apr 2002 07:49:49 -0500 To: Nick Rogness From: "Jack L. Stone" Subject: Re: Routed daemon Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: References: <3.0.5.32.20020422221405.011fa098@mail.sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 12:10 AM 4.23.2002 -0500, Nick Rogness wrote: >On Mon, 22 Apr 2002, Jack L. Stone wrote: > >> Running FBSD 4.5-release > >> I'm hitting a brick wall in getting the gateway interface alias to >> forward all incoming packets from the public interface to a web server >> on another server on the LAN. The packets are coming in to the gateway >> server and supposed to be forwarded according to the address redirect. >> The netstat -r shows that the routing tables look correct, so am >> stumped. >> >> In looking for a solution, I wondered about the routed daemon which >> comes with the base system. I had read that it runs by default, but a >> ps -auxw | grep routed does not show the routed at all. > > > It only runs if you enable it via /etc/rc.conf > >> >> Also, see that the rc.conf can be configured to run routed at boot, >> that is, if it's not running silently somewhere...and if I need it. >> From reading routed(8), it sounds like the a missing ingredient. >> >> This really must a stupid question, but could the the routed daemon, >> or lack of, be my problem of forwarding the packets properly...????? >> Really a "green" question, but I'm still learning this stuff.... so, >> does the routed daemon need to be launched at bootup...???? > > You need to forward packets between interfaces which can be > accomlished by setting: gateway_enable="YES" in /etc/rc.conf > and reboot. > > You can check the status of it by: > > # sysctl net.inet.ip.forwarding > net.inet.ip.forwarding: 1 > > It should say 1 not 0. > Hi, Nick: It indeed says "1"...... but, I do not have the routed daemon set in rc.conf and wondered if this was the problem. Also, server #2 is set to look to server #1 as the defaultrouter, but I do not have gateway enabled on server #2... should it be...?? ...and should the routed daemon be enabled to solve this barrier problem....?? I'm just missing some simple setting and looking for anything.... .... our website: http://www.sage-one.net/ Best regards, Jack L. Stone Server Admin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message