Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Iptables newbie question 1

Status
Not open for further replies.

StickyBit

Technical User
Jan 4, 2002
264
CA
I'm attempting to configure iptables for the first time. I created a basic firewall-2.4 file with basic iptable commands to perform nat and basic filtering. My question is, does iptables run as a daemon on the system? After running the script I perform ps -ef | grep iptables and see nothing that tells me that it does. Therefore, am I correct in assuming that iptables is apart of the kernel and will not show up as a process on the system? Or should I see something indicating that iptables is running.

I'm running Redhat 7.3

Thanks,

StickyBit.
 
Yes, iptables is a part of the kernel. You will not see it as a process.

ChrisP If someone resolves an issue for you, or was helpful, please click the link on the bottom left hand corner of their post to give them a "star" letting them know they helped you.
 
Thanks ChrisP.

Is there a way I can see what other kernel modules are enabled within my kernel (How would I know iptables/ipchains is enabled)?

Thanks,

StickyBit.
 
The following will show all active tables...

iptables -L -n


ChrisP
If someone resolves an issue for you, or was helpful, please click the link on the bottom left hand corner of their post to give them a "star" letting them know they helped you.
 
Use "lsmod" to see what loadable modules are loaded or "cat /proc/modules" to see the same thing.

"iptables -L -n" actually only shows the "filter" table; you have to do a "iptables -t xxx -L -n" where xxx is "nat" or "mangle" to see those tables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top