Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 May 2001 18:32:55 -0500
From:      "Brandt" <brandt@unkempt.net>
To:        <freebsd-questions@freebsd.org>
Subject:   Natd, 2 Hub problem has me perplexed..
Message-ID:  <003d01c0e63c$42ccfb10$14be2ece@osc20>

next in thread | raw e-mail | index | archive | help
Alright, I'm at a loss.  Here is my situation.

My FreeBSD box
 1. FreeBSD 4.3 Box
 2. 2 Nics
    vr0 = 65.3.*.*        subnet 255.255.255.0, pluged into Hub1 that is
connected to internet
    dc0 = 192.168.1.1 subnet 255.255.255.0, pluged into Hub2 that is
connected to LAN

Several Other Clients with 192.168.1.* addies, in the same hub as dc0,
subnet of
255.255.255.0, Gateway = 192.168.1.1

Before going any farther I have to say that IF, IF I plug both the vr0 and
the dc0 interfaces
into the same hub, everything works fine (excepts for tons of arp errors
being output to console).

But when the two networks are seperated onto 2 different hubs, The FreeBSD
box CAN
ping the other LAN clients.  But the other LAN clients can't ping the
192.168.1.1
interface.  And I can't figure out why, and even more strange is the fact
that when ONE
hub is used, it works fine.

What I'm I missing here? Do the public and the privite interfaces HAVE to be
on the same Hub
in order for natd to work?

-Brandt

Configs

## My Kernel ##########
options         IPDIVERT
options        IPFIREWALL

## /etc/rc.conf ##########
sendmail_enable="YES"
sshd_enable="YES"
inetd_enable="YES"
gateway_enable="YES"
network_interfaces="vr0 lo0 dc0"
ifconfig_vr0="inet 65.3.111.111  netmask 255.255.255.0"
defaultrouter="65.3.111.1"
ifconfig_dc0="inet 192.168.1.1  netmask 255.255.255.0"
hostname="myhostname.mydomain.com"

#NATD
natd_enable="YES"
natd_interface="vr0"
natd_flags="-f /etc/natd.conf"

#FIREWALL
firewall_enable="YES"
firewall_script="/etc/rc.firewall"
firewall_type="open"
firewall_quiet="NO"
firewall_logging="YES"
firewall_flags=""

#ATTEMPT TO CORRECT ROUTING TABLE
router_enable="YES"
router="routed"
router_flags="-s"

## ifconfig  ##########
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.1.1 netmask 0xffff0000 broadcast 192.168.255.255
        inet6 fe80::280:c8ff:fee8:58fe%dc0 prefixlen 64 scopeid 0x1
        ether ff:ff:ff:ff:ff:ff
        media: autoselect (100baseTX <full-duplex>) status: active
        supported media: autoselect 100baseTX <full-duplex> 100baseTX
10baseT/UTP <full-duplex> 10baseT/UTP none
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 65.3.111.111 netmask 0xffffff00 broadcast 65.3.111.255
        inet6 fe80::280:c8ff:fee8:58fe%vr0 prefixlen 64 scopeid 0x2
        ether 00:80:c8:e8:58:fe
        media: autoselect (10baseT/UTP) status: active
        supported media: autoselect 100baseTX <full-duplex> 100baseTX
10baseT/UTP <full-duplex> 10baseT/UTP none


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003d01c0e63c$42ccfb10$14be2ece>