[OLSR-users] internet gateway (ip forward?) problem
Wed Feb 23 09:30:38 CET 2005
Thanks, for input.
so, now i have set up the system behind a NAT, so that i can play
around with my addresses and networks. i have used the 192.168.16.0
network for my base-station and wired network. and i have used
192.168.17.0 network for my ad-hoc part of the network. (both with
255.255.255.0 mask ). I found the same problem... i could only ping
interfaces that were running olsrd.
then I tried to use internet sharing on my mandrake router ... by
following these instructins:
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
iptables -A FORWARD -i ath0 -o eth2 -m state --state
ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth2 -o ath0 -j ACCEPT
iptables -t nat -A POSTROUTING -o ath0 -j MASQUERADE
and now it works..but, am i really using olsrd here or, what? is there
another way to do it, that is more direct use of the olsr protocol?
On Tue, 22 Feb 2005 14:27:51 +0100 (CET), Andreas Tønnesen
> Since you are not using NAT in your GW you must make sure the GW will
> route correctly. Having two interfaces on the same subnet is really asking
> for trouble when you are going to act as a router(well, really in any
> situation) :) In this case the GW will probably route traffic out the
> interface with the first entry in your routing table, so if the GW node
> 22.214.171.124/24 eth0
> 126.96.36.199/24 wlan1
> there is a large chance all traffic destined for 188.8.131.52/24 will be
> routed via eth0. This does not go for olsrd control-traffic since this
> traffic is using fixed routing(bound to interfaces).
> So for this to work you should IMO either set up NAT *ugh* or set up
> subnets of the 184.108.40.206/24 network on your two interfaces on the GW.
> - Andreas
> > hi there,
> > I am running a pc with two wlan cards, one of wich is connected to the
> > internet trough a base station (on channel 1). the other card is
> > connected to a second laptop trough an adhoc network running on a
> > different channel (11). The two computers can see each other, but I
> > have trouble sharing that internet connection with the ad-hoc network.
> > I have tried using the dynamic gateway pluggin (and it seems to work,
> > it is reporting a internet connection), and also the static internet
> > sharing, but no matter what i try the laptop that only has one wlan
> > card, can not see any non-olsr machine. it can however see any machine
> > running olsrd.
> > how can i enable it to "ping" a pc not running olsrd.
> > PS: both my ad-hoc network and my wired/base station hosts are running
> > on the same network (220.127.116.11) is that a problem? do they need to
> > be on different networks for the routing to work?
> > hope you can give me some hints, maybe "explain like i am a six year
> > old" how to share an internet connection with olsrd.
> > I am running the 0.4.8 version, on a mandrake linux 10.1
> > --
> > /*
> > www.rakkenes.org
> > */
> > _______________________________________________
> > olsr-users mailing list
> > (spam-protected)
> > https://www.olsr.org/mailman/listinfo/olsr-users
> Andreas Tønnesen
More information about the Olsr-users