From owner-freebsd-questions@FreeBSD.ORG Mon Jul 5 10:42:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7EF416A4CE for ; Mon, 5 Jul 2004 10:42:33 +0000 (GMT) Received: from ALPHA8.ITS.MONASH.EDU.AU (alpha8.its.monash.edu.au [130.194.1.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1547143D49 for ; Mon, 5 Jul 2004 10:42:33 +0000 (GMT) (envelope-from bawig1@student.monash.edu) Received: from localhost ([130.194.13.87]) by vaxh.its.monash.edu.au (PMDF V5.2-31 #39306) with ESMTP id <01LC467GYD728X7GIY@vaxh.its.monash.edu.au> for freebsd-questions@freebsd.org; Mon, 5 Jul 2004 20:40:59 +1000 Received: from curly.its.monash.edu.au (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id BB901AB542 for ; Mon, 05 Jul 2004 20:40:58 +1000 (EST) Received: from localhost.localdomaincurly.its.monash.edu.au ; Mon, 05 Jul 2004 20:40:58 +1000 (EST) Date: Mon, 05 Jul 2004 10:40:58 +0000 From: Brett Wiggins To: freebsd-questions@freebsd.org Message-id: <220.253.52.253.1089022810.6997@my.monash.edu.au> MIME-version: 1.0 X-Mailer: my.monash Portal Mail Reader Content-type: text/plain Content-disposition: inline Content-transfer-encoding: 7BIT Subject: internet gateway X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2004 10:42:34 -0000 Hi, I am having some problems setting up an internet gateway for my home network. My gateway machine has two network cards, one connected to my ADSL modem and the other to a switch and my internal network. My gateway machine (FreeBSD) can connect to the internet and it can ping machines on my local network. Machines on my local network run windows. ISP | | ADSL MODEM | | FREEBSD |----- MACHINE A MACHINE | | | |-------SWITCH--|----- MACHINE B | | |----- MACHINE C So Far I have recompiled my kernel with the following options added; options IPFIREWALL options IPDIVERT options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=50 options TCP_DROP_SYNFIN I then edited /etc/rc.conf gateway_enable="YES" firewall_enable="YES" firewall_script="/etc/rc.firewall" firewall_type="OPEN" firewall_quiet="NO" ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" ppp_profile="netspace" ifconfig_rl0="inet 10.0.0.1" Then I edited ppp.conf with the following; nat enable yes nat log yes nat same_ports yes nat unregistered_only yes enable dns That is where I got up to now i'm stuck and don't know what to do next. Any help with this would be great. Brett