LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-30-2009, 02:28 PM   #1
huntneeraj
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Post API to detect firewall status in Linux


Hi all,

I need an API (using C) such that it gives the current status of the firewall installed in linux box.The API should be generic such that it can detect any type of firewall.

int getFirewallStaus()

Returrns 1 - For Enabled
0 - Disabled
 
Old 04-30-2009, 03:26 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
You really ought to do your own homework if you expect to learn anything.
 
  


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
finding out package installation status/deps through api? grayFalcon Debian 3 04-25-2009 05:22 PM
snmp - nagios wont detect service status change noob_d Linux - Server 2 06-03-2008 01:34 PM
How can a process detect the status of a signal bluehive Linux - Newbie 5 01-22-2008 01:23 PM
how to auto detect the status of sendmail!!!!!!!!!! dhanju Linux - Networking 5 10-22-2005 07:35 AM
Bash Script to Detect USB drive mount status nutthick Programming 6 02-02-2005 09:17 AM


All times are GMT -5. The time now is 04:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration