From owner-freebsd-newbies Sat Feb 24 19:20:10 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from imo-r15.mx.aol.com (imo-r15.mx.aol.com [152.163.225.69]) by hub.freebsd.org (Postfix) with ESMTP id A4E2737B4EC for ; Sat, 24 Feb 2001 19:20:02 -0800 (PST) (envelope-from Isomer1@aol.com) Received: from Isomer1@aol.com by imo-r15.mx.aol.com (mail_out_v29.5.) id n.b5.78f869a (3971) for ; Sat, 24 Feb 2001 22:19:54 -0500 (EST) From: Isomer1@aol.com Message-ID: Date: Sat, 24 Feb 2001 22:19:53 EST Subject: cable modem gateway To: freebsd-newbies@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="part1_b5.78f869a.27c9d3d9_boundary" Content-Disposition: Inline X-Mailer: 6.0 sub 352 Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --part1_b5.78f869a.27c9d3d9_boundary Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I think I may go mad. I installed 4.2 this morning via ftp, the install went fine. I'm attempting to set up this freebsd machine as a gateway between my cable modem and internal network. I have tried the FreeBSD 'Handbook' but the section on networking is useless. I have managed to piece together some idea of what needs to be done from freebsddiary.org and newsgroup tidbits. I have NOT rebuilt the kernel, I'm assuming since the install asks "Enable Gateway?" that the default 4.2 installation must include the IPFIREWALL and IPDIVERT options already enabled. The machines can reach one another, the cable modem lights up when the internal machines attempt to talk out, but the outside worlds response does not get back to the internal machines. in /etc/rc.conf I added: firewall_enable = yes in /etc/rc.firewall I added: /sbin/ipfw -f flush /sbin/ipfw add divert natd all from any to any via de0 /sbin/ipfw add pass all from any to any also done: natd -interface de0 any assistance would be appreciated -Ralph N. Isomer1@aol.com --part1_b5.78f869a.27c9d3d9_boundary Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: 7bit I think I may go mad.
I installed 4.2 this morning via ftp, the install went fine.
I'm attempting to set up this freebsd machine as a gateway
between my cable modem and internal network.

I have tried the FreeBSD 'Handbook' but the section on
networking is useless.  I have managed to piece together
some idea of what needs to be done from freebsddiary.org
and newsgroup tidbits.

I have NOT rebuilt the kernel, I'm assuming since the install
asks "Enable Gateway?" that the default 4.2 installation must
include the IPFIREWALL and IPDIVERT options already enabled.
The machines can reach one another, the cable modem lights
up when the internal machines attempt to talk out, but the outside
worlds response does not get back to the internal machines.

in /etc/rc.conf I added:
      firewall_enable = yes
in /etc/rc.firewall I added:
      /sbin/ipfw -f flush
      /sbin/ipfw add divert natd all from any to any via de0
      /sbin/ipfw add pass all from any to any
also done:
      natd -interface de0

any assistance would be appreciated
-Ralph N.
Isomer1@aol.com
--part1_b5.78f869a.27c9d3d9_boundary-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message