I have done some reading on traffic control ( tc ) and cbq
on Linux.
The problem I have is I want to implement something which
I deem it a rather 'common' requirement but unable to
translate that into configuration/shell commands.
I have a Linux NAT router/firewall to internet, for example,
say :-
INTERNAL_IP=192.168.1.1/24, INTERNAL_INTERFACE=eth0
EXTERNAL_IP=192.1.2.3/24, EXTERNAL_INTERFACE=eth1
Both the internal/external network are also a LAN interfaces,
but the actual throughput at the EXTERNAL network ( bottlenecking
at the ADSL equipment or some other routers ) is only about
128k ( for example ). Given this situation, I would like to
conserve this bandwidth for IMPORTANT traffic, while the less
important traffic can use the leftover bandwith.
The IMPORTANT traffic, since I have a NAT firewall/router, is
defined as traffic coming in via 'port forwarding'. So I could
define it either at the EXTERNAL_INTERFACE, eth1, say port 11288,
or at the INTERNAL_INTERFACE, eth0, port say port 114. There
are other port forwarding services on this firewall, but there
are considered less important. So they should only use the left
over bandwidth.
So how this be configured on Linux ?