iptables

administration tool for IPv4 packet filtering and NAT

This is what can be used to route outgoing data connections from an FTP server over two lines based on the available bandwidth at the time the data connection was started. Mark based on available bandwidth:
copy
40
9
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 1This is what can be used to route outgoing data connections from an FTP server over two lines based on the available bandwidth at the time the data connection was started. Mark based on available bandwidth:

details |