Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 2002 00:10:34 -0500 (CDT)
From:      Nick Rogness <nick@rogness.net>
To:        "Jack L. Stone" <jack@sage-one.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Routed daemon
Message-ID:  <Pine.BSF.4.21.0204230006020.71036-100000@cody.jharris.com>
In-Reply-To: <3.0.5.32.20020422221405.011fa098@mail.sage-one.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <nick@rogness.net>
 - 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0204230006020.71036-100000>