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.