Example 6 (the same as example 5 but with an additional condition)
Goal
You are an administrator of your office network. Your PCs have IP
addresses, ranging 192.168.3.2-192.168.3.255. The office network is
connected to the Internet by a NAT router running Microsoft Windows
Server 2003 (192.168.3.1). Your goal is to count the
Internet-traffic for every PC of the office network. The traffic
between the PCs within the office network must not be accounted.
You have an additional condition:
- to count the total Internet traffic of the whole office
network
- to block the Internet access for a specific PC if this PC
has reached the limit of 50mb of the Internet traffic
Solution
You should do the following:
- Install TMeter Service on a PC running a NAT router
- Choose two network adapters for the traffic capture in
TMeter (the network adapter connected to the office network and the
network adapter connected to your ISP)
- Select Active Capture Mode in TMeter
- Fill in the Local Address Table (LAT) with a range
192.168.3.1-192.168.3.255
- Create the filters for the traffic accounting (one filter
per PC)
Note
Filter 1. The total Internet traffic of whole office network | ||||||||
N Rule |
Type of IP protocol |
Source address |
Source port |
Destination address |
Destination port |
Both directions |
Action for packet |
Additional condition |
1 | Any | MAC: 010203040506 | IP addresses of WAN | Yes | Count and Pass | |||
Filter 2. Internet traffic of PC 192.168.3.2. | ||||||||
N Rule |
Type of IP protocol |
Source address |
Source port |
Destination address |
Destination port |
Both directions |
Action for packet |
Additional condition |
1 | Any | 192.168.3.2 | IP addresses of WAN | Yes | Deny | When sent or recv counter is greater than 50mb | ||
2 | Any | 192.168.3.2 | IP addresses of WAN | Yes | Count | |||
Filter 3. Internet traffic of PC 192.168.3.3. | ||||||||
N Rule |
Type of IP protocol |
Source address |
Source port |
Destination address |
Destination port |
Both directions |
Action for packet |
Additional condition |
1 | Any | 192.168.3.3 | IP addresses of WAN | Yes | Deny | When sent or recv counter is greater than 50mb | ||
2 | Any | 192.168.3.3 | IP addresses of WAN | Yes | Count | |||
Filter 4. Internet traffic of PC 192.168.3.4... | ||||||||
Filter 5. Internet traffic of PC 192.168.3.5... |
Note