[LARTC] fwmark / MARK / --set-mark syntax never run on my system! Search step by step help.

Artūras Šlajus x11@h2o.pieva.net
Fri, 21 May 2004 13:33:50 +0300


This is a multi-part message in MIME format.
--------------000203090609060104050508
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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.

--------------000203090609060104050508
Content-Type: text/x-vcard; charset=utf8;
 name="x11.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="x11.vcf"

YmVnaW46dmNhcmQNCmZuO3F1b3RlZC1wcmludGFibGU6QXJ0PUM1PUFCcmFzID1DNT1BMGxh
anVzDQpuO3F1b3RlZC1wcmludGFibGU7cXVvdGVkLXByaW50YWJsZTo9QzU9QTBsYWp1cztB
cnQ9QzU9QUJyYXMNCmVtYWlsO2ludGVybmV0OngxMUBoMm8ucGlldmEubmV0DQp0ZWw7Y2Vs
bDorMzcwNjg5NTg3MzMNCngtbW96aWxsYS1odG1sOkZBTFNFDQp1cmw6aHR0cDovL2gyby5z
a3kubHQvDQp2ZXJzaW9uOjIuMQ0KZW5kOnZjYXJkDQoNCg==
--------------000203090609060104050508--