Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that iptables cannot be started in linode

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how to solve the problem that iptables can not be started in linode. Many people may not know much about it. In order to make you understand better, the editor summarized the following content for you. I hope you can get something according to this article.

In the Linux system, users find that iptables cannot be started in linode, and the following prompt appears, how to solve this problem? Now let's go with the editor to see the solution to this problem.

1. Solution to the first problem:

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

Vi / etc/init.d/iptables

Look for the line case "$I" in, as follows:

For i in $tables; do

Echo-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 it 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)

two。 Solution to the second problem:

Cp / etc/sysconfig/iptables-config / etc/sysconfig/iptables-config.oldbak--

Close the ip_conntrack_netbios_ns module

Sed-I's bind IPTABLESModules = "ip_conntrack_netbios_ns" / # # IPTABLES_MODULES= "ip_conntrack_netbios_ns" / g'/ etc/sysconfig/iptables-config

3. Restart iptables

Service iptables restart

Flushing firewall rules: [OK]

Setting chains to policy ACCEPT: security raw nat mangle fi [OK]

Unloading iptables modules: [OK]

Applying iptables firewall rules: [OK]

After reading the above, do you have any further understanding of how to solve the problem that iptables cannot be started in linode? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report