Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jul 2001 14:14:35 -0400 (EDT)
From:      Jim Freeze <jim@freeze.org>
To:        Mark Kobussen <kobes@usermail.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: IPFW/NATD or Cable Modem Trouble??
Message-ID:  <Pine.BSF.4.32.0107061408040.59818-100000@www.stelesys.com>
In-Reply-To: <004001c10645$64f25e00$0201a8c0@goldenrod.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 6 Jul 2001, Mark Kobussen wrote:

When I first got my cable modem, the service was sporatic, but
has been stable for months now.

I have a similar setup to yours, with a few differences:


> ed1 is connected to the hub
> ed2 is connected to the cable modem
>
> ----- Pertinent rc.conf Information
> gateway_enable="YES"
> hostname="marlborough "
> ifconfig_ed1="inet 192.168.1.1 netmask 255.255.255.0"
> ifconfig_ed2="DHCP"
> inetd_enable="YES"
> kern_securelevel_enable="NO"
> linux_enable="YES"
> moused_enable="YES"
> sendmail_enable="YES"
> gateway_enable="YES"
> sshd_enable="YES"
> portmap_enable="YES"
> firewall_enable="YES"
> firewall_script="/etc/firewall/fwrules"
> natd_enable="YES"
> natd_flags="-dynamic"
natd_flags="-l -d -s -m -u -dynamic -ned2"

> natd_interface="ed2"
>
> ----- Now follows is /etc/firewall/fwrules
> /sbin/ipfw -f flush
> /sbin/ipfw add 1000 pass all from 127.0.0.1 to 127.0.0.1
> /sbin/ipfw add 2000 divert natd all from any to any via ed2
> /sbin/ipfw add 6500 pass all from any to any

I also added the following to let DHCP through
    # Allow DHCP through
    ${fwcmd} add pass udp from any 68 to any 67 out via ${oif}
    ${fwcmd} add pass udp from any 67 to any 68 in  via ${oif}


And, do you have the following in /etc/dhclient.conf:

interface "ed2" {
        send host-name "<your isp provided hostname here>";
        request subnet-mask, broadcast-address, routers,\
domain-name-servers, domain-name, time-servers;
        require domain-name-servers;
        }

HTH
Jim


=========================================================
Jim Freeze
jim@freeze.org
---------------------------------------------------------
No comment at this time.
http://www.freeze.org
=========================================================


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.32.0107061408040.59818-100000>