LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-18-2019, 01:30 PM   #1
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,148

Rep: Reputation: Disabled
Iptables Web Gui


I'm using this here https://github.com/puux/iptables, but I have to run the command
Code:
node server.js
as root every time to get it started. How can I get this to auto start during startup?

Last edited by PROBLEMCHYLD; 09-18-2019 at 06:43 PM.
 
Old 09-18-2019, 02:06 PM   #2
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,890

Rep: Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141
Place the rule set in /etc/rc.d/rc.firewall, chmod +x. The rc.firewall script will be executed from rc.inet2.
 
1 members found this post helpful.
Old 09-18-2019, 02:23 PM   #3
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,148

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by upnort View Post
Place the rule set in /etc/rc.d/rc.firewall, chmod +x. The rc.firewall script will be executed from rc.inet2.
The GUI loads the rule set from /etc/rc.d/rc.firewall. Its about getting the gui started by node server.js on system boot. Thanks though..
 
Old 09-18-2019, 02:52 PM   #4
carloscd
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Rep: Reputation: Disabled
Iptables Web Gui

wouldn't webmin work for you?
 
Old 09-18-2019, 03:01 PM   #5
carloscd
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Rep: Reputation: Disabled
Iptables Web Gui

https://tweenpath.net/creating-a-linux-firewall-using-webmin/
 
Old 09-18-2019, 03:15 PM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by PROBLEMCHYLD View Post
The GUI loads the rule set from /etc/rc.d/rc.firewall. Its about getting the gui started by node server.js on system boot. Thanks though..
what do you think all those scripts in rc.d do?

have you looked at rc.inet2 ?
do you understand what it is doing?

would you need to start node server.js before or after the network is up?


I don't understand why you dismissed a good solution.
 
Old 09-18-2019, 03:18 PM   #7
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,148

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Firerat View Post
what do you think all those scripts in rc.d do?

have you looked at rc.inet2 ?
do you understand what it is doing?

would you need to start node server.js before or after the network is up?


I don't understand why you dismissed a good solution.
After the network is up and I didn't dismiss anything just didn't understand.
 
Old 09-18-2019, 03:25 PM   #8
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
can I assume you now understand?
 
Old 09-18-2019, 03:32 PM   #9
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,148

Original Poster
Rep: Reputation: Disabled
I created a script iptgui.sh and placed it /etc/NetworkManager/dispatcher.d/ now everything loads on start up. Thanks for all the help...

Code:
#!/bin/sh
cd /etc/iptables/
node server.js
exit 0
 
Old 09-18-2019, 06:43 PM   #10
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,148

Original Poster
Rep: Reputation: Disabled
Got the Iptables GUI and fwlogwatch for logging working really smooth. A great combination using the 2. I really do appreciate all the help to better my Slackware experience. Thanks again.......

Last edited by PROBLEMCHYLD; 09-27-2019 at 09:52 PM.
 
Old 09-21-2019, 11:57 PM   #11
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 572

Rep: Reputation: Disabled
Quote:
Originally Posted by PROBLEMCHYLD View Post
I'm using this here https://github.com/puux/iptables, but I have to run the command
Code:
node server.js
as root every time to get it started. How can I get this to auto start during startup?
Don't you feel like having to run nodejs server side software just for managing the firewall rules is a bit overkill?

IMHO this breaks the KISS principle, but YMMV.
 
Old 09-21-2019, 11:58 PM   #12
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 572

Rep: Reputation: Disabled
Quote:
Originally Posted by carloscd View Post
wouldn't webmin work for you?
Made me giggle, because it reminded me about the recent remote code execution vulnerability in webmin.
 
1 members found this post helpful.
Old 09-22-2019, 08:22 AM   #13
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,148

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by FlinchX View Post
Made me giggle, because it reminded me about the recent remote code execution vulnerability in webmin.
I read about this not too long ago.
 
Old 09-22-2019, 10:12 AM   #14
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,890

Rep: Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141
Quote:
Made me giggle, because it reminded me about the recent remote code execution vulnerability in webmin.
Almost all software projects eventually experience security bugs. They almost always get patched. The recent webmin exploit was patched in a timely manner.
 
Old 09-22-2019, 10:17 AM   #15
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: slackware...
Posts: 224

Rep: Reputation: 158Reputation: 158
There's a constant stream of old and new CVEs to be handled... for everyone everywhere...

Here's a list of Webmin's history http://webmin.com/security.html

And an explanation to the above mentioned http://webmin.com/exploit.html


Btw. Webmin is imho a both nice and very efficient way to handle admin jobs in Linux... ymmv and all that!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to take permission to execute root privilege command like iptables in web GUI kikilinux Programming 4 01-23-2016 05:52 AM
Do you think I should use a Qt GUI, a GTK GUI, or no GUI at all? anon02 Programming 5 08-25-2011 06:59 AM
iptables error in android: iptables-save and iptables-restore not working preetb123 Linux - Mobile 5 04-11-2011 01:56 PM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
iptables command/iptables GUI? basketkase999 Linux - Security 5 04-12-2005 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:53 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