View Full Version : Knoppix PC as a gateway problem

08-30-2003, 04:01 PM
Ok, I'm running Knoppix 3.2 off the CD on a PC with no HDD. I'd like to set this computer up as the gateway for my network. I've got internet access on the Knoppix box, set up eth1 (LAN NIC) to have the proper settings using the netcardconfig utility, insert my barebones IPTables settings that should allow NAT, IPMasq, etc... but to no avail my network still can't access the network. Let me know what other information you guys might need. Both cards have been detected as an aside.

On another note, could the problem be the fact that I've got no writable media on this computer, and therefore my rules for iptables are just getting dumped after inserting them?

09-13-2003, 07:29 AM
Hey there orcsoul
I'm doing the same thing but with a hdd in the machine.
does the knoppix box have an internal modem???
if not you need to setup a eth0 for the other ethernet card.

the iptables shouldnt be dumped when you put them in as it's stored in the ram
but the one thing you need to do is re-enter it every time you turn the machine on.
you need to set up routing if you havent already
and you need to enable fowarding (ill tell you later how to do it)
ps. more later
Hope this sorts it out for now

09-14-2003, 07:57 AM
how to enable fowarding
the quick way is at the prompt type the following
"echo 1 > /proc/sys/net/ipv4/conf/eth0/fowarding"
then repeat for eth1 by putting a 1 inplace of the 0
this means your two network card can talk to each other.

routing - i'm still sorting this one out my self but to get the internet on knoppix add the following to the routing tables by using route.
ipaddress gateway mask (ipaddress of your modem here)

that should work, if not just put a post here with some details.