注意需要引入iptables包
use Rex::Commands::Iptables;
1、远程主机iptables开放情况
1 2 3 4 5 6 7 |
task "ipc", group => "all", sub { my $str=q(iptables -n -L); my $output= run $str; say connection->server.": $output"; }; |
注意需要引入iptables包
use Rex::Commands::Iptables;
1、远程主机iptables开放情况
1 2 3 4 5 6 7 |
task "ipc", group => "all", sub { my $str=q(iptables -n -L); my $output= run $str; say connection->server.": $output"; }; |