This should be enough for what you  are trying to accomplish
with iptables:

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

Alternatively, you can add the following modules for better connection

/sbin/modprobe ip_conntrack
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe iptable_nat
/sbin/modprobe ip_nat_ftp

-mtm

----- Original Message ----- 
From: "Angela McCaffrey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 9:38 PM
Subject: [uug] Sharing Inet Connection


> Hello, all.  I am looking for the easiest way to set
> up a home network sharing a single internet connection
> by routing the connection through a linux machine.  I
> am running kernel 2.4.x and RedHat 8.0 with two
> ethernet cards where eth0 is a DHCP address and eth1
> is an internal address.  
> 
> Attempts at using ipchains have failed with the
> following error: 
> 
> ipchains: Incompatible with this kernel.
> 
> I have also made various attempts at using iptables,
> but without any success.  The basic idea of what I
> have attempted to do with iptables is:
> 
> iptables -P FORWARD DROP
> iptables -A FORWARD -i ppp0 10.0.0.0/255.0.0.0
> 
> I tried adding -j MASQUERADE to the last line, but
> that ended with errors.  I have also tried a multitude
> of other commands, but without any luck.
> 
> Any suggestions?
> 
> Angela
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> ____________________
> BYU Unix Users Group 
> http://uug.byu.edu/ 
> ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
> 

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to