top | item 27614672

(no title)

pingec | 4 years ago

I am super scared of accidentally exposing a port to the internet. Is there a service / tool that I could provide with a list of all my public IP machines and it would keep port scanning them periodically, sending me a report of all open ports by email each month and sending me an email each time a new port becomes open to the public internet?

discuss

order

schipplock|4 years ago

I use "nmap" for this.

  $ nmap example.com
  PORT     STATE  SERVICE
  80/tcp   open   http
  443/tcp  open   https
  1119/tcp closed bnetgame
  1935/tcp closed rtmp

exciteabletom|4 years ago

A more complete answer using nmap and cron:

    MAILTO="youremail@yourdomain.com"
    */30 * * * * nmap yourdomain.com | grep open > nmap.log.tmp; diff nmap.log nmap.log.tmp; mv nmap.log.tmp nmap.log

jam48|4 years ago

I think that shodan.io can do this, if you give it an IP it will monitor it and email you about services it finds.