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/