Linux system Linode can not start iPtables how to do?

  

Users in the Linux system found that the iptables could not be started in the linode, and the following prompts appeared. How to solve this problem? Let's take a look at the solution to this problem with Xiaobian.

1. The first solution to the problem:

cp /etc/init.d/iptables /etc/init.d/iptables.oldbak--

//////////////////-n “$i ”

case “$i” in

raw)

$IPTABLES -t raw -P PREROUTING $policy \\

&& $IPTABLES -t raw -P OUTPUT $policy \\

| |  Let ret+=1

;;

filter)

$IPTABLES -t filter -P INPUT $policy \\

&& $IPTABLES - t filter -P OUTPUT $policy \\

&& $IPTABLES -t filter -P FORWARD $policy \\

| |  Let ret+=1

;;

nat)

Modify as follows:

for i in $tables; do

echo -n “$i ”

case “$i” in

security)

$IPTABLES -t filter -P INPUT $policy \\

&& $IPTABLES -t filter -P OUTPUT $policy \\

&& $IPTABLES -t filter -P FORWARD $policy \\

| |  Let ret+=1

;;

raw)

$IPTABLES -t raw -P PREROUTING $policy \\

&& $IPTABLES - t raw -P OUTPUT $policy \\

| |  Let ret+=1

;;

filter)

$IPTABLES -t filter -P INPUT $policy \\

&& $IPTABLES - t filter -P OUTPUT $policy \\

&& $IPTABLES -t filter -P FORWARD $policy \\

| |  Let ret+=1

;;

nat) Previous12Next page Total 2 pages

Copyright © Windows knowledge All Rights Reserved