All of lore.kernel.org
 help / color / mirror / Atom feed
* Target ROUTE
@ 2005-01-05 11:23 Júlio César de Magalhães
  2005-01-05 12:31 ` Leonardo Rodrigues Magalhães
  2005-01-07 11:32 ` Askar
  0 siblings, 2 replies; 4+ messages in thread
From: Júlio César de Magalhães @ 2005-01-05 11:23 UTC (permalink / raw)
  To: netfilter

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Target ROUTE
  2005-01-05 12:31 ` Leonardo Rodrigues Magalhães
@ 2005-01-05 12:23   ` Mateus Cordeiro Inssa
  0 siblings, 0 replies; 4+ messages in thread
From: Mateus Cordeiro Inssa @ 2005-01-05 12:23 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 2137 bytes --]


  Or just use de MARK target and use iproute2 to route by mark.

  []'s

Em Quarta 05 Janeiro 2005 10:31, Leonardo Rodrigues Magalhães escreveu:
>     That means your kernel or/AND iptables doesnt have the ROUTE target
> compiled and ready for use.
>
>     Try the command:    iptables -j ROUTE --help
>
>     If ROUTE target is compiled, you should see something like this:
>
> ROUTE target v1.8 options:
>     --oif       ifname          Route the packet through `ifname' network
> interface
>     --iif       ifname          Change the packet's incoming interface to
> `ifname'
>     --gw        ip              Route the packet via this gateway
>     --continue                  Route the packet and continue traversing
> the rules. Not valid with --iif.
>
>     on the end of the help message. If you see only the iptables help, that
> means ROUTE is really not compiled.
>
>     If that's the case, you'll need to get a patch-o-matic file, apply
> ROUTE patch on your kernel source, recompile and install the new kernel and
> probably recompile iptables also.
>
>
>     Sincerily,
>     Leonardo Rodrigues
>
>
> ----- Original Message -----
> From: "Júlio César de Magalhães" <jcesar@fnde.gov.br>
> To: <netfilter@lists.netfilter.org>
> Sent: Wednesday, January 05, 2005 8:23 AM
> Subject: Target ROUTE
>
>
> 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

-- 
Mateus Cordeiro Inssa
--------------------------------------
Linux User: 76186 Kernel: 2.6.10-rc2mateus
ICQ (Kopete): 15243895
AIM: blaublaux
MSN: mateusinssa@hotmail.com
--------------------------------------
mateus@hyperdrive.com.br

Qua Jan  5 10:22:08 BRST 2005

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Target ROUTE
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Leonardo Rodrigues Magalhães @ 2005-01-05 12:31 UTC (permalink / raw)
  To: Júlio César de Magalhães, netfilter


    That means your kernel or/AND iptables doesnt have the ROUTE target 
compiled and ready for use.

    Try the command:    iptables -j ROUTE --help

    If ROUTE target is compiled, you should see something like this:

ROUTE target v1.8 options:
    --oif       ifname          Route the packet through `ifname' network 
interface
    --iif       ifname          Change the packet's incoming interface to 
`ifname'
    --gw        ip              Route the packet via this gateway
    --continue                  Route the packet and continue traversing the
                                rules. Not valid with --iif.

    on the end of the help message. If you see only the iptables help, that 
means ROUTE is really not compiled.

    If that's the case, you'll need to get a patch-o-matic file, apply ROUTE 
patch on your kernel source, recompile and install the new kernel and 
probably recompile iptables also.


    Sincerily,
    Leonardo Rodrigues


----- Original Message ----- 
From: "Júlio César de Magalhães" <jcesar@fnde.gov.br>
To: <netfilter@lists.netfilter.org>
Sent: Wednesday, January 05, 2005 8:23 AM
Subject: Target ROUTE


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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Target ROUTE
  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-07 11:32 ` Askar
  1 sibling, 0 replies; 4+ messages in thread
From: Askar @ 2005-01-07 11:32 UTC (permalink / raw)
  To: Júlio César de Magalhães; +Cc: netfilter

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)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-01-07 11:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.