& 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 seeCodePudding 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