code: func (n *Networking) enableDefaultLocalnetRouting() error {
  	routeLocalnetFormat := ""
  
  	defaultHostIP, err := n.GetForwardableNetHostIP()
  	if err != nil {
  		return err
  	}
  
  	defaultHostIPstring := defaultHostIP.String()
  	switch {
  	case strings.Contains(defaultHostIPstring, "."):
  		routeLocalnetFormat = "/proc/sys/net/ipv4/conf/%s/route_localnet"
  	case strings.Contains(defaultHostIPstring, ":"):
  		return fmt.Errorf("unexpected IPv6 Address returned for default host interface: %q", defaultHostIPstring)
  	default:
  		return fmt.Errorf("unknown type for default Host IP: %q", defaultHostIPstring)
  	}
  
  	hostIfaces, err := n.GetIfacesByIP(defaultHostIP)
  	if err != nil {
  		return err
  	}
  
  	for _, hostIface := range hostIfaces {
  		routeLocalnetPath := fmt.Sprintf(routeLocalnetFormat, hostIface.Name)
  		routeLocalnetValue, err := ioutil.ReadFile(routeLocalnetPath)
  		if err != nil {
  			return err
  		}
  		if strings.TrimSpace(string(routeLocalnetValue)) != "1" {
  			routeLocalnetFile, err := os.OpenFile(routeLocalnetPath, os.O_WRONLY, 0)
  			if err != nil {
  				return err
  			}
  			defer routeLocalnetFile.Close()
  
  			if _, err = io.WriteString(routeLocalnetFile, "1"); err != nil {
  				return err
  			}
  		}
  	}
  
  	return nil
  }
docs: // enableDefaultLocalnetRouting enables the route_localnet attribute on the supposedly default network interface.
  // This allows setting up loopback NAT so the host can access the pod's forwarded ports on the localhost address.