From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 14307 invoked from network); 26 Aug 1998 02:06:43 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 26 Aug 1998 02:06:43 -0000 Received: from zephyr.cybercom.net (zephyr.cybercom.net [209.21.146.100]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id WAA09324 for ; Tue, 25 Aug 1998 22:06:50 -0400 Received: from shell1.cybercom.net (toaster@shell1.cybercom.net [209.21.136.6]) by zephyr.cybercom.net (8.8.7/8.8.7) with ESMTP id WAA19955; Tue, 25 Aug 1998 22:06:41 -0400 (EDT) Received: from localhost (toaster@localhost) by shell1.cybercom.net (8.8.5/8.8.5) with SMTP id WAA09922; Tue, 25 Aug 1998 22:06:40 -0400 (EDT) Date: Tue, 25 Aug 1998 22:06:40 -0400 (EDT) From: Keith Baker To: Quant-X Alpha Linux Support cc: axp-list@redhat.com Subject: Re: ipchains! HOWTO masq? In-Reply-To: <199808251133.NAA00771@stefan.sime.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Ok... I sorta get it... On Tue, 25 Aug 1998, Quant-X Alpha Linux Support wrote: > on_ipchains () { > /sbin/ipchains -F input creates chain called "input" > /sbin/ipchains -F output duh > /sbin/ipchains -F forward duh > /sbin/ipchains -P input REJECT sets defualt action to reject > /sbin/ipchains -P output REJECT same > /sbin/ipchains -P forward REJECT same > /sbin/ipchains -A input -s 192.168.175.0/24 -d 0.0.0.0/0 -i eth0 -j ACCEPT umm... whats 0.0.0.0/0 is that "let everything from the 192.168.175.0 network going to any address out" Where does it go when it is accepted? and how does it know > /sbin/ipchains -A output -d 192.168.175.0/24 -s 0.0.0.0/0 -i eth0 -j ACCEPT anything from the outside go through (Wouldn't that be eth1? (or some other dev)) > alright... you're losing me... ack > /sbin/ipchains -A input -d $MYIP -s 0.0.0.0/0 -i $DEV -j ACCEPT > /sbin/ipchains -A output -s $MYIP -d 0.0.0.0/0 -i $DEV -j ACCEPT > > /sbin/ipchains -A forward -b -s 192.168.175.0/24 -d 0.0.0.0/0 -j MASQ > } > > > ciao - > Stefan > > -- > > Quant-X Service & Ph: (+43) 4212 6004-0 > Consulting Ges.m.b.H. Fax: (+43) 4212 600420 > http://www.quant-x.com Email: support@quant-x.com > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > >