Class: Ansible::Ruby::Modules::Ufw

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/system/ufw.rb

Overview

Manage firewall with UFW.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#commentString?

Returns Add a comment to the rule. Requires UFW version >=0.35.

Returns:

  • (String, nil)

    Add a comment to the rule. Requires UFW version >=0.35.



75
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 75

attribute :comment

#deleteSymbol?

Returns Delete rule.

Returns:

  • (Symbol, nil)

    Delete rule.



63
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 63

attribute :delete

#direction:in, ...

Returns Select direction for a rule or default policy command.

Returns:

  • (:in, :incoming, :out, :outgoing, :routed, nil)

    Select direction for a rule or default policy command.



20
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 20

attribute :direction

#from_ipString?

Returns Source IP address.

Returns:

  • (String, nil)

    Source IP address.



39
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 39

attribute :from_ip

#from_portInteger?

Returns Source port.

Returns:

  • (Integer, nil)

    Source port.



43
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 43

attribute :from_port

#insertObject?

Returns Insert the corresponding rule as rule number NUM.

Returns:

  • (Object, nil)

    Insert the corresponding rule as rule number NUM



28
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 28

attribute :insert

#interfaceString?

Returns Specify interface for rule.

Returns:

  • (String, nil)

    Specify interface for rule.



67
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 67

attribute :interface

#logSymbol?

Returns Log new connections matched to this rule.

Returns:

  • (Symbol, nil)

    Log new connections matched to this rule



35
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 35

attribute :log

#logging:low, ...

Returns Toggles logging. Logged packets use the LOG_KERN syslog facility.

Returns:

  • (:low, :medium, :high, :full, Boolean, nil)

    Toggles logging. Logged packets use the LOG_KERN syslog facility.



24
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 24

attribute :logging

#nameString?

Returns Use profile located in C(/etc/ufw/applications.d).

Returns:

  • (String, nil)

    Use profile located in C(/etc/ufw/applications.d).



59
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 59

attribute :name

#policy:allow, ...

Returns Change the default policy for incoming or outgoing traffic.

Returns:

  • (:allow, :deny, :reject, nil)

    Change the default policy for incoming or outgoing traffic.



16
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 16

attribute :policy

#proto:any, ...

Returns TCP/IP protocol.

Returns:

  • (:any, :tcp, :udp, :ipv6, :esp, :ah, nil)

    TCP/IP protocol.



55
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 55

attribute :proto

#routeSymbol?

Returns Apply the rule to routed/forwarded packets.

Returns:

  • (Symbol, nil)

    Apply the rule to routed/forwarded packets.



71
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 71

attribute :route

#rule:allow, ...

Returns Add firewall rule.

Returns:

  • (:allow, :deny, :limit, :reject, nil)

    Add firewall rule



31
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 31

attribute :rule

#state:disabled, ...

Returns C(enabled) reloads firewall and enables firewall on boot.,C(disabled) unloads firewall and disables firewall on boot.,C(reloaded) reloads firewall.,C(reset) disables and resets firewall to installation defaults.

Returns:

  • (:disabled, :enabled, :reloaded, :reset, nil)

    C(enabled) reloads firewall and enables firewall on boot.,C(disabled) unloads firewall and disables firewall on boot.,C(reloaded) reloads firewall.,C(reset) disables and resets firewall to installation defaults.



12
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 12

attribute :state

#to_ipString?

Returns Destination IP address.

Returns:

  • (String, nil)

    Destination IP address.



47
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 47

attribute :to_ip

#to_portInteger?

Returns Destination port.

Returns:

  • (Integer, nil)

    Destination port.



51
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 51

attribute :to_port