Network

  • Non-Routable IPs
     10.  0.0.0/8  ( 10.  0.0.1 –  10.255.255.254) 16,777,214 IPs
    172. 16.0.0/12 (172. 16.0.1 – 172. 31.255.254)  1,048,574 IPs
    192.168.0.0/16 (192.168.0.1 – 192.168.255.254)     65,534 IPs
    
    # carrier
    100. 64.0.0/10 (100. 64.0.1 - 100.127.255.254)  4,194,302 IPs 
    
    
    curl -v ipv4.icanhazip.com
    curl -v -6 ipv6.icanhazip.com

Protocols

DNS


Tech

  • curl https://httpbin.j3ss.co/ip

Security

  • Run whois on IP list
    # whois on IPs
    for i in $(cat 2023-07-24-trouble.log|grep client_ip|awk -Fclient_ip '{print $2}'|sort -u |cut -d\" -f3); \
    do \
    	echo '----'; echo $i; \
    	whois $i; \
    done \
    |egrep '^[0-9]|^\-|OrgName|StateProv|Address|City'
  • Port checks
    # from mailcow.email
    ss -tlpn | grep -E -w '25|80|110|143|443|465|587|993|995|4190'
    # or:
    netstat -tulpn | grep -E -w '25|80|110|143|443|465|587|993|995|4190'

  • Morris Network
    # add routes and add IP/32 to wireguard allowed IPs
    dns-sd -q xx
    192.168.1.149 # xx
    192.168.1.102 # yy
    192.168.1.128 # ss and pg
    
    route add -host 192.168.1.128 10.0.0.1
    route add -host 54.81.143.201 -interface en0
    
    route get xx