----- Original Message ----- From: "Alexis" <alexis@xxxxxxxxxxxx> To: "Minh Cao" <caom@xxxxxxxxxxx> 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" <caom@xxxxxxxxxxx> > To: <netfilter@xxxxxxxxxxxxxxxxxxx> > 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 > > > > > > > > >