Skip to content

netcheck v1.2.0 - Network Diagnostics Features

Choose a tag to compare

@farman20ali farman20ali released this 18 Nov 08:53

Network Connectivity Checker v1.2.0

A major feature release adding comprehensive network diagnostics capabilities to netcheck.

馃啎 What's New

Network Interface Display (--my-ip, -ip)

Display all your network interfaces with detailed information:

  • IPv4/IPv6 addresses for each interface
  • Interface status (UP/DOWN)
  • Default gateway and public IP
  • Smart filtering: Shows only active (UP) interfaces by default
  • Use --my-ip --all to see all interfaces including inactive ones
  • Clean sorted output with filtered loopback and virtual ethernet

Example:

netcheck --my-ip

HTTP Status Checking (-s, --status)

Check HTTP/HTTPS endpoints with detailed diagnostics:

  • Response codes with descriptive messages (200 OK, 404 Not Found, etc.)
  • Response time in milliseconds
  • Content size in human-readable format
  • Status categorization (success, redirect, client error, server error)
  • Verbose mode shows response headers
  • Comprehensive error messages

Example:

netcheck -s https://google.com
netcheck -s https://api.example.com -V  # with headers

SSL Certificate Validation (--cert)

Monitor SSL/TLS certificate expiration and validity:

  • Certificate subject, issuer, and validity dates
  • Days until expiry calculation
  • 鈿狅笍 Warnings for certificates expiring within 30 days
  • 馃毃 Critical alerts for certificates expiring within 7 days
  • Verbose mode shows Subject Alternative Names (SANs)
  • Supports URL or hostname:port format

Example:

netcheck --cert google.com
netcheck --cert https://github.com -V  # with SANs

Retry Logic (--retry, --retry-delay)

Automatically retry failed connections for more reliable testing:

  • Configurable retry count (--retry N)
  • Configurable delay between retries (--retry-delay seconds)
  • Works in both file mode and quick mode
  • Verbose mode shows retry attempts
  • Perfect for intermittent connection issues

Example:

netcheck --retry 3 --retry-delay 2 hosts.txt
netcheck -q 192.168.1.1 80 --retry 5

馃搵 Full Changelog

Added

  • Network Interface Display (--my-ip, -ip)

    • Show all network interfaces with IPv4/IPv6 addresses
    • Display interface status (UP/DOWN), gateway, and public IP
    • Default shows only active (UP) interfaces
    • --my-ip --all flag shows all interfaces including inactive ones
    • Sorted output with filtered loopback and virtual ethernet pairs
  • HTTP Status Checking (-s, --status)

    • Check HTTP/HTTPS response codes with curl
    • Display response time in milliseconds
    • Show content size in human-readable format (bytes, KB, MB)
    • Categorize status codes (2xx success, 3xx redirect, 4xx client error, 5xx server error)
    • Verbose mode shows response headers
    • Comprehensive error messages for connection failures
  • SSL Certificate Validation (--cert)

    • Check SSL/TLS certificate validity and expiration
    • Display certificate subject, issuer, and validity dates
    • Calculate days until expiry
    • Warn if certificate expires within 30 days (yellow) or 7 days (red)
    • Verbose mode shows Subject Alternative Names (SANs)
    • Support for URL or hostname:port format
  • Retry Logic (--retry, --retry-delay)

    • Retry failed connections with configurable count (default: 1, no retry)
    • Configurable delay between retries in seconds (default: 1)
    • Works with both file mode and quick mode
    • Verbose mode shows retry attempts
    • Helps with intermittent connection issues

Changed

  • Updated help text with all new flags and options
  • Improved error messages and user guidance
  • Enhanced documentation with v1.2.0 examples

Dependencies

  • Added curl for HTTP status checks
  • Added openssl for SSL certificate validation
  • Added bc for time calculations
  • Added iproute2 for network interface display

馃摝 Installation

Snap (Recommended - All Linux Distributions)

sudo snap install netcheck
sudo snap connect netcheck:network-observe  # For ping functionality

DEB Package (Ubuntu/Debian)

Download netcheck_1.2.0.deb from the assets below and install:

sudo dpkg -i netcheck_1.2.0.deb

From Source

git clone https://github.com/farman20ali/network_access_check.git
cd network_access_check
sudo make install

馃摉 Documentation

馃敆 Links

馃挕 Quick Examples

# Check your network interfaces
netcheck --my-ip

# Check website status
netcheck -s https://google.com

# Check SSL certificate expiry
netcheck --cert github.com

# Retry failed connections
netcheck --retry 3 hosts.txt

# Combined diagnostics
netcheck --my-ip && netcheck -p 8.8.8.8 && netcheck -s https://api.example.com