From owner-freebsd-questions Mon Apr 22 21:59:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 69F7237B405 for ; Mon, 22 Apr 2002 21:59:28 -0700 (PDT) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id g3N5AYR71283; Tue, 23 Apr 2002 00:10:34 -0500 (CDT) (envelope-from nick@rogness.net) Date: Tue, 23 Apr 2002 00:10:34 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com To: "Jack L. Stone" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Routed daemon In-Reply-To: <3.0.5.32.20020422221405.011fa098@mail.sage-one.net> Message-ID: 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 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. Nick Rogness - Don't mind me...I'm just sniffing your packets To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message