Changes

Jump to: navigation, search

Traffic accounting with iptables

28 bytes added, 09:49, 11 March 2008
m
Robot: Automated text replacement (-VEs +containers)
Here are some scripting ideas
=== Get CTIDs of all running VEs containers ===
<pre>
host2:~/bin# cat vz-all-running
</pre>
=== Get all IPs of running VEs containers ===
<pre>
host2:~/bin# cat vz-all-running-ip
# reset the counter
iptables -Z
# update the iptables rules if there is a any change in VEscontainers
./vz-iptables-create-rules
=== Notes ===
As you see this way can be time-consuming in case of a big number of VEscontainers.
So if anybody has scripts that automate all the process — you are welcome!
2,253
edits

Navigation menu