am urmatoarele reguli in mangle:

Chain PREROUTING (policy ACCEPT 32257 packets, 21M bytes)
 pkts bytes target     prot opt in     out     source               destination
32257   21M MARK       all  --  *      *       0.0.0.0/0           
0.0.0.0/0          MARK set 0x2
    0     0 MARK       all  --  *      *       62.231.119.0/24     
0.0.0.0/0          MARK set 0x1
....continua cu alte clase metro....

 1364  161K 2_str      all  --  *      *       0.0.0.0/0           
0.0.0.0/0          MARK match 0x2
20365   13M 6_str      all  --  eth1   *       0.0.0.0/0           
0.0.0.0/0          MARK match 0x1

Chain POSTROUTING (policy ACCEPT 32132 packets, 23M bytes)
 pkts bytes target     prot opt in     out     source               destination
20361   18M MARK       all  --  *      eth1    0.0.0.0/0           
0.0.0.0/0          MARK set 0x2
10392 4755K MARK       all  --  *      eth0    0.0.0.0/0           
0.0.0.0/0          MARK set 0x2
    0     0 MARK       all  --  *      eth1    62.231.119.0/24     
0.0.0.0/0          MARK set 0x1
 9831 8455K 2_rev      all  --  *      eth1    0.0.0.0/0           
0.0.0.0/0          MARK match 0x2
10530 9132K 6_rev      all  --  *      eth1    0.0.0.0/0           
0.0.0.0/0          MARK match 0x1

Chain 2_rev (1 references)
 pkts bytes target     prot opt in     out     source               destination
   94 64623 RETURN     all  --  *      eth1    0.0.0.0/0           
82.77.205.130

Chain 2_str (1 references)
 pkts bytes target     prot opt in     out     source               destination
    0     0 RETURN     all  --  *      *       82.77.205.130        0.0.0.0/0

Chain 6_rev (1 references)
 pkts bytes target     prot opt in     out     source               destination
  117 35684 RETURN     all  --  *      eth1    0.0.0.0/0           
82.77.205.130

Chain 6_str (1 references)
 pkts bytes target     prot opt in     out     source               destination
  191 18489 RETURN     all  --  eth1   *       82.77.205.130        0.0.0.0/0


traficul e marcat 0x2 net si 0x1 metro
bun, am vrut asa:
net sa se duca in filtru 2_rev si str
metro in 6_rev si str

la metro face bine contorizarile download/upload
dar la net face doar la download

ce nu este in regula?

pe langa asta, am si un proxy
pun redirect in nat catre 3128 cu mark 0x2, sa trec prin proxy doar
traficul de net
...nu functioneaza
nu se pastreaza marku si in tabela nat?


acum pe langa problema, nu ar trebui sa las marcarile doar in mangle
PREROUTING ? adica sa nu le copiez inca odata in postrouting?

--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui