Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: mbzadegan on August 29, 2010, 05:07:46 AM
-
Hi,
Can any one guide me to convert my Tiny Core into Basic Router ( RIPv2 ) ?
i visited http://forum.tinycorelinux.net/index.php?topic=1219.0 but it does not told how i doing it !
is the solution only with IPTABLES ( for firewall ) ? ::)
-
I would also be interested in this.
Unfortunately I could not find any simple way to do it.
I'm a bit afraid doing this because my last 3 routers had some problems: They dropped my internet connection when I turned on QoS functionality and started massive torrent downloading. The router's CPU just couldn't handle the big traffic with QoS. Image just what would happen if you would use a torrent client on your router box which starts to hash the downloaded data, or you just copy some files via samba (gigabit) which would eat your CPU... I think we would face the same problems... dropping internet connection, dropping wireless clients, malfunctioning firewall, stopping dhcp functionality, lagging LAN connections etc :(
Here is a list of what is actually needed for router capability:
- General routing function: RIPv2 etc... maybe with: iproute2.tcz
- DHCP server: I haven't find any in the repo. And what about address reservation?
- NAT functions: Should be done by the dhcp server? or by the firewall? I dunno...
- PPPoE connection handling: Should be done with: pppd.tcz pppsetup.tcz
- SPI Firewall: I don't really know what Stateful Packet Inspection is, and how to set iptables to work like that
- Wireless AP: hostapd.tcz is fine for this task (I guess it's a lot of work to setup WEP/WPA/WPA2 and the other stuff correctly)
- DynDns update client: inadyn or ddclient (none of them are in the repository)
- Simple webserver to have a WebGUI: I vote for Cherokee, but I think there is no WebGUI available for configuring the general router stuff.
Some logging: iptables, netstat, etc...
Nice to have extras: QoS functions, traffic shaping by ethernet interface, torrent client, ftp server, samba server, printer sharing, mail server (a bit out of scope)
-
udhcpd is in base
plus there is a dhcpcd.tcz extension ;)
-
These are dhcp clients, not servers.
-
These are dhcp clients, not servers.
WRT dhcpcd you are right, I made an unfounded assumption without checking, my bad. :-X
But udhcpd is a dhcp server, as opposed to udhcpc which is a client, both are included in TC base.
-
udhcpd is where I was misled. I was assuming that it was not configured into busybox for size vs. usefulness. A dhcp server is something that's very rarely needed, and from an architectural view should be run from an extension.
-
udhcpd is essential to tc-terminal-server which is in TC base (netboot).
-
Ok, dhcp server isn't the biggest problem.
What about the others?
-
Everything should be doable, but I don't think there's an extension for the RIP stuff.
-
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/dnsmasq.tcz.info
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/busybox-httpd.tcz.info
...would be available.
Also have a look at following which doesn't seem to be available at this moment, in case you would require it for your purposes:
http://forum.tinycorelinux.net/index.php?topic=7202.0
-
Ok, so we need bridge-utils to act like a switch or router with the multiple ethernet interfaces. This was the thing that I was missing :)
As for the web configuration interface: Webmin can be used:
http://www.webmin.com/index.html (http://www.webmin.com/index.html)
(or you can just make your own WebGUI if you want to ;))
As for the SPI firewall, you can configure iptables, here is a howto:
http://forums.pcper.com/showthread.php?t=432469 (http://forums.pcper.com/showthread.php?t=432469)
Or you can just use Configserver Security & Firewall scripts:
http://www.configserver.com/cp/csf.html (http://www.configserver.com/cp/csf.html)
-
Ok, so we need bridge-utils to act like a switch or router with the multiple ethernet interfaces. This was the thing that I was missing :)
I had overlooked that there is an existing extension, my bad :-\
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/bridge-utils.tcz.info