hi there,
i look like u want the linux box as a router there i would do this
linux - eth0 connected to internet either DSL/Cable
linux - eth1 connected to Windows box
eth0 - public IP range: x.x.x.x
eth1 - private IP range: 192.168.1.x
Windows eth0 IP range: 192.168.1.x (but not the same as linux eth0)
Linux Configuration
Install Linux as standard with iptables.
configure
eth0 x.x.x.x mask x.x.x.x gw x.x.x.x (info from your ISP)
eth1, 192.168.1.x mask 255.255.255.0 (no GW cos u are the GW)
enable ip4_forwarding command is
"echo 1 > /proc/sys/net/ipv4/ip_forward"
configure iptable
iptables -A FORWARD -s 192.168.1.0/24 -d 0.0.0.0/24
iptables -A FORWARD -s 0.0.0.0/24 -d 192.168.1.0/24
iptables-save (to save the settings)
iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- x.x.x.x/24 192.168.1.0/24
ACCEPT all -- 192.168.1.0/24 x.x.x.x/24
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
x.x.x.x is the your public IP range.
Windows eth0 IP range: 192.168.1.x mask 255.255.255.0 gw linux box
Now test the router,
First ping the router from your Windows
Next try to surf.
Remember this is a basic setup have no firewall protection.
http://www.netfilter.org/documentati...NAT-HOWTO.html
NAT will provide protection for all machines sitting behind the router.