Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2002 21:07:39 -0000
From:      "G D McKee" <freebsd@gdmckee.com>
To:        "Martyn Hill" <sysadmin@st-james-snrgirls.w-london.sch.uk>, "Mike Dewhirst" <Dewhirst.M@UCLES.org.uk>, "FreeBSD-questions" <freebsd-questions@freebsd.org>
Subject:   Re: Cable-modem, dynamic IP, NAT and IPFW
Message-ID:  <021101c1d5d3$6d6b9f70$c800a8c0@p1000>
References:  <0B0368CED76DD4118E1200D0B73E9B5D041E9F8D@MAIL1> <000a01c1d5b0$f282bfe0$0a00000a@stjames.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
RE: Cable-modem, dynamic IP, NAT and IPFWHi

I had the bright idea of putting a 10 base-t and a 100baset card in my box - the 10 for the internet and the 100 for the local LAN - never quite got around to switching the FreeBSD box of to put two 100 cards in!!  FreeBSD just keeps on going - only reboot occasionally after a cvsup and a build world!!

To reset the modem - just un plug it - you need to do leave it off for approx 30sec to fully reboot it.

If you hard code an ip address into the external lan card of 192.168.100.2 - can you use a web browser to see 192.168.100.1?  If I have got the address correct - fairly sure - you should get a web page up - this will prove that the card is taking to the cable mode.

Do you get any output in /var/log/message log file? - You haven't got any daft firewall rules in there to deny all traffic - which in the default in FreeBSD's eyes

Trust this helps?

Gordon
  ----- Original Message ----- 
  From: Martyn Hill 
  To: Mike Dewhirst ; FreeBSD-questions 
  Sent: Wednesday, March 27, 2002 5:00 PM
  Subject: Re: Cable-modem, dynamic IP, NAT and IPFW


  Mike

  Thanks. When you say 'reset' the modem, what did that entail for you? You suggest that a power-cycle won't do the job on its own.

  I'll post my rc.conf file when I return home.

  Martyn.
    ----- Original Message ----- 
    From: Mike Dewhirst 
    To: 'Martyn Hill' 
    Cc: 'questions@freebsd.org' 
    Sent: Wednesday, March 27, 2002 4:42 PM
    Subject: RE: Cable-modem, dynamic IP, NAT and IPFW


    I don't think that would make a difference - I have a 10Mb card working with modem no problem. When I switched over from Win to Unix, though, I had t reset the modem (as opposed to off/on).

    Could be wrong, of course... 

    Mike 



    > -----Original Message----- 
    > From: Martyn Hill [mailto:sysadmin@st-james-snrgirls.w-london.sch.uk] 
    > Sent: 27 March 2002 15:12 
    > To: G D McKee; FreeBSD-questions 
    > Subject: Re: Cable-modem, dynamic IP, NAT and IPFW 
    > 
    > 
    > Gordon 
    > 
    > Thanks for your reply. I'm using an Intel Pro/10 10Mbs NIC - 
    > perhaps going to 10/100 is the solution. When BY came to install 
    > the cable-modem, they installed a 10/100 NIC in a Windows box 
    > which I thought excessive bearing in mind the 512Kbs cable modem 
    > speed. 
    > 
    > Martyn 
    > 
    > 
    > ----- Original Message ----- 
    > From: "G D McKee" <freebsd@gdmckee.com> 
    > To: "Martyn Hill" <sysadmin@st-james-snrgirls.w-london.sch.uk> 
    > Sent: Wednesday, March 27, 2002 2:45 PM 
    > Subject: Re: Cable-modem, dynamic IP, NAT and IPFW 
    > 
    > 
    > > Hi 
    > > 
    > > What Ethernet card are you using - I have 10BaseT 3com 
    > 3c5x9 cards and they 
    > > would not connect at all to blueyonder - hooked up a 3com 
    > 10/100 card and 
    > > all was fine. 
    > > 
    > > 
    > > Gordon 
    > > 
    > > ----- Original Message ----- 
    > > From: "Martyn Hill" <sysadmin@st-james-snrgirls.w-london.sch.uk> 
    > > To: "FreeBSD-questions" <freebsd-questions@freebsd.org> 
    > > Sent: Wednesday, March 27, 2002 2:31 PM 
    > > 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 
    > 



    =**********************************************************

    If you are not the intended recipient, employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination or copying of this communication and its attachments is strictly prohibited.

    If you have received this communication and its attachments in error, please return the original message and attachments to the sender using the reply facility on e-mail.

    Internet communications are not secure and therefore the UCLES Group does not accept legal responsibility for the contents of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of the UCLES Group unless otherwise specifically stated.

    This footnote also confirms that this email message has been swept by
    MIMEsweeper for the presence of computer viruses although this does not guarantee that this email is virus free.

    **********************************************************=


