Skip to content

Commit

Permalink
AWS: Enable ICMP Type 3 Code 4 for ELBs
Browse files Browse the repository at this point in the history
This enables MTU discovery.

Fixes #24254
  • Loading branch information
justinsb committed Jun 19, 2016
1 parent 6bdb9b0 commit fddc9d6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/cloudprovider/providers/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -2317,6 +2317,19 @@ func (s *AWSCloud) EnsureLoadBalancer(apiService *api.Service, hosts []string) (

permissions.Insert(permission)
}

// Allow ICMP fragmentation packets, important for MTU discovery
{
permission := &ec2.IpPermission{
IpProtocol: aws.String("icmp"),
FromPort: aws.Int64(3),
ToPort: aws.Int64(4),
IpRanges: []*ec2.IpRange{{CidrIp: aws.String("0.0.0.0/0")}},
}

permissions.Insert(permission)
}

_, err = s.setSecurityGroupIngress(securityGroupID, permissions)
if err != nil {
return nil, err
Expand Down

0 comments on commit fddc9d6

Please sign in to comment.