Grazie
Sto provando con iptables
comando da bash
la limitazione della banda è però un argomento troppo difficile per un
neofita come me...
dal "man iptables"
from an FTP server over two lines based on the available
bandwidth at the time the data connection was started:
# Estimate outgoing rates
iptables -t mangle
-A POSTROUTING
-o eth0 -j RATEEST --rateest-name
eth0 --rateest-interval 250ms --rateest-ewma 0.5s
iptables -t mangle -A POSTROUTING -o ppp0 -j RATEEST
--rateest-name
ppp0 --rateest-interval 250ms --rateest-ewma 0.5s
# Mark based on available bandwidth
iptables
-t mangle -A balance -m conntrack --ctstate
NEW -m helper
--helper ftp -m rateest
--rateest-delta
--rateest1 eth0
--rateest-bps1 2.5mbit
--rateest-gt
--rateest2 ppp0
--rateest-bps2 2mbit -j CONNMARK
--set-mark 1
iptables -t mangle
-A balance -m conntrack --ctstate NEW -m helper
--helper ftp -m rateest --rateest-delta --rateest1 ppp0
--rateest-bps1 2mbit --rateest-gt
--rateest2 eth0 --rateest-bps2 2.5mbit -j CONNMARK
--set-mark 2
fine "man iptables"
iptables -L vedi le "tabelle"
sempre da su o da sudo
le CHAIN sono di ingresso e uscita
PER scheda di rete...