Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions scripts/install2disk
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ EOF
cat >cloud-config.yml<<EOF
#cloud-config
rancher:
network:
post_cmds:
- iptables -t nat -A PREROUTING -p tcp -d 169.254.170.2 --dport 80 -j DNAT --to-destination 127.0.0.1:51679
- iptables -t nat -A OUTPUT -d 169.254.170.2 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 51679
- iptables --insert DOCKER-USER 1 --in-interface docker+ --destination 169.254.169.254/32 --jump DROP
- iptables --insert DOCKER-USER 1 --in-interface docker-sys --destination 169.254.169.254/32 --jump ACCEPT
sysctl:
net.ipv4.conf.all.route_localnet: 1
services_include:
amazon-ecs-agent: true
modules: [ena]
Expand Down