[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: Cable-modem, dynamic IP, NAT and IPFW</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2713.1100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I had the bright idea of putting a 10 base-t and a 
100baset card in my box - the 10 for the internet and the 100 for the local LAN 
- never quite got around to switching the FreeBSD box of to put two 100 cards 
in!!&nbsp; FreeBSD just keeps on going - only reboot occasionally after a cvsup 
and a build world!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>To reset the modem - just un plug it - you need to 
do leave it off for approx 30sec to fully reboot it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If you hard code an ip address into the external 
lan card of 192.168.100.2 - can you use a web browser to see 
192.168.100.1?&nbsp; If I have got the address correct - fairly sure - you 
should get a web page up - this will prove that the card is taking to the cable 
mode.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Do you get any output in /var/log/message log file? 
- You haven't got any daft firewall rules in there to deny all traffic - which 
in the default in FreeBSD's eyes</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Trust this helps?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Gordon</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=sysadmin@st-james-snrgirls.w-london.sch.uk 
  href="mailto:sysadmin@st-james-snrgirls.w-london.sch.uk">Martyn Hill</A> 
</DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=Dewhirst.M@UCLES.org.uk 
  href="mailto:Dewhirst.M@UCLES.org.uk">Mike Dewhirst</A> ; <A 
  title=freebsd-questions@freebsd.org 
  href="mailto:freebsd-questions@freebsd.org">FreeBSD-questions</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 27, 2002 5:00 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: Cable-modem, dynamic IP, NAT 
  and IPFW</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>Mike</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thanks. When you say 'reset' the modem, what did 
  that entail for you? You suggest that a power-cycle won't do the job on its 
  own.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I'll post my rc.conf file when I return 
  home.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Martyn.</FONT></DIV>
  <BLOCKQUOTE 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=Dewhirst.M@UCLES.org.uk href="mailto:Dewhirst.M@UCLES.org.uk">Mike 
    Dewhirst</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A 
    title=sysadmin@st-james-snrgirls.w-london.sch.uk 
    href="mailto:sysadmin@st-james-snrgirls.w-london.sch.uk">'Martyn Hill'</A> 
    </DIV>
    <DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=questions@freebsd.org 
    href="mailto:'questions@freebsd.org'">'questions@freebsd.org'</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 27, 2002 4:42 
    PM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: Cable-modem, dynamic IP, 
    NAT and IPFW</DIV>
    <DIV><BR></DIV>
    <P><FONT size=2>I don't think that would make a difference - I have a 10Mb 
    card working with modem no problem. When I switched over from Win to Unix, 
    though, I had t reset the modem (as opposed to off/on).</FONT></P>
    <P><FONT size=2>Could be wrong, of course...</FONT> </P>
    <P><FONT size=2>Mike</FONT> </P><BR>
    <P><FONT size=2>&gt; -----Original Message-----</FONT> <BR><FONT size=2>&gt; 
    From: Martyn Hill [<A 
    href="mailto:sysadmin@st-james-snrgirls.w-london.sch.uk">mailto:sysadmin@st-james-snrgirls.w-london.sch.uk</A>]</FONT> 
    <BR><FONT size=2>&gt; Sent: 27 March 2002 15:12</FONT> <BR><FONT size=2>&gt; 
    To: G D McKee; FreeBSD-questions</FONT> <BR><FONT size=2>&gt; Subject: Re: 
    Cable-modem, dynamic IP, NAT and IPFW</FONT> <BR><FONT size=2>&gt; 
    </FONT><BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; Gordon</FONT> 
    <BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; Thanks for your reply. 
    I'm using an Intel Pro/10 10Mbs NIC - </FONT><BR><FONT size=2>&gt; perhaps 
    going to 10/100 is the solution. When BY came to install</FONT> <BR><FONT 
    size=2>&gt; the cable-modem, they installed a 10/100 NIC in a Windows box 
    </FONT><BR><FONT size=2>&gt; which I thought excessive bearing in mind the 
    512Kbs cable modem</FONT> <BR><FONT size=2>&gt; speed.</FONT> <BR><FONT 
    size=2>&gt; </FONT><BR><FONT size=2>&gt; Martyn</FONT> <BR><FONT size=2>&gt; 
    </FONT><BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; ----- Original 
    Message -----</FONT> <BR><FONT size=2>&gt; From: "G D McKee" 
    &lt;freebsd@gdmckee.com&gt;</FONT> <BR><FONT size=2>&gt; To: "Martyn Hill" 
    &lt;sysadmin@st-james-snrgirls.w-london.sch.uk&gt;</FONT> <BR><FONT 
    size=2>&gt; Sent: Wednesday, March 27, 2002 2:45 PM</FONT> <BR><FONT 
    size=2>&gt; Subject: Re: Cable-modem, dynamic IP, NAT and IPFW</FONT> 
    <BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; </FONT><BR><FONT 
    size=2>&gt; &gt; Hi</FONT> <BR><FONT size=2>&gt; &gt;</FONT> <BR><FONT 
    size=2>&gt; &gt; What Ethernet card are you using - I have 10BaseT 3com 
    </FONT><BR><FONT size=2>&gt; 3c5x9 cards and they</FONT> <BR><FONT 
    size=2>&gt; &gt; would not connect at all to blueyonder - hooked up a 3com 
    </FONT><BR><FONT size=2>&gt; 10/100 card and</FONT> <BR><FONT size=2>&gt; 
    &gt; all was fine.</FONT> <BR><FONT size=2>&gt; &gt;</FONT> <BR><FONT 
    size=2>&gt; &gt;</FONT> <BR><FONT size=2>&gt; &gt; Gordon</FONT> <BR><FONT 
    size=2>&gt; &gt;</FONT> <BR><FONT size=2>&gt; &gt; ----- Original Message 
    -----</FONT> <BR><FONT size=2>&gt; &gt; From: "Martyn Hill" 
    &lt;sysadmin@st-james-snrgirls.w-london.sch.uk&gt;</FONT> <BR><FONT 
    size=2>&gt; &gt; To: "FreeBSD-questions" 
    &lt;freebsd-questions@freebsd.org&gt;</FONT> <BR><FONT size=2>&gt; &gt; 
    Sent: Wednesday, March 27, 2002 2:31 PM</FONT> <BR><FONT size=2>&gt; &gt; 
    Subject: Cable-modem, dynamic IP, NAT and IPFW</FONT> <BR><FONT size=2>&gt; 
    &gt;</FONT> <BR><FONT size=2>&gt; &gt;</FONT> <BR><FONT size=2>&gt; &gt; 
    &gt; Hi</FONT> <BR><FONT size=2>&gt; &gt; &gt;</FONT> <BR><FONT size=2>&gt; 
    &gt; &gt; Can anyone cast any light on the following:</FONT> <BR><FONT 
    size=2>&gt; &gt; &gt;</FONT> <BR><FONT size=2>&gt; &gt; &gt; I have set up a 
    test-bench installation at home of FreeBSD 4.5,</FONT> <BR><FONT size=2>&gt; 
    &gt; cable-modem (with Blueyonder) with dynamic IP, UserPPP (PPPoE)</FONT> 
    <BR><FONT size=2>&gt; &gt; &gt; running NAT, IPFW, BIND, DHCP, Exim, Samba 
    and the Squid </FONT><BR><FONT size=2>&gt; proxy software.</FONT> <BR><FONT 
    size=2>&gt; &gt; The purpose behind the install is to avoid long 
    hours</FONT> <BR><FONT size=2>&gt; &gt; &gt; spent at school trying out new 
    configurations on an </FONT><BR><FONT size=2>&gt; otherwise working 
    live</FONT> <BR><FONT size=2>&gt; &gt; system (static IP, but otherwise 
    similar.)</FONT> <BR><FONT size=2>&gt; &gt; &gt;</FONT> <BR><FONT 
    size=2>&gt; &gt; &gt; Having read (and tried to digest) the various HowTos 
    and </FONT><BR><FONT size=2>&gt; mailing list</FONT> <BR><FONT size=2>&gt; 
    &gt; postings re. configuring for dynamic IP, I'm getting no</FONT> 
    <BR><FONT size=2>&gt; &gt; &gt; joy connecting through the cable modem. The 
    NIC MAC </FONT><BR><FONT size=2>&gt; address has been</FONT> <BR><FONT 
    size=2>&gt; &gt; registered with BY.</FONT> <BR><FONT size=2>&gt; &gt; 
    &gt;</FONT> <BR><FONT size=2>&gt; &gt; &gt; My question: Can you guide me to 
    a HowTo that details a </FONT><BR><FONT size=2>&gt; comparable setup</FONT> 
    <BR><FONT size=2>&gt; &gt; to the BY setup above, or offer any pointers - 
    I'm sure</FONT> <BR><FONT size=2>&gt; &gt; &gt; that I've missed something 
    obvious along the way and have </FONT><BR><FONT size=2>&gt; gotten lost 
    in</FONT> <BR><FONT size=2>&gt; &gt; the detail.</FONT> <BR><FONT 
    size=2>&gt; &gt; &gt;</FONT> <BR><FONT size=2>&gt; &gt; &gt; In particular, 
    configuring IPFW for dynamic IP (I have a </FONT><BR><FONT size=2>&gt; 
    working ruleset</FONT> <BR><FONT size=2>&gt; &gt; for fixed IP); which of 
    NATD or UserPPP NAT is</FONT> <BR><FONT size=2>&gt; &gt; &gt; preferable (or 
    easier) to configure/use and how best to </FONT><BR><FONT size=2>&gt; 
    configure the</FONT> <BR><FONT size=2>&gt; &gt; external NIC using the ISC 
    DHCLIENT software.</FONT> <BR><FONT size=2>&gt; &gt; &gt;</FONT> <BR><FONT 
    size=2>&gt; &gt; &gt; Rather than forward all my current configuration 
    files, </FONT><BR><FONT size=2>&gt; please could you</FONT> <BR><FONT 
    size=2>&gt; &gt; advise which are relevant and I'll provide those.</FONT> 
    <BR><FONT size=2>&gt; &gt; &gt;</FONT> <BR><FONT size=2>&gt; &gt; &gt; 
    Thanks in advance.</FONT> <BR><FONT size=2>&gt; &gt; &gt;</FONT> <BR><FONT 
    size=2>&gt; &gt; &gt; Martyn Hill</FONT> <BR><FONT size=2>&gt; &gt; &gt; ICT 
    Teacher and IT Co-ordinator</FONT> <BR><FONT size=2>&gt; &gt; &gt; St James 
    Independent School</FONT> <BR><FONT size=2>&gt; &gt; &gt; London</FONT> 
    <BR><FONT size=2>&gt; &gt; &gt;</FONT> <BR><FONT size=2>&gt; &gt; 
    &gt;</FONT> <BR><FONT size=2>&gt; &gt; &gt; To Unsubscribe: send mail to 
    majordomo@FreeBSD.org</FONT> <BR><FONT size=2>&gt; &gt; &gt; with 
    "unsubscribe freebsd-questions" in the body of the message</FONT> <BR><FONT 
    size=2>&gt; &gt; &gt;</FONT> <BR><FONT size=2>&gt; &gt;</FONT> <BR><FONT 
    size=2>&gt; &gt;</FONT> <BR><FONT size=2>&gt; &gt;</FONT> <BR><FONT 
    size=2>&gt; </FONT><BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; To 
    Unsubscribe: send mail to majordomo@FreeBSD.org</FONT> <BR><FONT size=2>&gt; 
    with "unsubscribe freebsd-questions" in the body of the message</FONT> 
    <BR><FONT size=2>&gt; </FONT></P><CODE><FONT 
    size=3><BR><BR>=**********************************************************<BR><BR>If 
    you are not the intended recipient, employee or agent responsible for 
    delivering the message to the intended recipient, you are hereby notified 
    that any dissemination or copying of this communication and its attachments 
    is strictly prohibited.<BR><BR>If you have received this communication and 
    its attachments in error, please return the original message and attachments 
    to the sender using the reply facility on e-mail.<BR><BR>Internet 
    communications are not secure and therefore the UCLES Group does not accept 
    legal responsibility for the contents of this message. Any views or opinions 
    presented are solely those of the author and do not necessarily represent 
    those of the UCLES Group unless otherwise specifically stated.<BR><BR>This 
    footnote also confirms that this email message has been swept 
    by<BR>MIMEsweeper for the presence of computer viruses although this does 
    not guarantee that this email is virus 
    free.<BR><BR>**********************************************************=<BR></BLOCKQUOTE></BLOCKQUOTE></FONT></CODE></BODY></HTML>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?021101c1d5d3$6d6b9f70$c800a8c0>