LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   mandriva 2005 - firewall (http://www.linuxquestions.org/questions/linux-security-4/mandriva-2005-firewall-469990/)

High-gain 08-02-2006 04:11 AM

mandriva 2005 - firewall
 
Hi There - as a newbie, could someone help with this question please.

What commands at the console can I issue to check or make sure my firewall (shorewall, I think) is up and running and all is ok with the system.

I have implemented the commands thru the 'System Configuration' method, but would like to check all is well.

Hope this does not sound to silly a question and someone could help with this.

Thanks in advance.

win32sux 08-02-2006 02:39 PM

if it's a stand-alone box:
Code:

iptables -L -v -n
if it's a router/gateway:
Code:

iptables -L -v -n

iptables -L -t nat -v -n


High-gain 08-02-2006 03:40 PM

Thanks for your reply - as root have typed iptables, but bash comes back -
#command not found - so guess I do not have the iptables loaded. Will look for that software and install it, then try your instructions.
Thanks again for your help. Will get come back with the results. Good luck.

benjithegreat98 08-02-2006 07:32 PM

also try '/sbin/iptables' and '/usr/sbin/iptables' instead of just plain 'iptables'

Chances are you actually have it but it wasn't in your path when you typed it.

MoMule 08-04-2006 09:28 AM

Shorewall
 
...or you might type:

service shorewall check which will check your configurations and let you know if there are any problems...

Deion "Mule" Christopher

High-gain 08-04-2006 03:23 PM

Thank you MoMule for the info - typed the command you advised and it came back -
#Shorewall service not found
Just going back to 'Configure your system' and try and see what the problem is.
Looks as if 'Shorewall' has not been activated.
Anyway thanks again for your advice. Will post results later.
Good Luck


All times are GMT -5. The time now is 12:24 AM.