From mboxrd@z Thu Jan 1 00:00:00 1970 From: capsx Subject: Re: POSTROUTING Date: Wed, 18 Feb 2004 20:26:54 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <4033AE6E.4010008@divx.team.lv> References: Reply-To: capsx@divx.team.lv Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" Cc: Netfilter ! I want as source to specify a chain not -s 10.0.0.0/27 but something like -s LOCAL_NET_CHAIN -[capsx]- giovanni costagliola wrote: > ?? > > try to explain what you mean. > > *g > > *g> -----Messaggio originale----- > *g> Da: netfilter-admin@lists.netfilter.org > *g> [mailto:netfilter-admin@lists.netfilter.org]Per conto di capsx > *g> Inviato: mercoledi 18 febbraio 2004 19.07 > *g> A: Netfilter > *g> Oggetto: Re: POSTROUTING > *g> *g> *g> *g> iptables -N LOCAL_NET <- new chain > *g> iptables -A INPUT -i eth1 -s 10.0.0.9 -j LOCAL_NET <- add adress to *g> chain LOCAL_NET > *g> *g> is there something wrong ? > *g> *g> *g> -[capsx]- > *g> *g> *g> Alexis wrote: > *g> > But, this is not right, LOCAL_NET is not a target, you need at least to > *g> > create a new chain called LOCAL_NET to use it as a target. > *g> > *g> > Im not shure if you can use a chain as a match. > *g> > *g> > *g> > *g> > On Wed, 2004-02-18 at 12:08, capsx wrote: > *g> > *g> >>Hello! > *g> >> > *g> >>Is it possible in POSTROUTING as source to specify a chain: > *g> >> > *g> >>f.e. > *g> >> > *g> >>iptables -N LOCAL_NET > *g> >>iptables -A INPUT -i eth1 -s 10.0.0.9 -j LOCAL_NET > *g> >> > *g> >>iptables -t nat -A POSTROUTING -o eth0 -s LOCAL_NET -j SNAT --to ip.ad.re.ss > *g> *g> >