LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Firewall Status (https://www.linuxquestions.org/questions/linux-general-1/firewall-status-51526/)

twantrd 03-24-2003 04:48 PM

Firewall Status
 
Hello everyone,
My question is how do u check if your firewall is up and running? I know how to turn it off (using command 'lokkit'). Can someone post a snapshot of what it looks like when they're linux firewall is up and when it's not? And what is the command used to check the firewall status....? Thanx.....oh yea, for redhat please. :)

-twantrd

Tinkster 03-24-2003 05:14 PM

Assuming that RH also uses iptables
I'd say just try a
Code:

iptables -L
to see whether there's any chains
active at all...

Cheers,
Tink

twantrd 03-25-2003 02:25 AM

When i type that i get this:
/lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
/lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed
iptables v1.2.5: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

Does that indicate anything? Im such a noob! :)


-twantrd

Tinkster 03-26-2003 03:23 PM

Did you try running that as a normal user?

What does your lsmod output?

What does it say when you try
modprobe iptable_nat
?

Cheers,
Tink

twantrd 03-26-2003 10:30 PM

I tried running that as root because only root would recognize the commands. I typed 'lsmod" and this is what i get:

Module Size Used by Not tainted
autofs 12164 0 (autoclean) (unused)
8139too 16448 1
mii 2408 0 [8139too]
ipchains 43560 15
ide-cd 30272 0 (autoclean)
cdrom 32192 0 (autoclean) [ide-cd]
usb-uhci 24484 0 (unused)
usbcore 73152 1 [usb-uhci]
ext3 67136 3
jbd 49400 3 [ext3]

when i type "modprobe iptable_nat" i get this:

[toan@localhost .]# modprobe iptable_nat
/lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
/lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o: insmod iptable_nat failed

So, im assuming that iptables is not being used and ipchains is instead. So i typed 'ipchains -L' and it shows all this ACCEPT and REJECT. So i guess that's my firewall :).......am i right Tinkster? :)

-twantrd

Tinkster 03-27-2003 01:56 PM

Got it, congratulations ...

:)

Cheers,
Tink


All times are GMT -5. The time now is 05:09 PM.