From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QXJ0xatyYXMgxaBsYWp1cw==?= Date: Fri, 21 May 2004 10:33:50 +0000 Subject: Re: [LARTC] fwmark / MARK / --set-mark syntax never run on my system! Message-Id: <40ADDB0E.10006@h2o.pieva.net> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------000203090609060104050508" List-Id: References: <000c01c43f08$12e1e960$0314a8c0@de> In-Reply-To: <000c01c43f08$12e1e960$0314a8c0@de> To: lartc@vger.kernel.org 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-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/