Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

169.254.169.254 port 80: Connection refused #402

Closed
Klar opened this issue Mar 24, 2017 · 3 comments
Closed

169.254.169.254 port 80: Connection refused #402

Klar opened this issue Mar 24, 2017 · 3 comments

Comments

@Klar
Copy link

Klar commented Mar 24, 2017

vuls scan -config=/var/vuls/config.toml -results-dir=/var/vuls/results -cachedb-path=/var/vuls/cache.db --debug servername

[Mar 24 09:41:40] DEBUG [servername] execResult: servername: servername
  cmd: set -o pipefail; curl --max-time 1 --retry 3 --noproxy 169.254.169.254 http://169.254.169.254/latest/meta-data/instance-id
  exitstatus: 7
  stdout: curl: (7) Failed to connect to 169.254.169.254 port 80: Connection refused

I see that the connection is refused. Do I need to search where or why this is blocked or for what is this used?

I see it's a link-local address.

@knqyf263
Copy link
Contributor

@Klar Hello! Thank you for your report!
vuls uses curl to detect whether target is running on AWS.
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html

cmd := "curl --max-time 1 --retry 3 --noproxy 169.254.169.254 http://169.254.169.254/latest/meta-data/instance-id"

So, exitstatus: 7 may be no problem.

case 28, 7:

Do you have any problem with that message? (fail to scan, etc.)

@Klar
Copy link
Author

Klar commented Mar 27, 2017

Hey,

No, that's fine then. I thought maybe it's something which should work, but as I am not on AWS I can ignore it then.

Thanks for your answer, and the next time I will check the source first :)

@Klar Klar closed this as completed Mar 27, 2017
@knqyf263
Copy link
Contributor

Yes, if you don't use AWS, you can ignore this error.
Feel free to ask us if you have any problems!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants