File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1796,8 +1796,8 @@ func generateUFWCommands(firewallRules v1.FirewallRules) []string {
17961796func generateIPTablesCommands () []string {
17971797 commands := []string {
17981798 "iptables -F DOCKER-USER" ,
1799- "iptables -A DOCKER-USER -i lo -j ACCEPT" ,
18001799 "iptables -A DOCKER-USER -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT" ,
1800+ "iptables -A DOCKER-USER -i lo -j ACCEPT" ,
18011801 "iptables -A DOCKER-USER -j DROP" ,
18021802 "iptables -A DOCKER-USER -j RETURN" , // Expected by Docker
18031803 }
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ const (
1616 ufwForceEnable = "ufw --force enable"
1717
1818 ipTablesResetDockerUserChain = "iptables -F DOCKER-USER"
19- ipTablesAllowDockerUserInpboundLoopback = "iptables -A DOCKER-USER -i lo -j ACCEPT"
2019 ipTablesAllowDockerUserOutbound = "iptables -A DOCKER-USER -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT"
20+ ipTablesAllowDockerUserInpboundLoopback = "iptables -A DOCKER-USER -i lo -j ACCEPT"
2121 ipTablesDropDockerUserInbound = "iptables -A DOCKER-USER -j DROP"
2222 ipTablesReturnDockerUser = "iptables -A DOCKER-USER -j RETURN"
2323)
@@ -62,8 +62,8 @@ func (c *ShadeformClient) getUFWCommands(firewallRules v1.FirewallRules) []strin
6262func (c * ShadeformClient ) getIPTablesCommands () []string {
6363 commands := []string {
6464 ipTablesResetDockerUserChain ,
65- ipTablesAllowDockerUserInpboundLoopback ,
6665 ipTablesAllowDockerUserOutbound ,
66+ ipTablesAllowDockerUserInpboundLoopback ,
6767 ipTablesDropDockerUserInbound ,
6868 ipTablesReturnDockerUser , // Expected by Docker
6969 }
You can’t perform that action at this time.
0 commit comments