module

Pared::Firewalld

Constants

BUS_DEST = "org.fedoraproject.FirewallD1"
BUS_PATH = "/org/fedoraproject/FirewallD1"
BUS_ZONE = "#{BUS_DEST}.zone"
RICH_RULE_REGEX = Regex.new("^rule(\\s+family=\"(ipv4|ipv6)\")?(\\s+priority=\"\\-?\\d+\")?(\\s+source(\\s+not)?\\s+address=\"[^\"]+\")?(\\s+destination(\\s+not)?\\s+address=\"[^\"]+\")?(\\s+(service\\s+name=\"[^\"]+\"|port\\s+port=\"\\d+(\\-\\d+)?\"\\s+protocol=\"(tcp|udp)\"|protocol\\s+value=\"[^\"]+\"|icmp-type\\s+name=\"[^\"]+\"|masquerade|forward-port\\s+port=\"\\d+\"\\s+protocol=\"(tcp|udp)\"\\s+to-port=\"\\d+\"(\\s+to-addr=\"[^\"]+\")?))?(\\s+log(\\s+prefix=\"[^\"]+\")?(\\s+level=\"[^\"]+\")?(\\s+limit\\s+value=\"\\d+/[smhd]\")?)?(\\s+audit(\\s+limit\\s+value=\"\\d+/[smhd]\")?)?\\s+(accept|reject|drop|mark)(\\s+limit\\s+value=\"\\d+/[smhd]\")?")

Class methods

gdbus_caller
Source
gdbus_caller=(gdbus_caller : Proc(String, String, Array(String), String))
Source

Instance methods

active_zones
Source
add_forward_port(zone : String, port : String, protocol : String, to_port : String, to_addr : String)
Source
add_interface(zone : String, interface : String)
Source
add_masquerade(zone : String)
Source
add_policy(policy : PolicyConfig)
Source
add_port(zone : String, port : String, protocol : String)
Source
add_rich_rule(zone : String, rule : String)
Source
add_service(zone : String, service : String)
Source
add_source(zone : String, source : String)
Source
add_zone(name : String)
Source
all_zones
Source
commit
Source
compile_rich_rule(family : String | Nil = nil, priority : Int32 | Nil = nil, source : String | Nil = nil, destination : String | Nil = nil, element : String | Nil = nil, action : String = "accept", log_prefix : String | Nil = nil, log_level : String | Nil = nil, log_limit : String | Nil = nil, action_limit : String | Nil = nil) : String
Source
get_policy_config_path(name : String) : String | Nil
Source
get_zone_config_path(name : String) : String | Nil
Source
list_policies
Source
list_zone(zone : String) : ZoneConfig
Source
reload
Source
remove_forward_port(zone : String, port : String, protocol : String, to_port : String, to_addr : String)
Source
remove_interface(zone : String, interface : String)
Source
remove_masquerade(zone : String)
Source
remove_policy(name : String)
Source
remove_port(zone : String, port : String, protocol : String)
Source
remove_rich_rule(zone : String, rule : String)
Source
remove_service(zone : String, service : String)
Source
remove_source(zone : String, source : String)
Source
remove_zone(name : String)
Source
set_zone_target(zone : String, target : String)
Source
state
Source
update_policy(name : String, priority : Int32, ingress : Array(String), egress : Array(String), target : String)
Source
validate_rich_rule(rule : String) : Bool
Source

Nested types