From: Askar <askarali@gmail.com>
To: "Júlio César de Magalhães" <jcesar@fnde.gov.br>
Cc: netfilter@lists.netfilter.org
Subject: Re: Target ROUTE
Date: Fri, 7 Jan 2005 16:32:19 +0500 [thread overview]
Message-ID: <a0f69e50501070332637519af@mail.gmail.com> (raw)
In-Reply-To: <20050105092351.2652e925@jcesar.fnde.gov.br>
why not using MARKing feature of iptables and then route the marked
packet via iproute2 like...
#iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 995 -j MARK
--set-mark 4
this is iproute2 part
ip rule add fwmark 4 table another.out
ip route add default via $GATEWAY dev eth0 table another.out
ip route flush cache
regards
On Wed, 5 Jan 2005 09:23:51 -0200, Júlio César de Magalhães
<jcesar@fnde.gov.br> wrote:
> i need all my network trafic to any host on 995 port goes to another gateway then the default. So i execute the following iptables command:
> iptables -t mangle -A OUTPUT -p tcp --dport 995 -j ROUTE --gw x.x.x.x
> where x.x.x.x is my another gateway .
>
> The problem when i execute the iptables command above is this:
> iptables: No chain/target/match by that name
>
> thanks a lot
>
> Júlio César de Magalhães
> Analista de Suporte - Poliedro/FNDE
> (61) 81177547 Brasília - DF
>
>
--
(after bouncing head on desk for days trying to get mine working, I'll make
your life a little easier)
prev parent reply other threads:[~2005-01-07 11:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-05 11:23 Target ROUTE Júlio César de Magalhães
2005-01-05 12:31 ` Leonardo Rodrigues Magalhães
2005-01-05 12:23 ` Mateus Cordeiro Inssa
2005-01-07 11:32 ` Askar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a0f69e50501070332637519af@mail.gmail.com \
--to=askarali@gmail.com \
--cc=jcesar@fnde.gov.br \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.