Skip to content

Commit

Permalink
fix: disable ipv6 on transparent vlan mode network create (#2419)
Browse files Browse the repository at this point in the history
Disable ipv6 on transparent vlan mode network create
  • Loading branch information
QxBytes authored and matmerr committed Jan 16, 2024
1 parent bc32720 commit eea621b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions network/network_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ func (nm *networkManager) newNetworkImpl(nwInfo *NetworkInfo, extIf *externalInt
return nil, errors.Wrap(err, "ipv4 forwarding failed")
}
logger.Info("Ipv4 forwarding enabled")
if err := nu.UpdateIPV6Setting(1); err != nil {
return nil, errors.Wrap(err, "failed to disable ipv6 on vm")
}
logger.Info("Disabled ipv6")
// Blocks wireserver traffic from apipa nic
if err := networkutils.BlockEgressTrafficFromContainer(iptables.V4, networkutils.AzureDNS, iptables.TCP, iptables.HTTPPort); err != nil {
return nil, errors.Wrap(err, "unable to insert vm iptables rule drop wireserver packets")
Expand Down

0 comments on commit eea621b

Please sign in to comment.