Now, we've all needed packages and tools for acting as a router with full IP forwarding and network address translation.
For using these features, we have to set up the configuration of
/etc/init.d/rcS
, if you don't already create this file
as suggested in chapter three.
Please edit /etc/init.d/rcS
of your initial ramdisk
and add the following lines:
echo "Setting up routing..." /sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward
The last line enables IP forwarding in the Linux
kernel, whereas the iptables
command allows
the users of your LAN to use programs such as IRC
without having installed a proxy or a socks server on your
gateway. For further and more complex firewalling rules,
please consult the following tutorial [Andreasson02].
For testing your installation, you can create and transfer a new image file for your SEGA Dreamcast using cook.sh. Please refer to chapter four and chapter two.