Hi all,
I have several virtualhost on same webserver (single IP).
Question: How can I shape a specific bandwidth to each of them?
I tried with mangle and content field in this way:
chain=forward in-interface=External dst-address=192.168.1.1 protocol=tcp dst-port=80 content=domain1.com action=mark-connection new-connection-mark=domain1-conn passthrough=yes
chain=forward in-interface=External connection-mark=domain1-conn action=mark-packet new-packet-mark=domain1 passthrough=yes
Then a simple rule shapes the bandwith related to packet-mark=domain1 according to the SLA associated to that customer.
Unfortunately it works just partially, because in this way not all the traffic is captured by mangle rules so the actual bandwidth available to the customer is somehow higher than the allowed.
Basically this feature is very useful for ISPs, where layer 4 data is not enough to discriminate services hosted on the server farm; that can be extended from HTTP to FTP, SMTP, POP3, IMAP4, <streaming>, Terminal Services, VoIP, SQL.....
Did anybody solve this problem using MT?