Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Oct 2000 10:35:05 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        Sysadmin <freebsd@m2mtechnology.com>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: Packet routing
Message-ID:  <200010281735.e9SHZ5733979@curve.dellroad.org>
In-Reply-To: <NEBBIONCAPPDEJNFIAEGEEHFCAAA.freebsd@m2mtechnology.com> "from Sysadmin at Oct 27, 2000 12:58:39 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Sysadmin writes:
> Can anyone tell us how to get FreeBSD to route packets? This should be an
> easy question, infact all the documentation that we have read says that
> FreeBSD should route packets simply by setting the line gateway_enable="YES"
> in rc.conf.

And, make sure if you've enabled the firewall code that packets
are allowed to flow.

> Could it be anything to do with the network number 10? Obviously this is in

No.. FreeBSD doesn't care about that.

> This is what our routing table looks like:
> 
> Internet:
> Destination        Gateway            Flags      Netif Expire
> default            203.36.202.65      UGSc        ex0
> 10/16              link#1             UC          vr0 =>
> 10.0.255.255       ff:ff:ff:ff:ff:ff  UHLWb       vr0
> 10.1/16            link#2             UC          vr1 =>
> 10.2/16            link#3             UC          vr2 =>
> 10.2.0.50          0:10:a4:1:db:18    UHLW        vr2   1004
> 10.3/16            link#4             UC          vr3 =>
> 10.4/16            link#5             UC          vr4 =>
> 127.0.0.1          127.0.0.1          UH          lo0
> 203.36.202.64/26   link#6             UC          ex0 =>
> 203.36.202.65      0:c0:7b:73:19:c6   UHLW        ex0   1019
> 203.36.202.80      52:54:0:e5:56:b    UHLW        ex0    359

Looks good. Check your firewall. Also, verify routing is really
being enabled:

    $ sysctl net.inet.ip.forwarding
    net.inet.ip.forwarding: 1

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010281735.e9SHZ5733979>