Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Keith Baker <toaster@cybercom.net>
To: Quant-X Alpha Linux Support <support@quant-x.com>
Cc: axp-list@redhat.com
Subject: Re: ipchains! HOWTO masq?
Date: Tue, 25 Aug 1998 22:06:40 -0400 (EDT)	[thread overview]
Message-ID: <Pine.BSI.3.95.980825215549.9838A-100000@shell1.cybercom.net> (raw)
In-Reply-To: <199808251133.NAA00771@stefan.sime.com>

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
> 
> 


      reply	other threads:[~1998-08-26  2:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-25  5:57 ipchains! HOWTO masq? Keith Baker
1998-08-25 11:33 ` Quant-X Alpha Linux Support
1998-08-26  2:06   ` Keith Baker [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox