Summary:
Adds a rule to the firewall, or bans/permits an existing rule.
Request specification:
Name |
Min/Max |
Type |
Description |
|
|
|
|
|
|
|
|
|
|
Firewall rule to set. |
|
|
|
|
|
Returns:
OK/Error
Example:
Setting a new rule for the specified Virtuozzo Container.
<packet version="4.0.0">
<dst>
<host>9bafbeb7-85f7-499e-a210-40e00850a5f3</host>
</dst>
<target>firewallm</target>
<data>
<firewallm>
<set>
<rule>
<name>REJECT_MAIL</name>
<protocol>tcp</protocol>
<chain>INPUT</chain>
<policy>REJECT</policy>
<allowed>1</allowed>
<src_addr>
<host>192.168.2.10</host>
<mask>255.255.255.0</mask>
</src_addr>
<src_ports>
<first_port>25</first_port>
</src_ports>
</rule>
</set>
</firewallm>
</data>
</packet>