PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 26, 2012, 10:07:11 PM


Login with username, password and session length


Pages: [1] 2   Go Down
  Print  
Author Topic: firewall doesn't remember settings  (Read 2151 times)
alphaace
Sr. Member
****
Offline Offline

Posts: 279


« on: August 07, 2010, 03:43:58 PM »

Every time I log into the control center and change my firewalls (to not allow ssh) for example, and go through the wizard the settings are not saved. The default ones are just restored.

Anyone have any suggestions?

Thanks!
Logged
yodelu
PCLinuxOS Tester
Sr. Member
*******
Offline Offline

Posts: 287


« Reply #1 on: August 09, 2010, 03:05:00 AM »

i suppose that wizard use iptables..
the firewall rules are only active if the iptables service is running
/sbin/service iptables restart
if you don see this
 Applying iptables firewall rules:
                                                                [  OK  ]
run this
touch /etc/sysconfig/iptables
chmod 600 /etc/sysconfig/iptables
service iptables start
then, make sure that iptables service is started at boot time - to ensure that it is started when the system is booted  :

/sbin/chkconfig --level 345 iptables on

after you have completed the wizard yo may want to see if  changes are applied

/etc/rc.d/init.d/iptables status

in your example you shoud see
....
DROP     tcp  --  anywhere             anywhere            tcp dpt:ssh
....

hope it helps..
Logged
alphaace
Sr. Member
****
Offline Offline

Posts: 279


« Reply #2 on: August 09, 2010, 12:02:14 PM »

Hi,

I chmodded iptables to 600. Now when i hit iptables restart it says "Applying iptables firewall rules". I also checked that my running services has iptables (and it is on boot).

However, it still doesn't "save settings". Also, iptables status outputs nothing :-(.



Logged
yodelu
PCLinuxOS Tester
Sr. Member
*******
Offline Offline

Posts: 287


« Reply #3 on: August 10, 2010, 06:37:56 AM »

that's weird..
just to be sure - is there any other firewall (eg shorewall ) running on your system ?
if it isn't , pls check your mail  Wink
Logged
alphaace
Sr. Member
****
Offline Offline

Posts: 279


« Reply #4 on: August 10, 2010, 04:57:50 PM »

nope no firewalls...thinking of installing guarddog and seeing what happens...

I would think this is a fairly big bug to overlook..
Logged
Bald Brick
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5148


I'm going South


« Reply #5 on: August 10, 2010, 05:16:03 PM »

that's weird..
just to be sure - is there any other firewall (eg shorewall ) running on your system ?
if it isn't , pls check your mail  Wink

Shorewall is the firewall that you set up in the PCLinuxOS Control Center. And it's just a front end to iptables. Not that this explains the problem....
Logged

If it ain't broke
hit harder!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D
alphaace
Sr. Member
****
Offline Offline

Posts: 279


« Reply #6 on: August 10, 2010, 06:19:54 PM »

am i really the only one with this problem then??

I have a default install... So for everyone else, after you configure the check boxes, and go back to set up the firewall, only your custom checkboxes are still checked yes?
Logged
Bald Brick
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5148


I'm going South


« Reply #7 on: August 10, 2010, 06:38:18 PM »

am i really the only one with this problem then??

I have a default install... So for everyone else, after you configure the check boxes, and go back to set up the firewall, only your custom checkboxes are still checked yes?

Yes.

But ticking the check boxes is setting up the firewall, so I don't really understand the question. Do you "go back" to set up another firewall? Then, of course, the settings will change. Also note that when you tick a box you allow access to the port used by that service. (Please excuse me if I'm stating the obvious.)
Logged

If it ain't broke
hit harder!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D
Texstar
Administrator
Super Villain
*****
Offline Offline

Posts: 11805



« Reply #8 on: August 10, 2010, 07:17:02 PM »

am i really the only one with this problem then??

I have a default install... So for everyone else, after you configure the check boxes, and go back to set up the firewall, only your custom checkboxes are still checked yes?

Yes. All of mine are checked as before. Also every time I make a change they are saved in the /etc/shorewall folder.

Logged

Follow the development of PCLinuxOS on Twitter
Help fund the PCLinuxOS project!

"I'm not so good on advice, can I interest you in a sarcastic reply?"
alphaace
Sr. Member
****
Offline Offline

Posts: 279


« Reply #9 on: August 10, 2010, 09:33:30 PM »

:-(. I wonder why mine doesn't work.

Thanks for taking the time to answer Tex.

Yes, for example, I disable ssh since I don't login remotely (I uncheck). However, when I go back in, the box is still checked.

Anyone have any suggestions then how to start the debugging??
Logged
muungwana
Hero Member
*****
Offline Offline

Posts: 5403


« Reply #10 on: August 10, 2010, 09:45:19 PM »


maybe there is something wrong with the GUI but the options is set and is in use?

can you run these two commands from the terminal as root and report their output?

services iptables restart

services iptables status
Logged

.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..
alphaace
Sr. Member
****
Offline Offline

Posts: 279


« Reply #11 on: August 10, 2010, 10:52:24 PM »

Hi,

I think you mean "service" instead of "services". Then you get the following (if you do mean services then it tells me the command is not found!):

[root@Aphrodite greg]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination     
Logged
muungwana
Hero Member
*****
Offline Offline

Posts: 5403


« Reply #12 on: August 10, 2010, 11:16:24 PM »


yeah, "service", not "services" ..what about the first command? the first command will make sure iptables is running first before checking what rules it is using
Logged

.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..
alphaace
Sr. Member
****
Offline Offline

Posts: 279


« Reply #13 on: August 10, 2010, 11:48:09 PM »

sorry forgot to paste. It says this:

[root@Aphrodite greg]# service iptables restart
Applying iptables firewall rules:
                                                                [  OK  ]
Logged
yodelu
PCLinuxOS Tester
Sr. Member
*******
Offline Offline

Posts: 287


« Reply #14 on: August 11, 2010, 03:25:13 AM »

if shorewall is the GUI in CC for firewall then it should be checked ..
/etc/rc.d/init.d/shorewall reload
if it is running fine then you should see something like
Compiling...
Shorewall configuration compiled to /var/lib/shorewall/.restart
Restarting Shorewall....
ipset v2.2.9: Set already exists
ipset v2.2.9: Set already exists
done.
 
After that go to the  CC wizard and then look at  /etc/shorewall/rules.drakx file and see if the changes are applied

if in rules.drakx you'll see the  rules that you've created before then, when you run service iptables status, look at Chain net2fw - in this chain you must see your rules
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM