I am using frequently Terminal to ban IP's. To see these adds/removes/changes in Webmin I have to save IPTables to /etc/iptables.rules.up. After doing this Webmin is able seeing all those rules.
I can modify this Module, using [Update cluster server] set to "Whenever a change is made", but I will loose all buttons from the bottom page. My request is great for saving the current IPTables on disk and using it inside Webmin: it will be great to have a button down there for saving IPTables to /etc/iptables.rules.up and loading its content. All in one click. Then I can make changes easy and Apply the new configuration.
Suggestion for button label: Save Configuration, or Save Current Configuration. The first one will fit as size with the other buttons.
Thank you.
Comments
Submitted by JamieCameron on Tue, 12/02/2014 - 20:32 Comment #1
So in Webmin, are you editing the live rules, or those that are saved in
iptables.rules.up
?Submitted by ADDISON74 on Wed, 12/03/2014 - 01:35 Comment #2
Webmin is editing those saved in iptables.rules.up as I know. Let me give you more details related to this request.
I am adding many rules in Terminal window. If I go to Webmin, I will get always the rules based on /etc/iptables.rules.up. If I am planning editing them with Webmin, I must get the current iptables. I will go to Terminal and save the iptables to /etc/iptables.rules.up. Refreshing the page in Webmin will show the real content of IPTables. From now I can Apply new configurations.
I can modify this Module, using [Update cluster server] set to "Whenever a change is made", but I will loose all buttons from the bottom page. This button helps me to get Iptables inside a file, like a backup.
Submitted by ADDISON74 on Wed, 12/03/2014 - 01:35 Comment #3
Webmin is editing those saved in iptables.rules.up as I know. Let me give you more details related to this request.
I am adding many rules in Terminal window. If I go to Webmin, I will get always the rules based on /etc/iptables.rules.up. If I am planning editing them with Webmin, I must get the current iptables. I will go to Terminal and save the iptables to /etc/iptables.rules.up. Refreshing the page in Webmin will show the real content of IPTables. From now I can Apply new configurations.
I can modify this Module, using [Update cluster server] set to "Whenever a change is made", but I will loose all buttons from the bottom page. This button helps me to get Iptables inside a file, like a backup.
Submitted by JamieCameron on Wed, 12/03/2014 - 17:01 Comment #4
Why not instead edit
iptables.rules.up
from the terminal, and then apply the file either from the terminal or in Webmin?Submitted by ADDISON74 on Thu, 12/04/2014 - 11:36 Comment #5
As I requested my intention was skipping the Terminal step. That button will update /etc/iptables.rules.up file content with the version running. Then Webmin will load the file content. All in one click.
Submitted by JamieCameron on Fri, 12/05/2014 - 00:49 Comment #6
Sorry, but I don't get what you mean by using the Terminal to ban IPs exactly?
Submitted by ADDISON74 on Sun, 12/14/2014 - 05:03 Comment #7
I am using an SSH connection to watch my server. From time to time I am banning IPs using iptables command.
To see these rules added in Terminal in Webmin interface I have to use iptables-save > /etc/iptables.up.rules. That button I requested will do this inside Webmin, just saving current iptables to file then loading it into Webmin. This skips Terminal command.
It is just a reverse for Apply Configuration button.
Submitted by JamieCameron on Sun, 12/14/2014 - 12:20 Comment #8
Ok, I see now - this will be available in the next Webmin release.
Submitted by ADDISON74 on Mon, 12/15/2014 - 07:01 Comment #9
Many thanks for understanding. Such of small improvements will do our life much better.
Once again thank you for this wonderful piece of software and for your dedicated work.
Submitted by Chris_C on Wed, 12/17/2014 - 10:14 Comment #10
Just a suggestion. Have u ever tried the free CSF firewall module for Webmin/Virtualmin. We're happy users of CSF. It provides a very nice web interface control panel and convenient simplification to the standard linux iptables firewall. Full features are in the web browser, including banning IP from inside Webmin/Virtualmin, as you're requesting here. Easy module to install, u should give it a try.
Submitted by ADDISON74 on Wed, 12/17/2014 - 11:17 Comment #11
Thank you very much for your suggestion. I will give it a try. I know CFS but I did not use it yet. I am one who likes old school, black background and white letters :)
Could you please suggest me a module for webmin in order to monitor connections? Seeing who is connected, for how long. It will be great doing this in real time in browser. Someone pointed me to Nagios.
Submitted by Chris_C on Wed, 12/17/2014 - 19:30 Comment #12
Sure try this module...
NagMIN (Nagios for Webmin)
http://sourceforge.net/projects/nagmin/
Submitted by Issues on Wed, 12/31/2014 - 19:40 Comment #13
Automatically closed -- issue fixed for 2 weeks with no activity.