From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E8neO-0000UK-Ge for garchives@archives.gentoo.org; Fri, 26 Aug 2005 23:30:20 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7QNSjQS018244; Fri, 26 Aug 2005 23:28:45 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7QNSi2R017673 for ; Fri, 26 Aug 2005 23:28:44 GMT Message-Id: <200508262328.j7QNSi2R017673@robin.gentoo.org> Received: from lark.gentoo.osuosl.org ([140.211.166.177] helo=lark.gentoo.org) by smtp.gentoo.org with smtp (Exim 4.43) id 1E8neG-00086S-In for gentoo-doc-cvs@lists.gentoo.org; Fri, 26 Aug 2005 23:30:12 +0000 Received: by lark.gentoo.org (sSMTP sendmail emulation); Fri, 26 Aug 2005 23:30:10 +0000 From: "Xavier Neys" Date: Fri, 26 Aug 2005 23:30:10 +0000 To: gentoo-doc-cvs@lists.gentoo.org Subject: [gentoo-doc-cvs] cvs commit: linux-24-stateful-fw-design.xml Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-doc-cvs@gentoo.org Reply-to: docs-team@lists.gentoo.org X-Archives-Salt: 572e9267-1b5f-4dd0-8834-09ac3a2a8140 X-Archives-Hash: bdbf9899834ebaac86d55163f2e22832 neysx 05/08/26 23:30:10 Modified: xml/htdocs/doc/en/articles linux-24-stateful-fw-design.xml Log: #103863 Install iptables w/ emerge instead of ./configure.... Revision Changes Path 1.3 +15 -22 xml/htdocs/doc/en/articles/linux-24-stateful-fw-design.xml file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/linux-24-stateful-fw-design.xml?rev=1.3&content-type=text/x-cvsweb-markup&cvsroot=gentoo plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/linux-24-stateful-fw-design.xml?rev=1.3&content-type=text/plain&cvsroot=gentoo diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/linux-24-stateful-fw-design.xml.diff?r1=1.2&r2=1.3&cvsroot=gentoo Index: linux-24-stateful-fw-design.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/linux-24-stateful-fw-design.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- linux-24-stateful-fw-design.xml 15 Aug 2005 23:16:06 -0000 1.2 +++ linux-24-stateful-fw-design.xml 26 Aug 2005 23:30:10 -0000 1.3 @@ -1,5 +1,5 @@ - + @@ -22,8 +22,8 @@ version of the original article, and contains various improvements made by the Gentoo Linux Documentation team --> -1.0 -2005-07-28 +1.1 +2005-08-27 About this tutorial @@ -106,18 +106,11 @@ Before we start designing a firewall, we need to do two things. First, we need to make sure that the iptables command is available. As root, type iptables and see if it exists. If it doesn't, then we'll need to get it -installed first. Here's how: head over to the netfilter/iptables project page -(http://www.netfilter.org/) and grab the most recent version of -iptables.tar.gz (currently iptables-1.1.2.tar.gz) you -can find. Then, install it by typing in the following commands (output omitted -for brevity): +installed first. Here's how we do that:

-# tar xzvf iptables-1.1.2.tar.gz
-# cd iptables-1.1.2
-# make
-# make install
+# emerge iptables
 
@@ -620,7 +613,7 @@ if [ -e /proc/sys/net/ipv4/tcp_ecn ] then echo 0 > /proc/sys/net/ipv4/tcp_ecn -fi +fi @@ -710,7 +703,7 @@
 for x in lo eth0 eth1
 do
-        echo 1 > /proc/sys/net/ipv4/conf/${x}/rp_filter     
+        echo 1 > /proc/sys/net/ipv4/conf/${x}/rp_filter
 done
 
@@ -873,12 +866,12 @@ if [ -e /proc/sys/net/ipv4/tcp_ecn ] then echo 0 > /proc/sys/net/ipv4/tcp_ecn - fi + fi # Disable spoofing on all interfaces - for x in ${INTERFACES} - do - echo 1 > /proc/sys/net/ipv4/conf/${x}/rp_filter + for x in ${INTERFACES} + do + echo 1 > /proc/sys/net/ipv4/conf/${x}/rp_filter done if [ "$ROUTER" = "yes" ] @@ -897,7 +890,7 @@ iptables -t nat -A POSTROUTING -o ${UPLINK} -j SNAT --to ${UPIP} fi fi - + elif [ "$1" = "stop" ] then echo "Stopping firewall..." @@ -1068,12 +1061,12 @@ if [ -e /proc/sys/net/ipv4/tcp_ecn ] then echo 0 > /proc/sys/net/ipv4/tcp_ecn - fi + fi # Disable spoofing on all interfaces - for x in ${INTERFACES} + for x in ${INTERFACES} do - echo 1 > /proc/sys/net/ipv4/conf/${x}/rp_filter + echo 1 > /proc/sys/net/ipv4/conf/${x}/rp_filter done if [ "$ROUTER" = "yes" ] -- gentoo-doc-cvs@gentoo.org mailing list