[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: More IPtable help




On Tue, 17 Jul 2001, Michael Wood wrote:

> Date: Tue, 17 Jul 2001 08:21:50 +0200
> From: Michael Wood <wood@kingsley.co.za>
> To: dude <dude@deletia.com>
> Subject: Re: More IPtable help
>
> Have you tried adding "-A POSTROUTING" to line A?
>
> I haven't used IP tables yet, so I could be completely wrong,
> but that would be my guess...


Doh!.

Yes, that was the missing ingredient.
Thankx



>
> On Mon, Jul 16, 2001 at 04:34:22PM -0400, dude wrote:
> >
> >
> >
> > well, the thing is that i have four clients
> > with IP's of 	192.168.2.2 tank
> > 		192.168.2.3 text
> > 		192.168.2.4 pooky
> > 		192.168.2.20 evvie
> >
> > I think the problem is that none of them can
> > get to the nameserver from my ISP.
> >
> > Unless I use Line B (but this seems to open things up way too much).,
> >
> > > * dude (dude@deletia.com) [010715 18:17]:
> > > <snip>
> > > > So my question is:
> > > > Why doesnt LINE A work?
> > > <snip>
> > > > INTERNAL_NETWORK=192.168.2.1/27
> > > > #LINE A
> > > > $IPTABLES -t nat -s $INTERNAL_NETWORK -d ! $INTERNAL_NETWORK -o $EXTERNAL_IFACE -j MASQUERADE
> > > >
> > > > #LINE B
> > > > #iptables -t nat -A POSTROUTING -j MASQUERADE
> > > >
> > > <snip>



Reply to: