Previous page

Next page

Locate page in Contents

Print this page

get

Linux Summary:

Lists existing firewall rules.

Request specification:

Name

Min/Max

Type

Description

get

0..1

 

 

Returns:

Name

Min/Max

Type

Description

rule

1..[]

ruleType

Firewall rule structure.

Example:

Listing firewall rules for the specified Virtuozzo Container.

Input

<packet version="4.0.0">

<dst>

<host>9bafbeb7-85f7-499e-a210-40e00850a5f3</host>

</dst>

<target>firewallm</target>

<data>

<firewallm>

<get/>

</firewallm>

</data>

</packet>

Output

<packet priority="0" version="4.0.0">

<origin>firewallm</origin>

<target>vzclient30</target>

<data>

<firewallm>

<rule>

<name>REJECT_MAIL</name>

<chain>INPUT</chain>

<policy>REJECT</policy>

<allowed>1</allowed>

<protocol>tcp</protocol>

<src_addr>

<host>192.168.1.10</host>

<mask>255.255.255.0</mask>

</src_addr>

<src_ports>

<first_port>25</first_port>

</src_ports>

</rule>

</firewallm>

</data>

</packet>

Please send us your feedback on this help page