File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ const (
3636 // Allow inbound traffic on the loopback interface.
3737 ipTablesAllowDockerUserInpboundLoopback = "iptables -A DOCKER-USER -i lo -j ACCEPT"
3838
39+ // Allow external inbound TCP traffic to any container port 22 (SSH)
40+ ipTablesAllowDockerUserContainerSSH = "iptables -A DOCKER-USER -p tcp --dport 22 -j ACCEPT"
41+
3942 // Drop everything else.
4043 ipTablesDropDockerUserInbound = "iptables -A DOCKER-USER -j DROP"
4144 ipTablesReturnDockerUser = "iptables -A DOCKER-USER -j RETURN"
@@ -91,6 +94,7 @@ func (c *ShadeformClient) getIPTablesCommands() []string {
9194 ipTablesAllowDockerUserDockerToDocker2 ,
9295 ipTablesAllowDockerUserDockerToDocker3 ,
9396 ipTablesAllowDockerUserInpboundLoopback ,
97+ ipTablesAllowDockerUserContainerSSH ,
9498 ipTablesDropDockerUserInbound ,
9599 ipTablesReturnDockerUser , // Expected by Docker
96100 }
You can’t perform that action at this time.
0 commit comments