Re: Routing Problem (was: Re: Startup messages)

"Scott E. Campbell" <[email protected]>
Newsgroups gmane.network.nocat
Message-ID <[email protected]>
On April 28, 2005 06:57 pm, you wrote:
> Bingo!!
>
> Your clue solve the my problem...
>
> On Friday 29 April 2005 05:50, Scott E. Campbell wrote:
> > Sorry - I was gone for two days
>
> We got internal network problem too within last two days.
> First day, the network cable eat by rat
> Second day, internal pc router (with nat) totally crash by power failure.
>
> > Does your nocat box have the route?  You will have to add a static route
> > of the form (command line)
> >
> > route add 192.168.105.192/26 192.168.105.131
>
> Can I add this line on rc.local so the system will do it on every bootup ?
>
Sure but rc.local isn't a "standard" file for FreeBSD anymore.  The local 
changes are usually in the rc.conf file.

> > or add the following two lines in your /etc/rc.conf file
> >
> > static_routes="apdhcp"
> > route_apdhcp="192.168.105.192/26 192.168.105.131"
>
> so... one of two choices ?
>
Yes, you could put it in a startup script in /usr/local/etc/rc.d if you want 
but the system gives you the option of putting most local configuration in 
one spot for ease of use.

> Other questions... perhaps out off topics of NoCat..
> We have plan to build city internet exchanges among ISP in the same city.
> Can I just allocate one of dhcp ip as routing point to them and then route
> their ip addresses to that IP ?
>
I'm not sure I understand that part.  This is pretty much what I've done:

(DHCP from ISP)
       |
NoCat Box
       |
10.0.0.1
       |
       |
10.0.0.2
       |
     AP
       |
10.1.1.1
       |
(AP serving DHCP pool 10.1.1.2-10.1.1.254 for clients)

AP DHCP gives default route to clients as 10.1.1.1
AP has default route of 10.0.0.1
NoCat box uses natd to send the traffic out its ip from the ISP
NoCat box has static route for the 10.1.1.0/24 network through 10.0.0.2

 
> At Nocat, seems that I've to insert the routing point ip and their ip
> addresses at initialize.fw before fwd line like :
> {ipfw} allow all {IP as routing point} to any in via {internaldevice}
> {ipfw} allow all {other isp IP addresses} to any in via {internaldevice}
> (keep state)
> Am I correct ?
>
Hmm. I'll look to see what mine is and send it to you.

> Forgot to tell you.. our WRT54G is connected with external 20DB sectoral
> antenna, so we will cover our small city population with nocat.
>
Sounds like a fun project.

> Regards
>
> PD

-- 
Scott E. Campbell
Systems Administrator
Greater Victoria Public Library
Victoria, BC CANADA
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.