Rex::Commands::Network(3pm)

Rex::Commands::Network3pm

Network module

Usage

 use Rex::Commands::Network;
 my @routes = route;
 print Dumper(\@routes);
 my $default_gw = default_gateway;
 default_gateway "192.168.2.1";
 my @netstat = netstat;
 my @tcp_connections = grep { $_->{"proto"} eq "tcp" } netstat;

Overview

With this module you can get information of the routing table, current network connections, open ports, ...

Exported functions

route

Get routing information

default_gateway([$default_gw])

Get or set the default gateway.

netstat

Get network connection information

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From rex 1.16.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.