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

Problem with Internet Connection Sharing

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  FreeBSD From Scratch (ie. My Own Custom FreeBSD)  
Author Message
Kasper Dziurdz

External


Since: Nov 09, 2003
Posts: 3



(Msg. 1) Posted: Sun Nov 09, 2003 2:47 pm
Post subject: Problem with Internet Connection Sharing
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

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:


Kernel:

options IPFIREWALL
options IPDIVERT

/etc/rc.conf:

defaultrouter="212.17.122.1"
gateway_enable="YES"
hostname="home.chello.at"
ifconfig_ed0="DHCP"
ifconfig_ep0="inet 192.168.0.1 netmask 255.255.255.0"
firewall_enable="YES"
firewall_type="OPEN"
natd_enable="YES"
natd_interface="ed0"
natd_flags="-f /etc/natd.conf"

/etc/natd.conf:

interface ed0
use_sockets yes
same_ports yes

ifconfig:

ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 212.17.122.198 netmask 0xffffff00 broadcast 212.17.122.255

ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255

ipfw list:

00050 divert 8668 ip from any to any via ed0
00100 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
00300 deny ip from 127.0.0.0/8 to any
65000 allow ip from any to any
65535 allow ip from any to any

/etc/resolv.conf:

search chello.at
nameserver xxx.xxx.xxx.10
nameserver xxx.xxx.xxx.11

Client (Windows XP):

IP-Address: 192.168.0.2
Subnetmask: 255.255.255.0
Gateway: 192.168.0.1


ping 192.168.0.1 works and I can even ping ip addresses outside the
network. ICQ works too, WWW doesn't, and Usenet or Mail only sometimes.
What am I doing wrong?

Thanks!

Kasper

--
HTML::KTemplate | Perl module to process HTML templates.
http://html-ktemplate.sourceforge.net/

Kopierschutz-Nein-Danke.de | Gegen kopiergeschützte Un-CDs!
http://www.kopierschutz-nein-danke.de/

 >> Stay informed about: Problem with Internet Connection Sharing 
Back to top
Login to vote
Martin P. Hellwig

External


Since: Oct 16, 2003
Posts: 7



(Msg. 2) Posted: Sun Nov 09, 2003 5:18 pm
Post subject: Re: Problem with Internet Connection Sharing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Kasper Dziurdz wrote:
<cut>
> ping 192.168.0.1 works and I can even ping ip addresses outside the
> network. ICQ works too, WWW doesn't, and Usenet or Mail only sometimes.
> What am I doing wrong?
>
> Thanks!
>
> Kasper
>
Sounds like a DNS problem, if you manually resolve a hostname and ping
that IP doest that work?

Martin P. Hellwig

 >> Stay informed about: Problem with Internet Connection Sharing 
Back to top
Login to vote
Kasper Dziurdz

External


Since: Nov 09, 2003
Posts: 3



(Msg. 3) Posted: Mon Nov 10, 2003 9:14 pm
Post subject: Re: Problem with Internet Connection Sharing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Martin P. Hellwig wrote:
> Sounds like a DNS problem, if you manually resolve a hostname and ping
> that IP doest that work?

Yes, it works. I also tried to lower the MTU but that did not help. So
where should I start?

Thanks

Kasper

--
HTML::KTemplate | Perl module to process HTML templates.
http://html-ktemplate.sourceforge.net/

Kopierschutz-Nein-Danke.de | Gegen kopiergeschützte Un-CDs!
http://www.kopierschutz-nein-danke.de/
 >> Stay informed about: Problem with Internet Connection Sharing 
Back to top
Login to vote
Kasper Dziurdz

External


Since: Nov 09, 2003
Posts: 3



(Msg. 4) Posted: Mon Nov 10, 2003 9:56 pm
Post subject: Re: Problem with Internet Connection Sharing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

So stupid, I have no DHCP server set up yet so I had to enter the DNS
server on Windows XP. Now everything works. Thanks anyway!

Kasper

--
HTML::KTemplate | Perl module to process HTML templates.
http://html-ktemplate.sourceforge.net/

Kopierschutz-Nein-Danke.de | Gegen kopiergeschützte Un-CDs!
http://www.kopierschutz-nein-danke.de/
 >> Stay informed about: Problem with Internet Connection Sharing 
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..

SOLVED: NEWBIE: FreeBSD 4.10 Internet gateway/DNS problem - > > 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) > > > >...

ISP connection issue - I am fairly new at *nix and FreeBSD. I am attempting to run a privately owned, publically accessible web server from a PC running FreeBSD 4.8. I configured ppp.conf and rc.conf for the *old* ISP settings (the ones that worked a year ago), and now they do...

ISP connection issue - I am fairly new at *nix and FreeBSD. I am attempting to run a privately owned, publically accessible web server from a PC running FreeBSD 4.8. I configured ppp.conf and rc.conf for the *old* ISP settings (the ones that worked a year ago), and now they do...

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 ]