Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.66 sec)
Remove all IPtables modules from a running Debian server

It's a long story but I have a production server that has IPtables running on it and it has loaded up a few obvious IPtables modules.

I need to carefully unload those modules so I can run something else (obviously without causing any problems to a critical server).

I have these listed but how can I be absolutely sure that I've manually rmmod X properly and unloaded them all before trying this other software ?

Module Size Used by

xt_multiport 2794 16

nf_conntrack_ipv4 12742 42

nf_defrag_ipv4 1481 1 nf_conntrack_ipv4

xt_state 1490 42

nf_conntrack 73326 2 nf_conntrack_ipv4,xt_state

xt_tcpudp 2667 44

iptable_filter 1841 1

ip_tables 18201 1 iptable_filter

x_tables 22361 4 xt_multiport,xt_state,xt_tcpudp,ip_tables


Thanks !
Asked by:
BonoEstente
1464 points
 Report Abuse
 Share Page - Category: Debian Linux - Tags: Remove all IPtables modules from a running Debian server
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (2)

Thanks but that's not really what I'm looking for :(

How can I be certain that _all_ IPtables modules are _safely_ removed ?

Response by:
BonoEstente
1464 points
You can use "rmmod" but if some modules are busy, you can not remove

first of all, execute "iptables -F" to flush , then use "iptables -L"

and see result, at last remove modules...

also, you can compile kernel without iptables....

Response by:
jalal
3623 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle