Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Mar 2004 08:46:11 +0800
From:      "Kathy Quinlan" <kat-free@kaqelectronics.dyndns.org>
To:        <freebsd-questions@freebsd.org>
Subject:   Networking problem UPDATED
Message-ID:  <03b501c4024b$42288110$fe00a8c0@wskatinka>

next in thread | raw e-mail | index | archive | help
I have a friend who can not get his FreeBSD 5.2 server to act as a
gateway, from the internal network we can ping the external network
card, but no further. From the server we can ping the entire world.

I had him bring it over and set up my server(FreeBSD 4.8R as the
gateway) all my clients can use my FreeBSD server fine, so I do not
think the problem is in it, so I now have:


<ISP>----<My Server>-------<his Server>-------<laptop>

My Server to ISP is a dynamic IP (ppp dialup)
My server internal network is 192.168.0.1
His server to my server is connected to my servers hub and his server
uses ip 192.168.0.100
His server to my laptop is connected with a cross over cable, his server
is 192.168.10.1
My Laptop is 192.168.10.42


			
>From the laptop I can ping as far as the external nic on his server
(192.168.0.100). 
>From his server I can ping the world.

I have googled, looked at the mailing list, but can not find the problem
:o( I have re installed the server, incase he goofed up, same problem, I
have swapped the external network card, same problem.

His Server rc.conf:
defaultrouter="192.168.0.1"
gateway_enable="YES"
hostname="osire.home.lan"
ifconfig_fxp0="inet 192.168.0.100  netmask 255.255.255.0" #external nic
ifconfig_rl0="inet 192.168.10.1  netmask 255.255.255.0" #internal nic
inetd_enable="YES"
saver="logo"
sshd_enable="YES"

osire# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif
Expire
default            192.168.0.1        UGS         0        0   fxp0
127.0.0.1          127.0.0.1          UH          0       49    lo0
192.168.0          link#1             UC          0        0   fxp0
192.168.0.1        00:02:b3:99:46:d0  UHLW        1        3   fxp0
1043
192.168.0.254      00:e0:29:9c:ea:72  UHLW        0      165   fxp0
1039
192.168.10         link#2             UC          0        0    rl0

Internet6:
Destination                       Gateway                       Flags
Netif Expire
::1                               ::1                           UH
lo0
fe80::%fxp0/64                    link#1                        UC
fxp0
fe80::2a0:c9ff:fe8e:3980%fxp0     00:a0:c9:8e:39:80             UHL
lo0
fe80::%rl0/64                     link#2                        UC
rl0
fe80::240:f4ff:fe3c:9deb%rl0      00:40:f4:3c:9d:eb             UHL
lo0
fe80::%lo0/64                     fe80::1%lo0                   U
lo0
fe80::1%lo0                       link#4                        UHL
lo0
ff01::/32                         ::1                           U
lo0
ff02::%fxp0/32                    link#1                        UC
fxp0
ff02::%rl0/32                     link#2                        UC
rl0
ff02::%lo0/32                     ::1                           UC
lo0
osire#

There is no firewall or natd running on his server!!!!


My Server rc.conf:

Generated by Katinka 16-07-03

amd_enable="NO"
gateway_enable="YES"
hostname="webserver.kaqelectronics.dyndns.org"
ifconfig_fxp0="inet 192.168.0.1  netmask 255.255.255.0"
ifconfig_rl0="media 10baseT/UTP up"
ipv6_enable="NO"
kern_securelevel_enable="NO"
portmap_enable="YES"
nfs_server_enable="YES"
mountd_flags="-r"
inetd_enable="YES"
nfs_reserved_port_only="YES"
saver="logo"
scrnmap="NO"
sendmail_enable="YES"
sshd_enable="YES"
tcp_extensions="YES"
usbd_enable="YES"
firewall_enable="YES"
firewall_type="OPEN"
named_enable="YES"
named_flags="/etc/namedb/named.conf"
sasl_saslauthd_enabled="YES"
ppp_enable="YES"
ppp_profile="dialup"
ppp_mode="ddial"


webserver# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif
Expire
default            203.30.44.55       UGSc       15    32442   tun0
127.0.0.1          127.0.0.1          UH          0     7361    lo0
192.168.0          link#2             UC          5        0   fxp0
192.168.0.6        link#2             UHLW        1     4155   fxp0
192.168.0.10       00:e0:18:b0:53:00  UHLW        2   165561   fxp0
944
192.168.0.100      00:a0:c9:8e:39:80  UHLW        1        3   fxp0
845
192.168.0.254      00:e0:29:9c:ea:72  UHLW        2   569747   fxp0
841
192.168.0.255      ff:ff:ff:ff:ff:ff  UHLWb       2     2578   fxp0
203.30.44.55       202.89.160.14      UH         16        0   tun0
webserver#


I am out of ideas

Regards,

Kat.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03b501c4024b$42288110$fe00a8c0>