| Linode Forum https://forum.linode.com/ |
|
| Iptables setup problems https://forum.linode.com/viewtopic.php?f=19&t=3191 |
Page 1 of 1 |
| Author: | jah013 [ Tue Apr 01, 2008 10:51 am ] |
| Post subject: | Iptables setup problems |
I apologize in advance for the length of this post, but I want to include as much info as I can. It appears there is something fundamentally wrong with my iptables setup. Using the tutorial from the Centos wiki: http://wiki.centos.org/HowTos/Network/IPTables The basic initial commands are not working as expected. Checking to see if iptables is installed: OK Code: $ rpm -q iptables Checking to see if iptables modules are loaded: I don't know if there is a PATH statement as in DOS, but commands only work if I use the full path. Even so, there don't seem to be modules. I believe I had read that the modules are now integrated in the kernel. Could the call to a nonexistent module directory be part of the problem? Code: $ su -c 'lsmod | grep ip_tables' Trying to list the currently loaded rules: Code: $ iptables -L Running the same command as root gives results, but no loaded rules. Iptables not running? Code: $ su -c '/sbin/iptables -L' This command is supposed to invoke iptables, but it doesn't seem to work: Code: $ su -c 'system-config-securitylevel' Checking iptables status gives puzzling (to me) results. Code: # /sbin/service iptables status Stopping iptables, OK but some error messages: Code: # /sbin/service iptables stop Starting iptables, OK, but more error messages. Does the final FAILED mean it isn't fully loaded? Code: # /sbin/service iptables start Listing loaded rules now gives results: Code: # /sbin/iptables -L Site is not reachable. When iptables is stopped, site is reachable. Saving iptables results in this: Code: # cat /etc/sysconfig/iptables Can anyone see what the problem might be? As long as I use full pathnames when invoking, it seems to load but the webserver is unreachable. Any help/suggestions would be MUCH appreciated. -Joyce. |
|
| Author: | path [ Tue Apr 01, 2008 1:38 pm ] |
| Post subject: | |
You don't need any modules for your kernel to use iptables. Everything is compiled in. You can edit the "/etc/sysconfig/iptables-config" file to disable the module stuff. Change the following two options to look like the following: Code: IPTABLES_MODULES="" Concerning your other questions.. You need to be root to run the iptables command. The "system-config-securitylevel" program is part of some package. You might be able to figure out which one using Google. You can edit the "/etc/sysconfig/iptables" file directly. You could also use Firehol or some other iptables rule manager type thing. I think there are a few other posts on the forums about that. |
|
| Author: | jah013 [ Tue Apr 01, 2008 5:36 pm ] |
| Post subject: | |
I made the changes you suggested, and that seemed to fix the missing modules problem. As for the other problems, I flushed it all out, and started from scratch, checking each one as I went along. I'm happy to say, it seems stable (for now) and all sites are reachable. Next, the mail server. Then Movable Type. Then Webmin. Then a stats program. Then some time off <g>. Thanks again for your help. -Joyce. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|