/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! 
/* ALSO: Don't quote this header. It makes you look lame :-) */


Well for years it's been on my Linux 2.2.x box

eth0 = $static_exposed
eth0:0 $internal_gateway 

Now I added a second nic

eth0 = static_exposed
eth1 = internal_gateway

What has worked for quite some time is;

/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ

I have tried variations of the following as taken from
http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO-6.html#Strong-IPCHAINS-Rulesets

/sbin/ipchains -A forward -i eth0 -s 192.168.7.0/24 -d 0.0.0.0/24 -j
MASQ

and there is one thing that bugs me. Do I need two gateways defined
? 
My external nic's gateway is 63.193.247.254
My internal networks gateway is 192.168.1.2 (eth1)
 
I'm back to one nic for now. Thanks.
--
Bill Schoolcraft
PO Box 210076
San Francisco, CA 94121
"UNIX, A Way of Life."

_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- 
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to