* [LARTC] fwmark / MARK / --set-mark syntax never run on my system! Search step by step help.
@ 2004-05-21 7:48 Holger
2004-05-21 10:33 ` [LARTC] fwmark / MARK / --set-mark syntax never run on my system! Artūras Šlajus
2004-05-21 12:07 ` [LARTC] fwmark / MARK / --set-mark syntax never run on my system!Search step by step help Holger
0 siblings, 2 replies; 3+ messages in thread
From: Holger @ 2004-05-21 7:48 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 725 bytes --]
Hello!
This arguments never run on my system, but I need this:
#!/bin/bash -x
echo "1"
iptables -t mangle -p tcp -d 0/0 --dport 80 -j MARK --set-mark 2
echo "2"
echo "201 T1" >> /etc/iproute2/rt_tables
echo "3"
ip rule add fwmark 2 table T1
echo "4"
ip route add default via 192.168.21.2 dev eth1 table T1
echo "5"
ip route flush cache
Errors:
debian:~# sh portroute
1
iptables v1.2.6a: no command specified
Try `iptables -h' or 'iptables --help' for more information.
2
3
RTNETLINK answers: Invalid argument
4
RTNETLINK answers: File exists
5
When you know what is wrong, please send a step by step tutorial or personal in german at my e-mail addy.
Thank you very much.
[-- Attachment #2: Type: text/html, Size: 2003 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] fwmark / MARK / --set-mark syntax never run on my system!
2004-05-21 7:48 [LARTC] fwmark / MARK / --set-mark syntax never run on my system! Search step by step help Holger
@ 2004-05-21 10:33 ` Artūras Šlajus
2004-05-21 12:07 ` [LARTC] fwmark / MARK / --set-mark syntax never run on my system!Search step by step help Holger
1 sibling, 0 replies; 3+ messages in thread
From: Artūras Šlajus @ 2004-05-21 10:33 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 804 bytes --]
Holger wrote:
> Hello!
>
> This arguments never run on my system, but I need this:
>
>
> #!/bin/bash -x
>
> echo "1"
> iptables -t mangle -p tcp -d 0/0 --dport 80 -j MARK --set-mark 2
To what chain this rule goes? Probably FORWARD
iptables -t mangle -I FORWARD -p tcp -d 0/0 --dport 80 -j MARK --set-mark 2
> echo "2"
> echo "201 T1" >> /etc/iproute2/rt_tables
>
> echo "3"
> ip rule add fwmark 2 table T1
ip rule add fwmark 2 lookup T1
> echo "4"
> ip route add default via 192.168.21.2 dev eth1 table T1
You probably still have old route
> When you know what is wrong, please send a step by step tutorial or
> personal in german at my e-mail addy.
I think it's lame to be admin and ask step by step tutorials
Afterall, what is your head meant for?
> Thank you very much.
You're welcome.
[-- Attachment #2: x11.vcf --]
[-- Type: text/x-vcard, Size: 250 bytes --]
begin:vcard
fn;quoted-printable:Art=C5=ABras =C5=A0lajus
n;quoted-printable;quoted-printable:=C5=A0lajus;Art=C5=ABras
email;internet:x11@h2o.pieva.net
tel;cell:+37068958733
x-mozilla-html:FALSE
url:http://h2o.sky.lt/
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] fwmark / MARK / --set-mark syntax never run on my system!Search step by step help.
2004-05-21 7:48 [LARTC] fwmark / MARK / --set-mark syntax never run on my system! Search step by step help Holger
2004-05-21 10:33 ` [LARTC] fwmark / MARK / --set-mark syntax never run on my system! Artūras Šlajus
@ 2004-05-21 12:07 ` Holger
1 sibling, 0 replies; 3+ messages in thread
From: Holger @ 2004-05-21 12:07 UTC (permalink / raw)
To: lartc
Thanks for the comments!
Sorry, I`m a technical study on a school and newcomer in linux routing, but
I have a project to shaping multiple dual DSL line at school.
The LARTC multiple providers makes the job very well, but I must try control
the traffic per ports (port80 oder port21 and so on).
I have made the changes:
____________________________________________________________________________
__
#!/bin/bash -x
echo "1"
iptables -t mangle -I FORWARD -p tcp -d 0/0 --dport 80 -j MARK --set-mark 2
echo "2"
echo "201 T1" >> /etc/iproute2/rt_tables
echo "3"
ip rule add fwmark 2 lookup T1
echo "4"
ip route add default via 192.168.21.2 dev eth1 table T1
echo "5"
ip route flush cache
____________________________________________________________________________
__
but the old FWMARK-problem:
debian:~# sh portroute
1
2
3
RTNETLINK answers: Invalid argument
4
5
I search the problem until this time in kernel options, but I never find a
fwmark-option or modul.
I use Debian Woody or Debian on 2.4.26 Kernel.
Thanks very, very much, Holger
----- Original Message -----
From: Artūras Šlajus <x11@h2o.pieva.net>
To: Holger <fte112@gmx.de>
Cc: <lartc@mailman.ds9a.nl>
Sent: Friday, May 21, 2004 12:33 PM
Subject: Re: [LARTC] fwmark / MARK / --set-mark syntax never run on my
system!Search step by step help.
> Holger wrote:
> > Hello!
> >
> > This arguments never run on my system, but I need this:
> >
> >
> > #!/bin/bash -x
> >
> > echo "1"
> > iptables -t mangle -p tcp -d 0/0 --dport 80 -j MARK --set-mark 2
> To what chain this rule goes? Probably FORWARD
> iptables -t mangle -I FORWARD -p tcp -d 0/0 --dport 80 -j MARK --set-mark
2
>
> > echo "2"
> > echo "201 T1" >> /etc/iproute2/rt_tables
> >
> > echo "3"
> > ip rule add fwmark 2 table T1
> ip rule add fwmark 2 lookup T1
>
> > echo "4"
> > ip route add default via 192.168.21.2 dev eth1 table T1
> You probably still have old route
>
> > When you know what is wrong, please send a step by step tutorial or
> > personal in german at my e-mail addy.
> I think it's lame to be admin and ask step by step tutorials
> Afterall, what is your head meant for?
>
> > Thank you very much.
> You're welcome.
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-21 12:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-21 7:48 [LARTC] fwmark / MARK / --set-mark syntax never run on my system! Search step by step help Holger
2004-05-21 10:33 ` [LARTC] fwmark / MARK / --set-mark syntax never run on my system! Artūras Šlajus
2004-05-21 12:07 ` [LARTC] fwmark / MARK / --set-mark syntax never run on my system!Search step by step help Holger
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.