witam, generalnie jestem zadowolony z tomato 1.21 ale nie rozumiem 2 rzeczy:
1. co to za parametr --set-return ? czy on ustala TOS ?
2. pierwsza cyfra parametru --set-return okresla prio (na moim wydruku 1-7). a trzecia czasem ma wartosc 1, czasem jej nie ma... i zalezy chyba od kolejnosci regol. Ten sam rule przeniosiony o oczko wyzej/nizej nagle ustawia sobie te 1 na 3 cyfrze. Czy ktos wie dlaczego ?
ps. Jesli mozna prosze o Wasze wydruki
cat /etc/iptables | grep "QOS"
:QOSO - [0:0]
-A QOSO -j CONNMARK --restore-mark --mask 0xff
-A QOSO -m connmark ! --mark 0/0xff00 -j RETURN
-A QOSO -p udp --sport 48805 -j CONNMARK --set-return 0x107/0xFF
-A QOSO -p tcp --sport 48805 -j CONNMARK --set-return 0x107/0xFF
-A QOSO -p udp --dport 53 -m bcount --range 0x0-0x7ff -j CONNMARK --set-return 0x1/0xFF
-A QOSO -p tcp --dport 53 -m bcount --range 0x0-0x7ff -j CONNMARK --set-return 0x1/0xFF
-A QOSO -p udp --dport 53 -m bcount --range 0x800 -j CONNMARK --set-return 0x7/0xFF
-A QOSO -p tcp --dport 53 -m bcount --range 0x800 -j CONNMARK --set-return 0x7/0xFF
-A QOSO -p udp -s 192.168.1.101 -j CONNMARK --set-return 0x4/0xFF
-A QOSO -p tcp -s 192.168.1.101 -j CONNMARK --set-return 0x4/0xFF
-A QOSO -p udp --dport 27960:27970 -j CONNMARK --set-return 0x2/0xFF
-A QOSO -p tcp --dport 27960:27970 -j CONNMARK --set-return 0x2/0xFF
-A QOSO -p udp -m mport --dports 27015:27016,27045 -j CONNMARK --set-return 0x2/0xFF
-A QOSO -p tcp -m mport --dports 27015:27016,27045 -j CONNMARK --set-return 0x2/0xFF
-A QOSO -p tcp -m mport --dports 80,443 -m bcount --range 0x0-0x7ffff -j CONNMARK --set-return 0x2/0xFF
-A QOSO -p udp -m mport --dports 21,25 -j CONNMARK --set-return 0x3/0xFF
-A QOSO -p tcp -m mport --dports 21,25 -j CONNMARK --set-return 0x3/0xFF
-A QOSO -p tcp -m mport --dports 80,443 -m bcount --range 0x80000 -j CONNMARK --set-return 0x5/0xFF
-A QOSO -p udp -m layer7 --l7dir /etc/l7-protocols --l7proto skypetoskype -j CONNMARK --set-return 0x105/0xFF
-A QOSO -p tcp -m layer7 --l7dir /etc/l7-protocols --l7proto skypetoskype -j CONNMARK --set-return 0x105/0xFF
-A QOSO -p udp -m layer7 --l7dir /etc/l7-protocols --l7proto httpaudio -j CONNMARK --set-return 0x105/0xFF
-A QOSO -p tcp -m layer7 --l7dir /etc/l7-protocols --l7proto httpaudio -j CONNMARK --set-return 0x105/0xFF
-A QOSO -p udp -m layer7 --l7dir /etc/l7-protocols --l7proto httpvideo -j CONNMARK --set-return 0x105/0xFF
-A QOSO -p tcp -m layer7 --l7dir /etc/l7-protocols --l7proto httpvideo -j CONNMARK --set-return 0x105/0xFF
-A QOSO -p udp -m layer7 --l7dir /etc/l7-protocols --l7proto shoutcast -j CONNMARK --set-return 0x105/0xFF
-A QOSO -p tcp -m layer7 --l7dir /etc/l7-protocols --l7proto shoutcast -j CONNMARK --set-return 0x105/0xFF
-I QOSO -j BCOUNT
-A QOSO -j CONNMARK --set-return 0x6
-A FORWARD -o vlan1 -j QOSO
-A OUTPUT -o vlan1 -j QOSO
|