From owner-freebsd-questions@FreeBSD.ORG Sun Jul 15 02:48:51 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ADE0816A413 for ; Sun, 15 Jul 2007 02:48:51 +0000 (UTC) (envelope-from modulok@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6C90713C461 for ; Sun, 15 Jul 2007 02:48:51 +0000 (UTC) (envelope-from modulok@gmail.com) Received: by py-out-1112.google.com with SMTP id a73so1712560pye for ; Sat, 14 Jul 2007 19:48:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aiS2B6v6+OkO8ERCBKysLnhIxJc9+MYKPP64pza5PWXpg4Jvx7Bb/TteMqrZTfSZnhZ8RYg6QqPBCc/Qe2LBnQ9FvtXe9duih17/RZFI3KmpdQhlxB5bq3mNRxBBDrOFEBlBk/8fKc9YC7E6SzYiTIFu3w3k6dysGoD8MaYE/8M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AkUUqhIcWTnwX27n71H94VrIdPkmGs+aJTvBu4sVMmlSab1/iKK+70iS56GOUdlKqLMDjLFcyflVvBbg1u/fsV2CNqB2iif0ETdoGAbOG/emvHZN3G/s+pCkj+gNj8tP9DB+uHv8sSM3FNOMUvwl99vz/PBgmZW7LGvw9j/bEoY= Received: by 10.141.51.15 with SMTP id d15mr840502rvk.1184467729715; Sat, 14 Jul 2007 19:48:49 -0700 (PDT) Received: by 10.140.207.2 with HTTP; Sat, 14 Jul 2007 19:48:49 -0700 (PDT) Message-ID: <64c038660707141948l6f577355hd1473eacfacbd542@mail.gmail.com> Date: Sat, 14 Jul 2007 20:48:49 -0600 From: Modulok To: "Jonathan Horne" In-Reply-To: <200707142026.50542.freebsd@dfwlp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200707142026.50542.freebsd@dfwlp.com> Cc: freebsd-questions@freebsd.org Subject: Re: quick router question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2007 02:48:51 -0000 On 7/14/07, Jonathan Horne wrote: > i want to build a quick a dirty router for a dev environment. this freebsd > is > has 3 interfaces, and ill want anything to be able to access anything, no > firewalling. > > back in the day, i would accomplish the same thing in linux by > setting /proc/sys/net/ipv4/ip_forward to 1. is the "be a network gateway" > from installation the only thing i need to set to allow this to happen? > > thanks, > -- > Jonathan Horne > http://dfwlpiki.dfwlp.org > freebsd@dfwlp.com > _______________________________________________ > 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" You can set the sysctl variable like so: sysctl net.inet.ip.forwarding=1; You can make this change perist across a reboot by appending the following to /etc/rc.conf: gateway_enable="YES" -Modulok-