hey guys,

recently, I set up a diskless linux box.

the NFS server box which provides the file system for the diskless 
box also serves as its gateway to the internet, using NAT.

Everything appears to be working, ie, the nfs mounts work fine and 
I can access the internet from the diskless box, however the 
internet acces is very very slow.

On the nfs server / nat box I perform an apt-get update and get 
100+ KB/sec.  I perform the same on the diskless box and get at 
best 8 KB/sec.

Now, I have it set up so that the diskless box only has one 10 Mbs 
ethernet card, and both the nfs traffic and internet traffic are 
going over it.  I understand that the nfs traffic could be slowing 
things down, but there is no way it could be affecting it this much.

On top of all this, the non-us servers simply time out for the 
diskless box, even when they work flawlessly from the server box.

the server is running debian, kernel 2.4.12.

the server has two NICs, eth0 is my internet connection and eth1 
connects to the diskless box.

here is my "firewall" script run from the server:

#!/bin/bash

# Turn on IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

iptables --flush
iptables --table nat --flush
iptables --delete-chain 
iptables --table nat --delete-chain

iptables --table nat --append POSTROUTING --out-interface eth0 -j 
MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT

route add -net 192.168.0.0 netmask 255.255.255.0 gw 66.45.64.4 dev 
eth1

# useful commands:
# route -n
# ip route show

---

any ideas what the hangup could be?

thanks,
jason
[EMAIL PROTECTED]


---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to