Home > OS >  After using the exec command iptables rules on success, the terminal use iptables - L didn't sh
After using the exec command iptables rules on success, the terminal use iptables - L didn't sh

Time:11-21

Application:
& lt; ? PHP
$shell="/sbin/iptables -i INPUT -s 123.45.6.7 -j DROP".
echo "
 "; 
The exec ($shell, $status);
echo "
";
$shell="& lt; Font color='red' & gt; $shell ";
If ($status) {
Echo "shell command failed to perform {$shell}";
} else {
Echo "shell command {$shell} on success";
}
?>
The results page:

This is the end result:
Guide for bosses

CodePudding user response:

Is why after successfully executed in the end is not directly in the end if writing iptables -i INPUT -s 123.45.6.7 -j DROP can use iptables - L see

CodePudding user response:

Look at the journal because the iptables v1.6.0: can 't initialize iptables table ` filter' : Permission denied (you must be root)

CodePudding user response:

Appears to be the authority problem
  • Related