[ previous ] [ next ] [ threads ]
 
 From:  Pasi Leinonen <ppleinon at hytti dot uku dot fi>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Routing problem
 Date:  Thu, 30 Mar 2006 20:55:00 +0300
Can m0n0wall act as a router (not a NAT device)?

I have a problem setting up m0n0wall (and yes I have read the manual, faq,
googled hours and still dont get it work).

My isp gives two networks 212.149.148.0/24 and 212.149.156.0/24 and gatewys
212.149.148.254 and 212.149.156.254. Endusers in lan uses these ip:s, gateway
212.149.148.254 and a mask /20.


So how do I set the m0nowall to act as a router?

Using m0nowall as a bridge only works half well because traffic shapering isn't
working properly in bridge mode...


Could someone please help.


Network is like this:

Isp gave us:
Networks 212.149.148.0./24 and 212.149.156.0/24
Gateways 212.149.148.254 and 212.149.156.0/24 (shows to lan as a "same machine"
(has same mac address)

ISP
|
wan-interface (tryed to set up the wan interface using 212.149.156.253/30 and
gateway 212.149.156.254)
m0n0wall
lan-interface
|
lan (big layer 2 switch network)

Hosts in lan use: (It's hard to change these addresses)
Ips from 212.149.148.1-253 and 212.149.156.1-253
Netmask is 255.255.240.0 (/20) Smallest mask that makes possible hosts to
directly talk eatch other in the lan.
gateway for host is same 212.149.148.254

So basicly the network in lan is 212.149.144.0/20 using gateway 212.149.148.254
(this is the way I tried to set up the lan interface).


questions:

Is the big netmask /20 in a lan problem? Because we only use/"own" part of it
(networks 212.149.148.0/24 and 212.149.156.0/24) so it leaves big gap between
as those networks are already used in the internet by our isp. Can this be a
problem to our isp? Can isp handle this problem? Netmask /20 seems to work fine
in bridge mode.

How do I correctly set up the static routes or routing in generally in m0n0wall?

If m0n0wall cannot do it by it self, could a another router help? How to setup
this with another router? Or do I need help from isp to get this working?
Whatkind of ip networks I then need? and how to set up them in m0n0wall?

What distro would you recoment to be used in a router? Are there any good
open-source ones that are speasialiced for (advanced) routing)? For testing
could exsample. Damm small linux live cd used to build a test router to test
this out? How would I set up routes in it. Using the ip command? Exsamples?


-- 
Pasi Leinonen
Taivaanpankontie 14 B 406
70200 Kuopio
Finland


Kuopio university