Skip to content

Commit ccfb71e

Browse files
committed
fixed 'tcp'->':tcp' typo in firewall cookbook README
1 parent f9f16a2 commit ccfb71e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

firewall/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Description
44
Provides a set of primitives for managing firewalls and associated rules.
55

66
PLEASE NOTE - The resource/providers in this cookbook are under heavy development.
7-
An attempt is being made to keep the resource simple/stupid by starting with less
8-
sophisticated firewall implementations first and refactor/vet the resource definition
7+
An attempt is being made to keep the resource simple/stupid by starting with less
8+
sophisticated firewall implementations first and refactor/vet the resource definition
99
with each successive provider.
1010

1111
Requirements
@@ -43,7 +43,7 @@ Resources/Providers
4343
- platform default: Ubuntu
4444

4545
### Examples
46-
46+
4747
# enable platform default firewall
4848
firewall "ufw" do
4949
action :enable
@@ -70,7 +70,7 @@ Resources/Providers
7070
- protocol: valid values are: :udp, :tcp. default is all protocols
7171
- port: incoming port number (ie. 22 to allow inbound SSH)
7272
- source: ip address or subnet to filter on incoming traffic. default is `0.0.0.0/0` (ie Anywhere)
73-
- destination: ip address or subnet to filter on outgoing traffic.
73+
- destination: ip address or subnet to filter on outgoing traffic.
7474
- dest_port: outgoing port number.
7575
- position: position to insert rule at. if not provided rule is inserted at the end of the rule list.
7676
- direction: direction of the rule. valid values are: :in, :out, default is :in
@@ -90,15 +90,15 @@ Resources/Providers
9090
action :allow
9191
notifies :enable, "firewall[ufw]"
9292
end
93-
93+
9494
# open standard http port to tcp traffic only; insert as first rule
9595
firewall_rule "http" do
9696
port 80
97-
protocol 'tcp'
97+
protocol :tcp
9898
position 1
9999
action :allow
100100
end
101-
101+
102102
# restrict port 13579 to 10.0.111.0/24 on eth0
103103
firewall_rule "myapplication" do
104104
port 13579
@@ -156,7 +156,7 @@ Changes/Roadmap
156156

157157
## 0.5.2
158158

159-
* add missing 'requires' statements. fixes 'NameError: uninitialized constant' error.
159+
* add missing 'requires' statements. fixes 'NameError: uninitialized constant' error.
160160
thanks to Ernad Husremović for the fix.
161161

162162
## 0.5.0

0 commit comments

Comments
 (0)