03-Security Command Reference

HomeSupportReference GuidesCommand ReferencesH3C SecPath M9000 Command Reference(V7)(R9900)-6W10003-Security Command Reference
38-Overbilling prevention commands
Title Size Download
38-Overbilling prevention commands 51.02 KB

Overbilling prevention commands

safebilling enable

Use safebilling enable to enable overbilling prevention.

Use undo safebilling enable to disable overbilling prevention.

Syntax

safebilling enable

undo safebilling enable

Default

Overbilling prevention is disabled.

Views

System view

Predefined user roles

network-admin

context-admin

Usage guidelines

Application scenarios

Use this feature in the following scenarios:

After user A goes offline, the session with the external server does not age out promptly. The external server continues to send traffic to user A, resulting in abnormal billing for user A.

After user A goes offline, the session with the external server does not age out promptly. When new user B comes online and gets the same address as user A, user B receives a large amount of traffic from the external server intended for user A. This causes abnormal billing for user B.

Operating mechanism

When the overbilling prevention-enabled device receives a RADIUS Accounting Stop message from an access device (RADIUS client), it generates an offline user blocking entry to delete the offline user session that does not age out in time. In this way, this feature blocks the traffic from the server to the offline user.

Restrictions and guidelines

Before you configure this feature, configure the device as the RADIUS accounting server by using the primary accounting command on the access device (RADIUS client). This configuration enables the access device to send Accounting Stop messages to the device.

Examples

# Enable overbilling prevention.

<Sysname> system-view

[Sysname] safebilling enable

Related commands

display safebilling block

primary accounting (Security Command Reference)

display safebilling block

Use display safebilling block to display offline user blocking entries.

Syntax

In standalone mode:

display safebilling block [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display safebilling block [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

context-admin

context-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays entries on all cards. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays entries on all cards. (In IRF mode.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

Usage guidelines

When the firewall receives an Accounting Stop message from the specified IP, it generates an offline user blocking entry. Execute this command to view the generated offline user blocking entries.

Examples

# (In standalone mode.) Display the offline user blocking entries generated on the firewall.

<Sysname> display safebilling block

CPU 0 on slot 1:

Total block entries found: 4

Framed-IP-Address      Update time                TTL

100.100.100.113        2024-03-23 14:29:41        50s

100.100.100.114        2024-03-23 14:29:31        40s

100.100.100.112        2024-03-23 14:29:21        30s

100.100.100.111        2024-03-23 14:29:11        20s

# (In IRF mode.) Display the offline user blocking entries generated on the firewall.

<Sysname> display safebilling block

CPU 0 on Slot 1 in chassis 1:

Total block entries found: 4

Framed-IP-Address      Update time                TTL

100.100.100.113        2024-03-23 14:29:41        50s

100.100.100.114        2024-03-23 14:29:31        40s

100.100.100.112        2024-03-23 14:29:21        30s

100.100.100.111        2024-03-23 14:29:11        20s

Table 1 Command output

Field

Description

Total block entries found

Total number of blocking entries.

Framed-IP-Address

IPv4 address of an offline user.

Update time

Time when the offline user blocking entry was updated.

TTL

Remaining lifetime (in seconds) of the offline user blocking entry.

 

Related commands

safebilling enable

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us