Re: Linux Bridge

Nicholas J. Leon (nicholas@binary9.net)
Fri, 12 Mar 1999 13:59:36 -0500 (EST)


On Fri, 12 Mar 1999, Kris Carlier wrote:

# Bob,
#
# have you tried www.linuxrouter.org ? There you should be able to get
# everything you need to get an ethernet bridge up and running on a HD-less
# dumpster PC

Making a router-on-a-disk is easy. I just recently did that on my gateway
box (ISDN one side, ethernet the other). It was pretty simple. I used the
libraries that came in the ftp jail with Redhat (since the supplied
libc.so.6 was so small).

Then I wrote my own "init":

#!/bin/sh

export PATH=/bin:.

ldconfig
mount /proc /proc -t proc

insmod /modules/8390.o
insmod /modules/ne.o io=0x240

ifconfig eth0 206.4.67.1
ifconfig lo 127.0.0.1

syslogd # its just a "*.* @loghost"

insmod /modules/slhc.o
insmod /modules/ppp.o
insmod /modules/bsd_comp.o
insmod /modules/ppp_deflate.o

echo 1 > /proc/sys/net/ipv4/ip_forward

/bin/pppd persist connect "/bin/chat -v -f /etc/ppp/chat"

exec /bin/sh

[disk layout]

bin:
ash ifconfig kill mkdir ps sh
cat insmod ldconfig mount route syslogd
chat ipchains ls pppd routed

dev:
<snipped>

etc:
fire ld.so.cache ppp services
hosts mtab protocols syslog.conf
init passwd rpc

lib:
ld-2.0.7.so libdl.so.2 libpam_misc.so.0
ld-linux.so.2 libext2fs.so.2 libpam_misc.so.0.64
libc-2.0.7.so libext2fs.so.2.4 libproc.so.1.2.6
libc.so.6 libnsl-2.0.7.so libtermcap.so.2
libcom_err.so.2 libnsl.so.1 libtermcap.so.2.0.8
libcom_err.so.2.0 libnss_files-2.0.7.so libutil-2.0.7.so
libcrypt-2.0.7.so libnss_files.so.1 libutil.so.1
libcrypt.so.1 libpam.so libuuid.so.1
libdl-2.0.7.so libpam.so.0 libuuid.so.1.1
libdl.so.1 libpam.so.0.64
libdl.so.1.9.5 libpam_misc.so

mnt:

modules:
3c509.o 8390.o dummy.o ppp.o slhc.o
3c59x.o bsd_comp.o ne.o ppp_deflate.o

proc:

tmp:

var:
lock locks run

I'm willing to share the entire package if you wish. Its not for "public
consumption" though.

G'day!
-- n i c h o l a s j l e o n
elegance through simplicity*http://mrnick.binary9.net*nicholas@binary9.net
good fortune through truth*roaming:njllm@email.msn.com*ICQ#2170994*U+($++)
TRA#6805*not all questions have answers*pseudogeek:P+++($++)L+($++)W=lm@b9
trust no-one with an iq under 150*understand yourself before trying others

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu