From owner-freebsd-questions Sun Feb 22 21:52:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA23015 for freebsd-questions-outgoing; Sun, 22 Feb 1998 21:52:29 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from spades.Relationships.com (spades.relationships.com [206.24.115.169]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA23009 for ; Sun, 22 Feb 1998 21:52:24 -0800 (PST) (envelope-from markc@Relationships.com) Received: from phineas (1Cust7.max43.san-francisco2.ca.ms.uu.net [153.34.229.7]) by spades.Relationships.com (8.8.5/8.8.5) with SMTP id VAA11164 for ; Sun, 22 Feb 1998 21:50:37 -0500 Message-ID: <000601bd401f$1fc3c750$c800a8c0@phineas> From: "Mark Castillo" To: Subject: Re: Networking situation.. Date: Sun, 22 Feb 1998 21:51:43 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Yes, this would do the trick. I recently brought up a box to dialup an ISP (with one IP address) for temporary Internet access for about 10 client pcs. Here is what I did: 1) setup FBSD to connect to your ISP (via PPP, or whatever). I setup user PPP on tunnel device tun0 2) Install the options for Firewall. Modify /etc/rc.conf to enable and specify type "OPEN" for firewall. You must compile a custom kernel also. I believe you add kernel options "IPFIREWALL" and "IPDIVERT". Make and install new kernel. 3) Run "natd". See man pages for more detailed setup. You will need to modify /etc/services. Also, have this run at startup via /etc/rc.local. 4) Setup client PCs to point to FBSD box as gateway, and ISP's DNS servers. Here are my config files (as far as I can remember): /etc/firewall: /sbin/ipfw -f flush /sbin/ipfw add divert natd all from any to any via tun0 (or whatever your device connected to the net) /sbin/ipfw add pass all from any to any Appended to /etc/rc.local: natd -use_sockets -same_ports -dynamic -interface tun0 Hope this gets you started. -- Mark C. -----Original Message----- From: Gaylord Van Brocklin To: freebsd-questions@FreeBSD.ORG Date: Sunday, February 22, 1998 8:13 PM Subject: Networking situation.. >Here is the situation, a cable modem coming in to a hub then going out to >two machines, one a BSD system which stays up 24/7, another a Windows >machine which will be powered off when not in use, the problem is that the >cable company only distributes one static IP per customer. How would I set >something like this up with BSD and Windows? I would want the BSD system to >be the gateway because it will be on 24/7. But how would i setup the >windows system? If BSD capable of IP masquerading would this be the >solution? Any help at all would be GREATLY appriciated. thanks! >G >gvb@tns.net > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message