Linux routing help

silverpig

Lifer
Jul 29, 2001
27,703
12
81
Okay, here's what I've got:


Router machine: running linux mandrake. 2 NICs installed.

I've set eth0 to be connected to the cable modem and is obtaining it's IP via DHCP. No problems here as I can access the internet with this machine.

eth1 is set to have an ip address of 192.168.0.1 and is the default gateway for my network. I've run netconf and made sure both NICs are enabled, and that this one has this address.

I've also set up the DNS servers to the addresses provided by my ISP.

I've also added the lines:

echo "1" /proc/sys/net/ipv4/ip_forward
ipfwadm -F -p deny
ipfwadm -F -a m -S192.168.0.2/24 -D0.0.0.0/0

to /etc/rc.d/rc.local


Now, my client box is running XP pro, and I've manually edited my network settings to match that of the linux box (xp box's ip is 192.168.0.2). I can ping the linux box from the XP box and vice versa (400 microsecond pings w00t), but I can't access the 'net from my XP box.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
ipfwadm is the firewall config util for 2.0 kernels, you should probably be using either ipchains (2.2 or 2.4) or iptables (2.4).
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
Thanks for the direction. I'm using iptables now. Found a good tutorial, and it's all up and running. :)


now to get everything else working...