From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Holger" Date: Fri, 21 May 2004 07:48:48 +0000 Subject: [LARTC] fwmark / MARK / --set-mark syntax never run on my system! Search step by step help. Message-Id: <000c01c43f08$12e1e960$0314a8c0@de> MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0009_01C43F18.D06D3740" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C43F18.D06D3740 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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. ------=_NextPart_000_0009_01C43F18.D06D3740 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello!
 
This arguments never run on my system, = but I need=20 this:
 
 
#!/bin/bash -x
 
echo "1"
iptables -t mangle -p tcp = -d 0/0=20 --dport 80 -j MARK --set-mark 2
 
echo "2"
echo "201 T1" >>=20 /etc/iproute2/rt_tables
 
echo "3"
ip rule add fwmark 2 table=20 T1
 
echo "4"
ip route add default via = 192.168.21.2=20 dev eth1 table T1
 
echo "5"
ip route flush = cache
 
Errors:
 
debian:~# sh portroute
1
iptables = v1.2.6a: no=20 command specified
Try `iptables -h' or 'iptables --help' for more=20 information.
2
3
RTNETLINK answers: Invalid = argument
4
RTNETLINK=20 answers: File exists
5
 
When you know what is wrong, please = send a step by=20 step tutorial or personal in german at my e-mail addy.
 
Thank you very = much.
------=_NextPart_000_0009_01C43F18.D06D3740-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/