Re: POSTROUTING

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

 



!

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@xxxxxxxxxxxxxxxxxxx
> *g> [mailto:netfilter-admin@xxxxxxxxxxxxxxxxxxx]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>
>





[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux