Solve the problem of \\"Setting chains to policy ACCEPT\\" error in Linode iptables

888u

Last update at :2024-07-12,Edit by888u

This problem was recorded before but not edited into an article. Just in the morning, some netizens mentioned that they also encountered this problem. When we configure a certain software testing environment, an error message like Setting chains to policy ACCEPT: security raw nat[FAILED]filter appears when restarting iptables. It seems that this has not happened before in the same VPS release system. The problem only occurs this time in Linode VPS.

When you encounter a problem, you search for answers to see if you can find a solution.

First, edit the /etc/init.d/iptables file

Find the location of \\”case \\”$i\\” in\\” and add the script directly below

security)$IPTABLES -t filter -P INPUT $policy \\\\&& $IPTABLES -t filter -P OUTPUT $policy \\\\&& $IPTABLES -t filter -P FORWARD $policy \\\\| | let ret+=1;;

As shown below:

Save the file and exit.

Second, restart iptables

service iptables restart

Then we can see the error-free results.

This will completely solve this problem.

Recommended site search: vps server, Tencent cloud server, registered domain name, domain name registration service, Hong Kong cloud host, national mixed server, virtual host recommendation, American independent host, mainland China registration-free host, purchase domain name and space, < /p>

Solve the problem of \\

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码