From owner-freebsd-questions Fri Jan 14 3:34:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from enterprise.sanyusan.se (enterprise.sanyusan.se [212.209.55.83]) by hub.freebsd.org (Postfix) with ESMTP id 52930151D9 for ; Fri, 14 Jan 2000 03:34:14 -0800 (PST) (envelope-from anders@enterprise.sanyusan.se) Received: (from anders@localhost) by enterprise.sanyusan.se (8.9.3/8.9.3) id MAA01421 for freebsd-questions@freebsd.org; Fri, 14 Jan 2000 12:34:11 +0100 (CET) (envelope-from anders) Date: Fri, 14 Jan 2000 12:34:11 +0100 From: Anders Andersson To: freebsd-questions@freebsd.org Subject: gateway problems Message-ID: <20000114123411.A1370@enterprise.sanyusan.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am trying to set up a gateway box for our LAN. First we have a Class F network, 212.209.55.80/28. Second, I want to use a 192.168. class C net for our internal LAN. I have a old box with two NIC's (ep0 and ep1) running FreeBSD 4.0-CURRENT (in the meantime for 4.0-RELEASE). The gateway box should run natd I guess so the internal LAN (192.168.) could connect to the internet. So far I have set it up like this: ep0 (public interface, connects to the internet) ep1 (internal interface, connects to our internal LAN) some things from /etc/rc.conf ifconfig_ep0="inet 212.209.55.82 netmask 255.255.255.240" ifconfig_ep1="inet 192.168.100.10 netmask 255.255.255.0" defaultrouter="212.209.55.81" (our cisco router that handles the internet connection) gateway_enable="YES" # firewall firewall_enable="YES" firewall_type="open" # natd natd_enable="YES" natd_interface="ep0" a kernel compiled with options IPFIREWALL options IPDIVERT I guess I need to set up some static routing tables, but I have no clue on that yet. I am searhing for maybe some howto or faq about this subject. Cheers, Anders -- Anders Andersson anders@sanyusan.se Sanyusan International AB http://www.sanyusan.se/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message