Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SOLVED: NEWBIE: FreeBSD 4.10 Internet gateway/DNS problem

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  Windows X  
Author Message
James A. Coulter

External


Since: Jul 13, 2004
Posts: 2



(Msg. 1) Posted: Fri Jul 23, 2004 8:58 am
Post subject: SOLVED: NEWBIE: FreeBSD 4.10 Internet gateway/DNS problem
Archived from groups: mailing>freebsd>questions (more info?)

> > On Tue, Jul 13, 2004 at 10:51:21AM -0500, James A. Coulter wrote:
> > >
> > >I am trying to setup my FreeBSD 4.10 box as an internet gateway for =
a
> > > small home LAN (2x Win XP and 1x Win 98SE)
> > >
> > >The LAN operates without any problems when using the Win 98SE box =
as a
> > >gateway - all computers can access the internet
> > >
> > >I have two nics installed in the FreeBSD box:
> > >
> > > dc0 is the LAN interface via 4-port Linksys hub
> > >
> > > dc1 is the WAN interface via cable modem
> > >
> > >I have successfully connected to the internet with dc1
> > >
> > >I can ping all other machines on my home LAN with dc0 and vice =
versa
> > >
> > >I cannot access the internet from any machine except the FreeBSD
> gateway
> > >
> > >ifconfig looks like this:
> > >

<snip>

> > >
> > >I'm not sure what to do next. For some reason the Windows cannot
> access a
> > >name server. From what I understand from the literature I've been
> using
> > >(FreeBSD Handbook, Lehey's The Complete FreeBSD, and Anderson's
> FreeBSD:
> > > An Open-Source etc etc) all that should be needed is set
> > > gateway_enable=3D"YES" in /etc/rc.conf and I've done that.
> > >
> > >Google revealed some info on using natd for PPOE, but not sure if =
that
> > >applies to this problem.
> >
> > Definitely you must use NAT. Search Handbook for Network Address
> > Translation.
> >
> > >All suggestions/out-right solutions appreciated.
> > >
> > >TIA,
> > >
> > >Jim C.
> > >
> Hello.
> You might try something like this in your /etc/rc.conf :
> gateway_enable=3D"YES"
> ifconfig_dc1=3D"DHCP"
> dhcp_program=3D"/sbin/dhclient"
> dhcp_flags=3D"-q"
> ifconfig_dc0=3D"inet 192.168.1.1 netmask 255.255.255.0"
> natd_enable=3D"YES"
> natd_interface=3D"dc0"
> natd_flags=3D"-dynamic"
> And if you like some little protection :
> firewall_enable=3D"YES"
> firewall_script=3D"/etc/rc.firewall"
> firewall_type=3D"OPEN"
> firewall_logging=3D"YES"
> And it's never wrong to spend some time reading the man pages Smile
> Don't forget to put the IP of your Gateway on the Winboxes.
> /Hasse

Sorry for the very late response and thanks very much for the =
suggestions to
check out NAT. That was of course the problem. Being a newbie and
life-long Windows user, I thought gateway_enable=3D"YES" in rc.conf was =
the
magic word. But it isn't and I read up on NAT and natd and built a =
custom
kernel with:

options IPFIREWALL
options IPDIVERT

and made the changes to rc.conf as detailed above and now my FreeBSD box =
is
passing packets back and forth from all the Windows boxes on my LAN to =
the
WAN beautifully.

Thanks again for your help!

Jim C.

_______________________________________________
freebsd-questions.DeleteThis@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

 >> Stay informed about: SOLVED: NEWBIE: FreeBSD 4.10 Internet gateway/DNS problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
NEWBIE: FreeBSD 4.10 Internet gateway/DNS problem - I am trying to setup my FreeBSD 4.10 box as an internet gateway for a = small home LAN (2x Win XP and 1x Win 98SE) The LAN operates without any problems when using the Win 98SE box as a gateway - all computers can access the internet I have two nics..

Newbie has a FreeNX problem - Hi, I'm trying to get a FreeBSD 7 server up and running in the office here so some of our developers can work on it. We're big NX fans here, so I thought I'd try to get it running out of the ports collection, but I haven't had any luck. I'm new to this,....

Problem with Internet Connection Sharing - Hi! I have installed FreeBSD 4.9 to share the internet connection with other computers: Client 1 ---\ Hub --- FreeBSD --- ISP (cable modem) Client 2 ---/ I have configured the following things as described in the FreeBSD Handbook: ..

Locked Out of FreeBSD 5.2 - Newbie - PROBLEM: I can't get in to my system. Well, I took the plunge and loaded 5.2 (cd iso) with the FreeBSD Handbook beside me. Everything went pretty well and I even got DHCP going. I loaded all sorts of Packages, Ports, etc., discovered that loading..

FreeBSD 5.2.1 buildworld problem - I got "make: dont't know how to make build-tools. Stop" after I type "make -j4 buildworld". The following is the last many line from buildworld's console output message: >> ===> rescue/rescue >> make: don't know ho...
   FreeBSD Hosting (Home) -> FreeBSD Handbook All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]