Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Limitare upload ssh

1 view
Skip to first unread message

Antonio

unread,
Jan 12, 2009, 3:31:22 PM1/12/09
to
Ciao a tutti!
Ho una rete composta da 3 pc di cui uno è un gateway linux che fa anche da
server ssh. Dato che questo computer mi è utile per eseguire gli upload via
ssh dei miei file, qualcuno è in grado di darmi delle indicazioni su come
limitare la banda in uscita? Sto perdendo la testa nel leggere i manuali di
"TC" offerti da molti tutorial Linux e non ci sto capendo tanto.

Grazie


Bo

unread,
Oct 25, 2009, 9:11:29 AM10/25/09
to

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...

0 new messages