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
a051a549
Commit
a051a549
authored
Nov 02, 2017
by
Isaac Hollander McCreery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly set route_localnet on nodes & masters.
Allow for loopback addresses to be used for routing, specifically to enable metadata proxy on master nodes.
parent
40212c17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+5
-0
No files found.
cluster/gce/gci/configure-helper.sh
View file @
a051a549
...
@@ -34,6 +34,11 @@ function setup-os-params {
...
@@ -34,6 +34,11 @@ function setup-os-params {
function
config-ip-firewall
{
function
config-ip-firewall
{
echo
"Configuring IP firewall rules"
echo
"Configuring IP firewall rules"
# Do not consider loopback addresses as martian source or destination while
# routing. This enables the use of 127/8 for local routing purposes.
sysctl
-w
net.ipv4.conf.all.route_localnet
=
1
# 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/ICMP 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
...
...
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