From owner-freebsd-questions Thu Mar 28 8: 2: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.mailbox.net.uk (smtp.mailbox.co.uk [195.82.125.32]) by hub.freebsd.org (Postfix) with ESMTP id 2826A37B419 for ; Thu, 28 Mar 2002 08:02:00 -0800 (PST) Received: from [212.18.235.141] (helo=sjmobile) by smtp.mailbox.net.uk with smtp (Exim 3.22 #2) id 16qcLe-0001g4-00; Thu, 28 Mar 2002 16:01:58 +0000 Message-ID: <001e01c1d672$0b46f520$0a00000a@stjames.net> From: "Martyn Hill" To: "Joe & Fhe Barbish" , "FreeBSD-questions" References: Subject: Re: Cable-modem, dynamic IP, NAT and IPFW Date: Thu, 28 Mar 2002 16:03:03 -0000 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 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Joe Thank you - no need for PPP. Where the FreeBSD box is acting as a gateway for a private LAN, I assume I must then implement NATD for NAT, as opposed to PPP NAT? As the external NIC will at some time be re-assigned its IP etc, including its default route, is it the case that dhclient will take care of this, allowing uninterrupted access to the Internet from inside the private LAN? I've noted that some published configurations use dhclient-scripts that do some additional configuration upon a renewed DHCP lease. Will this be necessary? Martyn. ----- Original Message ----- From: "Joe & Fhe Barbish" To: "Martyn Hill" Sent: Wednesday, March 27, 2002 5:54 PM Subject: RE: Cable-modem, dynamic IP, NAT and IPFW > Configuring a cable modem. > You don't need to configure a user ppp.conf file to connect to your cable > provider. However, you do need an IP address in order to use the Internet. > Your cable provider has computers called DHCP (Dynamic Host Configuration > Protocol) servers that will automatically provide your FBSD system with all > the information it needs to communicate with the internet. In order to > communicate with the cable provider's DHCP servers, you must configure your > FBSD Nic card that is cabled to the cable modem to use the DHCP client > software that is built into the core kernel of FBSD. > To active it, Edit /etc/rc.conf and add the following statement. > > ee /etc/rc.conf > ifconfig_xl0="DHCP" Where xl0 is the FBSD Nic card device name for > your nic card. > > That's it, configuration complete. Reboot to activate. > Assuming your cable modem is physically connected to your cable provider > with a functioning circuit and their DHCP server is running. Toward the end > of your boot messages, you should notice one or more DHCPREQUESTS messages > followed by a DHCPACK message and DHCP information messages, which should > include your IP address, default gateway address, DNS server address, and > lease period, displayed on the root console screen. > > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Martyn Hill > Sent: Wednesday, March 27, 2002 9:32 AM > To: FreeBSD-questions > Subject: Cable-modem, dynamic IP, NAT and IPFW > > Hi > > Can anyone cast any light on the following: > > I have set up a test-bench installation at home of FreeBSD 4.5, cable-modem > (with Blueyonder) with dynamic IP, UserPPP (PPPoE) > running NAT, IPFW, BIND, DHCP, Exim, Samba and the Squid proxy software. The > purpose behind the install is to avoid long hours > spent at school trying out new configurations on an otherwise working live > system (static IP, but otherwise similar.) > > Having read (and tried to digest) the various HowTos and mailing list > postings re. configuring for dynamic IP, I'm getting no > joy connecting through the cable modem. The NIC MAC address has been > registered with BY. > > My question: Can you guide me to a HowTo that details a comparable setup to > the BY setup above, or offer any pointers - I'm sure > that I've missed something obvious along the way and have gotten lost in the > detail. > > In particular, configuring IPFW for dynamic IP (I have a working ruleset for > fixed IP); which of NATD or UserPPP NAT is > preferable (or easier) to configure/use and how best to configure the > external NIC using the ISC DHCLIENT software. > > Rather than forward all my current configuration files, please could you > advise which are relevant and I'll provide those. > > Thanks in advance. > > Martyn Hill > ICT Teacher and IT Co-ordinator > St James Independent School > London > > > 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