{"record":{"id":"5460b63cf979e367","repo":"projectdiscovery/nuclei","slug":"source-ip-s-is-not-associated-with-the-interfac","errorCode":null,"errorMessage":"source ip (%s) is not associated with the interface (%s)","messagePattern":"source ip \\((.+?)\\) is not associated with the interface \\((.+?)\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/protocols/common/protocolstate/state.go","lineNumber":129,"sourceCode":"\tnpOptions := &networkpolicy.Options{\n\t\tDenyList: expandedDenyList,\n\t}\n\topts.WithNetworkPolicyOptions = npOptions\n\n\tswitch {\n\tcase options.SourceIP != \"\" && options.Interface != \"\":\n\t\tisAssociated, err := isIpAssociatedWithInterface(options.SourceIP, options.Interface)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif isAssociated {\n\t\t\topts.Dialer = &net.Dialer{\n\t\t\t\tLocalAddr: &net.TCPAddr{\n\t\t\t\t\tIP: net.ParseIP(options.SourceIP),\n\t\t\t\t},\n\t\t\t}\n\t\t} else {\n\t\t\treturn fmt.Errorf(\"source ip (%s) is not associated with the interface (%s)\", options.SourceIP, options.Interface)\n\t\t}\n\tcase options.SourceIP != \"\":\n\t\tisAssociated, err := isIpAssociatedWithInterface(options.SourceIP, \"any\")\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif isAssociated {\n\t\t\topts.Dialer = &net.Dialer{\n\t\t\t\tLocalAddr: &net.TCPAddr{\n\t\t\t\t\tIP: net.ParseIP(options.SourceIP),\n\t\t\t\t},\n\t\t\t}\n\t\t} else {\n\t\t\treturn fmt.Errorf(\"source ip (%s) is not associated with any network interface\", options.SourceIP)\n\t\t}\n\tcase options.Interface != \"\":\n\t\tifadrr, err := interfaceAddress(options.Interface)\n\t\tif err != nil {","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/protocols/common/protocolstate/state.go#L111-L147","documentation":"Error \"source ip (%s) is not associated with the interface (%s)\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/protocols/common/protocolstate/state.go:129 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}