From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexis" Subject: Fw: Iptables rules Date: Wed, 14 Jan 2004 22:35:12 -0300 Sender: netfilter-admin@lists.netfilter.org Message-ID: <00fd01c3db07$d1afcfc0$0200000a@heretic> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org ----- Original Message ----- From: "Alexis" To: "Minh Cao" Sent: Wednesday, January 14, 2004 10:08 PM Subject: Re: Iptables rules > echo 1 > /proc/sys/net/ipv4/ip_forward > > > > > ----- Original Message ----- > From: "Minh Cao" > To: > Sent: Wednesday, January 14, 2004 10:04 PM > Subject: Help: Iptables rules > > > > Hi, > > > > I am new to iptables. > > Please help me to create a rules, which allows everything in and out both > > interfaces. > > > > What I have but not worked: > > iptables -A FORWARD -i $EXTIF -o $INTIF -j ACCEPT > > iptables -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT > > > > iptalbles -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE > > > > > > Thanks > > Minh > > > > > > > > >