Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
64b49677
Commit
64b49677
authored
Jun 09, 2016
by
k8s-merge-robot
Committed by
GitHub
Jun 09, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #27102 from freehan/gciping
Automatic merge from submit-queue Accept ICMP in INPUT/FORWARD chain of filter table on GCI fixes: #27059
parents
6a388d4a
7b943589
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+5
-3
No files found.
cluster/gce/gci/configure-helper.sh
View file @
64b49677
...
@@ -24,16 +24,18 @@ set -o pipefail
...
@@ -24,16 +24,18 @@ set -o pipefail
function
config-ip-firewall
{
function
config-ip-firewall
{
echo
"Configuring IP firewall rules"
echo
"Configuring IP firewall rules"
# The GCI image has host firewall which drop most inbound/forwarded packets.
# The GCI image has host firewall which drop most inbound/forwarded packets.
# We need to add rules to accept all TCP/UDP packets.
# We need to add rules to accept all TCP/UDP
/ICMP
packets.
if
iptables
-L
INPUT |
grep
"Chain INPUT (policy DROP)"
>
/dev/null
;
then
if
iptables
-L
INPUT |
grep
"Chain INPUT (policy DROP)"
>
/dev/null
;
then
echo
"Add rules to accept all inbound TCP/UDP packets"
echo
"Add rules to accept all inbound TCP/UDP
/ICMP
packets"
iptables
-A
INPUT
-w
-p
TCP
-j
ACCEPT
iptables
-A
INPUT
-w
-p
TCP
-j
ACCEPT
iptables
-A
INPUT
-w
-p
UDP
-j
ACCEPT
iptables
-A
INPUT
-w
-p
UDP
-j
ACCEPT
iptables
-A
INPUT
-w
-p
ICMP
-j
ACCEPT
fi
fi
if
iptables
-L
FORWARD |
grep
"Chain FORWARD (policy DROP)"
>
/dev/null
;
then
if
iptables
-L
FORWARD |
grep
"Chain FORWARD (policy DROP)"
>
/dev/null
;
then
echo
"Add rules to accept all forwarded TCP/UDP packets"
echo
"Add rules to accept all forwarded TCP/UDP
/ICMP
packets"
iptables
-A
FORWARD
-w
-p
TCP
-j
ACCEPT
iptables
-A
FORWARD
-w
-p
TCP
-j
ACCEPT
iptables
-A
FORWARD
-w
-p
UDP
-j
ACCEPT
iptables
-A
FORWARD
-w
-p
UDP
-j
ACCEPT
iptables
-A
FORWARD
-w
-p
ICMP
-j
ACCEPT
fi
fi
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment