home  wiki

Spelling: RoutingHowTo



* Introduction [1]
* Configuring IP forwarding [2]

* Linux [3]
* BSD variants (including MAC OSX) [4]
* Windows [5]

INTRODUCTION

So, you have this radio network thing and after playing with it for a
while you come to realize that you don't really want to bridge your
home network to the rest of the Melbourne Wireless community. You need
to set up a router. The router will do two things for you, it gives
you the control to expose the right amount of your network and it
allows you to establish a firewall between yourself and the general
Melbourne Wireless network. This is exactly the same as you would have
for your Internet connection.

The router may be an embedded device, a combination device
(router/wireless access point), a dedicated Linux machine (old PC) or
an existing machine you make dual homed by adding an additional NIC.

Regardless of the device you are using it needs to have more than one
network interface, should be able to forward packets between the
interfaces and should allow you to run firewall software and a routing
daemon or two. It's probably a good idea to have a dedicated machine
between you own stuff and the rest of the world, usual disclaimer
here.

CONFIGURING IP FORWARDING

Most PC based operating systems support ip forwarding but it is
usually not turned on. When you have a PC that has more than one
network interface any you want to enable routing you need to make some
simple configuration changes to get the machine forwarding packets.

Often you have the funny situation where the machine you want to act
as a router can see other machines on both subnets but machines on one
subnet cannot see machines on the other - you need to enable IP
forwarding.

LINUX

Most standard distributions support IP forwarding. you turn IP
forwarding on by setting a flag in _/proc_. This can be done using the
SYSCTL command or by simply echoing 1 to the file.

echo "1" > /proc/net/ipv4/ip_forward
Alternatively use SYSCTL

/sbin/sysctl -a will display all configured settings /sbin/sysctl
net.ipv4.ip_forward net.ipv4.ip_forward = 0 /sbin/sysctl -w
net.ipv4.ip_forward="1"

BSD VARIANTS (INCLUDING MAC OSX)

Similar to Linux, use sysctl to set the ip forwarding flag. In this
case the flag is _net.inet.ip.forwarding_.

/sbin/sysctl -w net.inet.ip.forwarding="1"

WINDOWS

In windows routing is possible through a change to a registry
parameter. Open regedit and go to the entry:

HKEY_LOCAL_MACHINE SYSTEMCurrentControlSetServicesTcpipParameters
Find the entry _IPEnableRouter_ and set to 1 (default is 0). Reboot
and you should be forwarding packets.

Links:
------
[1] http://melbournewireless.org.au/#introduction
[2] http://melbournewireless.org.au/#configuring_ip_forwarding
[3] http://melbournewireless.org.au/#linux
[4] http://melbournewireless.org.au/#bsd_variants__including_mac_osx_
[5] http://melbournewireless.org.au/#windows_

[EditText] [Spelling] [Current] [Raw] [Code] [Diff] [Subscribe] [VersionHistory] [Revert] [Delete] [RecentChanges]

> home> about> events> files> members> maps> wiki board   > home   > categories   > search   > changes   > formatting   > extras> site map

Username
Password

 Remember me.
>

> forgotten password?
> register?
currently 0 users online
Node Statistics
building132
gathering192
interested515
operational242
testing216