LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2017, 10:55 AM   #16
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11

Quote:
Originally Posted by Turbocapitalist View Post
Correct. It is impossible in all Linux-based operating systems, not just Debian GNU/Linux. See the various comments above for different phrasing of the same message.

What are you really trying to do there?
Redhat can do it!!!
 
Old 10-01-2017, 10:59 AM   #17
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by !!! View Post
Yes, but there may be a iptables-restore<file here: https://wiki.debian.org/iptables
&more here: https://wiki.debian.org/DebianFirewall

Or you can 'forget' iptables entirely, and use ufw (I think!!!): https://www.digitalocean.com/communi...n-cloud-server

There is no concept of "reload/restart" for this kernel ip fw "table".
This *table* is not a process, so it cannot be stopped/started/restarted
(like a data array in memory cannot be ditto)
I guess "ufw" using iptables with a friendly syntax. Is "ufw" flexible like iptables?
How about "firewall-cmd"?
 
Old 10-01-2017, 11:04 AM   #18
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,330
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
UFW is just a front end for iptables. You can use it or GUFW, the graphical front end for UFW. But at the end of the day those are only making rules in iptables chains even if they are hidden behind the UFW / GUFW interfaces. It will provide some options but not many, especially compared to plain iptables.

firewall-cmd is more of the same, just more complex. In my opinion it is more complicated that plain iptables.

Either way, your best option for precision and flexibility is to take away all the extra levels of abstraction and obfuscation and use just plain iptables. So I'll ask again, what are you really trying to do?
 
1 members found this post helpful.
Old 10-07-2017, 02:46 AM   #19
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by Turbocapitalist View Post
UFW is just a front end for iptables. You can use it or GUFW, the graphical front end for UFW. But at the end of the day those are only making rules in iptables chains even if they are hidden behind the UFW / GUFW interfaces. It will provide some options but not many, especially compared to plain iptables.

firewall-cmd is more of the same, just more complex. In my opinion it is more complicated that plain iptables.

Either way, your best option for precision and flexibility is to take away all the extra levels of abstraction and obfuscation and use just plain iptables. So I'll ask again, what are you really trying to do?
Just restart iptables when it is crashed or...
 
Old 10-07-2017, 02:56 AM   #20
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,330
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
Quote:
Originally Posted by hack3rcon View Post
Just restart iptables when it is crashed or...
Ok. Thanks.

It appears this thread was just a matter of using the correct terminology.

Only separate programs can be "restarted". iptables is part of the kernel, not a separate program. It is a list that can be "cleared" but not "restarted". Instructions in how to clear iptables were given in #5 and #9 above.

Same goes for "crash". iptables cannot crash or rather if it does it will take the kernel, and thus the whole system, down with it. You can however fill up iptable chains with rules that will completely block your network access.

If in doubt about all that see the manual page for iptables itself.

Code:
man iptables
When you ask about iptables in the future, remember to use the relevant terminology.
 
Old 03-22-2018, 03:56 PM   #21
sman123
LQ Newbie
 
Registered: Oct 2014
Posts: 4

Rep: Reputation: Disabled
Lots of bad info in this thread.

Yes you can restart iptables in Redhat/CentOS and also Debian

CE6
service iptables restart

CE7
systemctl restart iptables

Debian 8 (jessie) assumes netfilter-persistent (formerly iptables-persistent) package is installed
systemctl restart netfilter-persistent

We can argue over what is actually happening when restarting but for all intents and purposes you are getting the expected behavior when restarting. It removes all iptables rules and then loads the saved rules. Not sure about Debian but on RH/CE I think it reloads iptables kernel modules.

Last edited by sman123; 03-22-2018 at 04:53 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restart service or even reboot upon service stopping NotionCommotion Linux - Newbie 10 06-06-2017 11:56 AM
How can I restart iptables service? hack3rcon Debian 14 12-12-2016 07:11 AM
Cron service and oracle service stopped unexpectedly. Can't restart oracle. camron Linux - Newbie 6 06-10-2010 06:00 PM
iptables restart in Debian Etch apachenew Debian 6 09-11-2007 01:53 PM
How do I set the regulatory daemon to restart when I restart the network service? zahadumy Linux - Networking 0 11-05-2006 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration