Class: Ansible::Ruby::Modules::Ufw
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ufw
- Defined in:
- lib/ansible/ruby/modules/generated/system/ufw.rb
Overview
Manage firewall with UFW.
Instance Method Summary collapse
-
#comment ⇒ String?
Add a comment to the rule.
-
#delete ⇒ Symbol?
Delete rule.
-
#direction ⇒ :in, ...
Select direction for a rule or default policy command.
-
#from_ip ⇒ String?
Source IP address.
-
#from_port ⇒ Integer?
Source port.
-
#insert ⇒ Object?
Insert the corresponding rule as rule number NUM.
-
#interface ⇒ String?
Specify interface for rule.
-
#log ⇒ Symbol?
Log new connections matched to this rule.
-
#logging ⇒ :low, ...
Toggles logging.
-
#name ⇒ String?
Use profile located in C(/etc/ufw/applications.d).
-
#policy ⇒ :allow, ...
Change the default policy for incoming or outgoing traffic.
-
#proto ⇒ :any, ...
TCP/IP protocol.
-
#route ⇒ Symbol?
Apply the rule to routed/forwarded packets.
-
#rule ⇒ :allow, ...
Add firewall rule.
-
#state ⇒ :disabled, ...
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.
-
#to_ip ⇒ String?
Destination IP address.
-
#to_port ⇒ Integer?
Destination port.
Methods inherited from Base
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
#comment ⇒ String?
Returns 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 |
#delete ⇒ Symbol?
Returns 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.
20 |
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 20 attribute :direction |
#from_ip ⇒ String?
Returns Source IP address.
39 |
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 39 attribute :from_ip |
#from_port ⇒ Integer?
Returns Source port.
43 |
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 43 attribute :from_port |
#insert ⇒ Object?
Returns Insert the corresponding rule as rule number NUM.
28 |
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 28 attribute :insert |
#interface ⇒ String?
Returns Specify interface for rule.
67 |
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 67 attribute :interface |
#log ⇒ Symbol?
Returns 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.
24 |
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 24 attribute :logging |
#name ⇒ String?
Returns 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.
16 |
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 16 attribute :policy |
#proto ⇒ :any, ...
Returns TCP/IP protocol.
55 |
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 55 attribute :proto |
#route ⇒ Symbol?
Returns 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.
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.
12 |
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 12 attribute :state |
#to_ip ⇒ String?
Returns Destination IP address.
47 |
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 47 attribute :to_ip |
#to_port ⇒ Integer?
Returns Destination port.
51 |
# File 'lib/ansible/ruby/modules/generated/system/ufw.rb', line 51 attribute :to_port |