From owner-freebsd-questions@FreeBSD.ORG Wed Jul 14 18:38:10 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F78D16A4CE for ; Wed, 14 Jul 2004 18:38:10 +0000 (GMT) Received: from web52510.mail.yahoo.com (web52510.mail.yahoo.com [206.190.39.135]) by mx1.FreeBSD.org (Postfix) with SMTP id D020B43D1F for ; Wed, 14 Jul 2004 18:38:09 +0000 (GMT) (envelope-from freebsder51@yahoo.com) Message-ID: <20040714183809.20655.qmail@web52510.mail.yahoo.com> Received: from [65.92.112.39] by web52510.mail.yahoo.com via HTTP; Wed, 14 Jul 2004 11:38:09 PDT Date: Wed, 14 Jul 2004 11:38:09 -0700 (PDT) From: freebsder To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: FreeBSD 5.1 <-> WinXP Networking Problem UPDATE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2004 18:38:10 -0000 Hi Everyone ... thanks for your help thus far. I've made some changes below. [I have Not made all the changes that you've kindly suggested but enough that I am able to ping back and forth ... if I have ignored your suggestion and you still see a gapping error, please feel free to reinterate, I won't hold it again you!] OK, the changes ... -I got rid of the ifconfig_vr0 -I set ifconfig_ed0 to 192.168.0.1 (where as _vr0 was initially set as the gateway) - I tried pinging from Freebsd to 192.168.0.4 the WinXP #2 machine. and got through! - I tried pinging from the WindXP #2 to itself at 192.168.0.4 andit got through. - I tried pinging from the WindXP #2 to ed0 at 192.168.0.1 andit got through! BUT I still cannot get the WIN XP webbrowser to read the internet. What is wrong? I think that the natd_flags="redirect_port tcp 192.168.0.3:80 80" should be: natd_flags="redirect_port tcp 192.168.0.1:80 80" I will try changing this and see what happends.... I have include the revised RC.CONF below: [...] font8x14="NO" font8x16="swiss-8x16" font8x8="swiss-8x8" inetd_enable="YES" linux_enable="YES" moused_enable="YES" moused_port="/dev/psm0" moused_type="auto" nfs_client_enable="YES" #nfs_server_enable="YES" rpcbind_enable="YES" saver="rain" scrnmap="NO" usbd_enable="YES" ifconfig_vr0="DHCP" ##initialise NIC network_interfaces="vr0 ed0 lo0 tun0" ifconfig tun0 ifconfig vr0= "media 10baseT/UTP up" ifconfig_ed0="inet 192.168.0.1 netmask 255.255.0.0" #ifconfig_vr0="inet 192.168.0.1 netmask 255.255.0.0" hostname="myserver" ##User ppp configuration ppp_enable="YES" ppp_mode="ddial" ppp_nat="NO" ppp_profile="bellnet" #ppp_user="root" ## Firewall gateway_enable="YES" firewall_enable="YES" firewall_type="OPEN" #firewall_quiet="NO" firewall_script="/etc/rc/firewall" natd_enable="YES" natd_interface="vr0" natd_flags="redirect_port tcp 192.168.0.3:80 80" rpc_statd_enable="YES" tcp_extensions="YES" ## Mail sendmail_enable="YES" <><><><> This is what my ifconfig looks like: <><><><> ed0: flags=8843 mtu 1500 inet 192.168.0.1 netmask 0xffff0000 broadcast 192.168.255.255 inet6 fe80::280:c8ff:fede:c937%ed0 prefixlen 64 scopeid 0x1 ether 00:80:c8:de:c9:37 vr0: flags=8843 mtu 1500 inet6 fe80::20e:a6ff:fe9c:c81d%vr0 prefixlen 64 scopeid 0x2 inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 ether 00:0e:a6:9c:c8:1d media: Ethernet autoselect (100baseTX ) status: active lp0: flags=8810 mtu 1500 lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 tun0: flags=8051 mtu 1492 inet 6X.9X.11X.3X --> 6X.23X.25X.12X netmask 0xffffffff Opened by PID 222 <><><><><> Also, a small problem ---> I have a webserver running on the Freebsd box but everytime I reboot, I get a new IP address(from above: 6X.9X.11X.3X). The fixed IP address always seems to be: 6X.23X.25X.12X. However, I have my domain name set to redirect towardsthe dynamic address so everytime I reboot, I have to tell the DNS server that holds my domain name my new IP address. Is there a way to configure it so that I don't have to continuously change the IP address on the DNS? Should I just get rid of the line: ifconfig_vr0="DHCP" and set the DNS to 6X.23X.25X.12X? Would that do the trick? Or should I get rid of ifconfig_ed0="DHCP"? Thanks again <><><><><> MY original Post <><><><><><><> I have a Freebsd 5.1 box connected to the internet. It works. But I am now trying to network two other Win XP machines as per the following network hierarchy: <><><> Setup <><><> ISP-> DSL Modem -> FreeBSD box : 1) "vr0" 192.168.0.1 [Gateway machine address] 2) "ed0" 192.168.0.3 [Internal Network address] connects to:-> 4- port HUB -> 1)WinXP machine #1 192.168.0.2 2)Freebsd Box 192.168.0.3 3)WinXP machine #2 192.168.0.4 <><><> Problem: <><><> I cannot communicate to the Internet from WinXP #2 (Have not tried to config WinXP #1 yet). <><><> Browser Config <><><> IE Brower Settings for WinXP #2 {Tools>Internet Options>Connections>) -I set the browser so that it never dials a connection because it is suppose to be networked right? - in the LAN Settings option, I set the Proxyserver option with the address of the gateway of 192.168.0.1 with Port 80 <><><> Dialouge <><><> >From Freebsd Machine # ping 192.168.0.4 PING 192.168.0.4 (192.168.0.4): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down -at one point I was able to ping the freebsd machine from WinXP #2 but then for some reason, I made a change and cannot ping anymore... <><><> RC.CONF <><><> My rc.conf file looks like this: font8x14="NO" font8x16="swiss-8x16" font8x8="swiss-8x8" inetd_enable="YES" linux_enable="YES" moused_enable="YES" moused_port="/dev/psm0" moused_type="auto" nfs_client_enable="YES" nfs_server_enable="YES" rpcbind_enable="YES" saver="rain" scrnmap="NO" usbd_enable="YES" ifconfig_vr0="DHCP" ifconfig_ed0="DHCP" ##initialise NIC network_interfaces="vr0 ed0 lo0 tun0" ifconfig tun0 ifconfig vr0= "media 10baseT/UTP up" ifconfig_ed0="inet 192.168.0.3 netmask 255.255.0.0" ifconfig_vr0="inet 192.168.0.1 netmask 255.255.0.0" hostname="myserver" ##User ppp configuration ppp_enable="YES" ppp_mode="ddial" ppp_nat="NO" ppp_profile="bellnet" #ppp_user="root" ## Firewall gateway_enable="YES" firewall_enable="YES" firewall_type="OPEN" #firewall_quiet="NO" firewall_script="/etc/rc/firewall" natd_enable="YES" natd_interface="vr0" natd_flags="redirect_port tcp 192.168.0.3:80 80" rpc_statd_enable="YES" tcp_extensions="YES" ## Mail sendmail_enable="YES" <><><><><><><> HELP! Thanks in advance. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com