[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipchains-list
Subject:    [IPChains]  IPChains Question
From:       "David Hansen Jr." <dnhansen () lakeport ! k12 ! ca ! us>
Date:       2002-03-22 18:10:12
[Download RAW message or body]

Ok, I've been racking my brain trying to get this working.  What I've got is 
a linux box with 2 nics.  eth0 has a real IP.  eth1 has 192.168.0.1.  That 
network works fine.  Now, on the 192 network, I've got another linux box.  
This box has eth1 as 199.168.0.254 and eth0 as 100.100.100.1.  Now, on the 
100.100.100.0 network, I can see the 100 network as well as the 192 network.  
My problem is that I want the 100 network to be able to get out to the rest 
of the world as well.  I've got the default route of box2 set to 192.168.0.1, 
but I still can't get out.  My current basic config is:

box1:
echo 1 > /proc/sys/net/ipv4/ip_forward
ipchains -F forward
ipchains -P forward DENY
ipchains -A forward -s 192.168.0.0/24 -j MASQ
ipchains -A forward -i eth0 -j MASQ

box2:
echo 1 > /proc/sys/net/ipv4/ip_forward
ipchains -F forward
ipchains -P forward DENY
ipchains -A forward -s 192.168.0.0/24 -j MASQ
ipchains -A forward -i eth1 -j MASQ


Any ideas here would be great.

Thank you kindly,
David Hansen Jr.
dnhansen@lakeport.k12.ca.us
_______________________________________________
IPChains-list mailing list
IPChains-list@lists.balius.com
http://lists.balius.com/mailman/listinfo/ipchains-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic