Linux Netfilter discussions
 help / color / mirror / Atom feed
* Policy Based Routing Problem
@ 2007-09-24 18:15 Jens Wachtel - Partyfans Ltd.
  0 siblings, 0 replies; only message in thread
From: Jens Wachtel - Partyfans Ltd. @ 2007-09-24 18:15 UTC (permalink / raw)
  To: netfilter

Hello,

First i must say, that this is my first mailinglist entry i've ever wrote.
(So, please sorry if i did anything wrong!)

I have the following problem:

I must make a policy based routing, and for that i  tried two tutorials.
One of them
http://lartc.org/lartc.html#LARTC.NETFILTER

First, it does not work and i think it must be something to do with the 
iptables version, cause
-> on a testing machine i use (Debian 3.1 with installed iptables 1.2.11)
-> and my production machine (Debian 4.0 Etch with installed 1.3.6)

To route the traffic i must use this command

# iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 21 \
 -j MARK --set-mark 1

(i do the other things correctly how discribed)
And on this command my Debian 3.1 machine do not bring a warning!
But if i type this command to my Debian Etch Machine, the following 
error occurs:

www01:~# iptables -A PREROUTING -t mangle -p tcp -d 172.16.32.2 --dport 
21 -j MARK --set-mark 1 -v
MARK  tcp opt -- in * out *  0.0.0.0/0  -> 172.16.32.2  tcp dpt:21 MARK 
set 0x1
iptables: Invalid argument

Sadly i cannot probe my scenario with Debian 3.1, so no idea if this 
would work.
But fact is on my 4.0 Machine with newer iptables version, i became 
"Invalid argument"

I look at the man page and tried some other things and other orders but 
nothing work.
So sadly i am not an iptables guru and have no more ideas what i could to do

Do anybody have an idea what i do wrong?

Thanks for your help

regards,
Jens



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-24 18:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-24 18:15 Policy Based Routing Problem Jens Wachtel - Partyfans Ltd.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox