Shakiba Moshiri
  • Shakiba Moshiri (شکیبا مشیری)
  • opt
    • high traffic site optimization
      • infrastructure check
      • infrastructure test
  • tools
    • Cryptsetup
      • Container encryption using cryptsetup
    • curly
      • ftp
      • ssl
      • http
      • dns
      • ip
      • email
    • SSH
      • ssh password-less login
        • Untitled
    • volumes and FS
      • installing Gluster fs on Ubuntu 18.04 server
      • Accessing Gluster FS from the client machine
  • CDN
    • How does a CDN work
  • Server Panel
  • DirectAdmin
    • DirectAdmin through a reverse proxy
  • Web Server
    • Nginx
      • Live Steaming with Nginx and FFMPEG
  • Security
  • Container
    • Docker Networking 101
      • why docker networking is important?
      • type of networking in docker
    • Docker
      • How to run gitlab-runner with docker
      • using vim inside any container without installing it
      • Cannot connect to the Docker daemon at unix:///var/run/docker.sock
      • moving docker images around using ssh and pipe
      • How can I make docker-compose pull images using a socks5 proxy?
  • Stack Overflow
  • Github
  • vmware
    • tools
      • how to install vmware CLI govc on Linux
  • Windows
    • How to Erase a Recovery Partition in Windows
Powered by GitBook
On this page
  • ip
  • info
  • port
  • route

Was this helpful?

  1. tools
  2. curly

ip

ip troubleshooting with curly

ip

 -I | --ip              IP actions ...
    |                   info: any info based on shodan dB
    |                   port: quick check open ports
    |                   route: trace route
    | --ia              ip address e.g. : 1.1.1.1
    | --im              maximum number of hops
    | --ic              set the number of pings sent

ip actions

  • info

  • port

  • route

info

Show any info avaiable about proviced IP based on shodan.io DB

$ curly --ip info --ia 1.1.1.1
1.1.1.1
Hostnames:               one.one.one.one
Country:                 Australia
Organization:            Cloudflare
Updated:                 2020-11-12T08:28:42.646355
Number of open ports:    1

Ports:
     53/udp  

option: ip
action: info
status: OK

port

Looking for open ports using nmap

curly --ip port --ia 185.8.172.233

Starting Nmap 7.60 ( https://nmap.org ) at 2020-11-12 12:27 +0330
Nmap scan report for 185.8.172.233
Host is up (0.069s latency).
Not shown: 96 filtered ports, 2 closed ports
Some closed ports may be reported as filtered due to --defeat-rst-ratelimit
PORT    STATE SERVICE
80/tcp  open  http
443/tcp open  https

Nmap done: 1 IP address (1 host up) scanned in 4.26 seconds

option: ip
action: port
status: OK

route

Trace the route using mtr command

$ curly --ip route --ia 185.8.172.233
Start: 2020-11-12T12:28:15+0330
HOST: elitedesk            Loss%   Snt   Last   Avg  Best  Wrst StDev
  1.|-- router (192.168.1.1)  0.0%    10    0.5   0.6   0.5   0.9   0.1
  2.|-- ???                  100.0    10    0.0   0.0   0.0   0.0   0.0
  3.|-- 10.222.23.193         0.0%    10   59.6  54.6  41.4  70.4   9.7
  4.|-- 10.222.89.141         0.0%    10   42.2  53.6  42.2  67.9   9.1
  5.|-- ???                  100.0    10    0.0   0.0   0.0   0.0   0.0
  6.|-- 10.222.211.193        0.0%    10   65.8  65.4  55.8  99.0  13.1
  7.|-- ???                  100.0    10    0.0   0.0   0.0   0.0   0.0
  8.|-- 10.221.57.142         0.0%    10   55.0  57.0  43.6  67.5   6.3
  9.|-- 10.222.119.1          0.0%    10   59.7  57.2  44.1  72.3   9.8
 10.|-- 10.201.181.138        0.0%    10   43.9  56.6  43.9  77.1  11.4
 11.|-- 10.101.101.30         0.0%    10   45.8  56.8  45.8  74.2   8.1
 12.|-- 10.60.60.2            0.0%    10   48.7  53.2  39.4  68.0   9.0
 13.|-- 185.8.172.233         0.0%    10   61.0  58.0  38.2  77.8   9.8

option: ip
action: route
status: OK
PreviousdnsNextemail

Last updated 4 years ago

Was this helpful?