www.centos.org Forum Index CentOS 5 - General Support Corrupt Iptables
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread |
|---|
|
Re: Corrupt Iptables | #16 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
Quote:
... and won't if yum is truly hanging. Perhaps it will work after removing yum-plugin-fastestmirror but that's not anything I ever find necessary. Seems there may be some networking issues present. Have you given yum a long time to see if something finally times out? |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/5 19:39
|
|||
|
Re: Corrupt Iptables | #14 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/10/27
From
Posts: 14
|
When i try rpm -V iptables it says that iptables isn't installed. I can't seem to do iptables start either. Currently my yum isn't working and I'm not able to do yum re-install iptables. It just freezes at finding fastest mirror and I have to kill the process.
|
||
Posted on: 2012/3/5 3:06
|
|||
|
Re: Corrupt Iptables | #13 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2009/9/24
From Brighton, UK
Posts: 6306
|
Does the command `rpm -V iptables` return anything? That'll ask rpm to verify that all files it believes belong to the iptables package exist and have the correct md5sum and timestamp. If they verify ok then the command will return no output, if they don't then it'll tell you which. I'd also try `/etc/init.d/iptables start` directly and see if you get a different error message. A possible solution might also be `yum reinstall iptables` but, I'd also be *very* interested to know how it got into a non-working state and also more than a little suspicious about it.
|
||
|
_________________
Linux/VoIP Systems Administrator |
|||
Posted on: 2012/3/5 2:39
|
|||
|
Re: Corrupt Iptables | #12 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
If you have files on separate partitions for things like /home or non-OS data filesystems then yes - you could reinstall and not reformat those partitions. For partitions and filesystems used for the OS, no - they need to be reformatted. In any case, back up anything you care about to external or remote media before proceeding.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/5 2:26
|
|||
|
Re: Corrupt Iptables | #11 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/10/27
From
Posts: 14
|
Is there a way I can keep my files too when doing a fresh install?
|
||
Posted on: 2012/3/5 2:22
|
|||
|
Re: Corrupt Iptables | #10 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
If "service iptables whatever" fails, then copying files will do you no good. If this is a fresh install a reinstall with additional packages may be the cleanest route to a working system.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/5 1:48
|
|||
|
Re: Corrupt Iptables | #9 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/10/27
From
Posts: 14
|
Would I be able to copy the iptables files from another server? If possible what are the file locations?
|
||
Posted on: 2012/3/5 1:38
|
|||
|
Re: Corrupt Iptables | #8 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
Nothing obvious (to me) wrong there. The information requested in post #4 might tell us more. Sneakernet may be required. This post may be helpful.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/5 1:29
|
|||
|
Re: Corrupt Iptables | #7 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/10/27
From
Posts: 14
|
for uname -a I've gotten Linux vs1.vangetti.com 2.6.18-274.12.1.el5xen #1 SMP Tue Nov 29 14:18:21 EST 201 1 x86_64 x86_64 GNU/Linux
rpm -q centos release centos-release-5-7.el5.centos I'm having some trouble getting the ./getinfo.sh I don't think my server can download any files. |
||
Posted on: 2012/3/5 1:24
|
|||
|
Re: Corrupt Iptables | #6 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
I confess to being amazed that a minimal install would omit iptables, and chagrined at being proven wrong.
![]() The requested script output will supply what you asked for and more, but that minimal information might be telling. |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/5 1:00
|
|||
|
Re: Corrupt Iptables | #5 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2009/9/24
From Brighton, UK
Posts: 6306
|
Actually if you do a 5.7 install from DVD and deselect absolutely everything, all groups and all "customise software options" then you get a system without iptables. Discovered this the other night and have subsequently been changing to Alt-F2 as the last step in a manual install and chrooting the newly installed system and using yum to install iptables, firstboot-tui and a couple of other things I've now forgotten.
xeugene123x could you please supply details of `uname -a` and `rpm -q centos-release` from your system. |
||
|
_________________
Linux/VoIP Systems Administrator |
|||
Posted on: 2012/3/5 0:55
|
|||
|
Re: Corrupt Iptables | #4 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
You should never need to remove iptables manually or otherwise, and even the most minimal install should include it. Please provide more information about your system by running "./getinfo.sh" and showing us the output file.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/5 0:46
|
|||
|
Re: Corrupt Iptables | #3 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/10/27
From
Posts: 14
|
Yeah. I did. hmm is there a way to delete iptables manually?
|
||
Posted on: 2012/3/4 22:38
|
|||
|
Re: Corrupt Iptables | #2 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2009/9/24
From Brighton, UK
Posts: 6306
|
Did you become root correctly? http://wiki.centos.org/TipsAndTricks/BecomingRoot
|
||
|
_________________
Linux/VoIP Systems Administrator |
|||
Posted on: 2012/3/4 13:32
|
|||
|
Corrupt Iptables | #1 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2011/10/27
From
Posts: 14
|
I can't use service iptables restart/start/stop says it doesn't exist. I have tried to do yum remove iptables, but it didn't work. I have also tried to install it but it says that it is already installed. I can't access the ssh and the only way to access the server is through KVM. How can I fix this?
Thank You |
||
Posted on: 2012/3/4 12:36
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Oldest First
pschaff





You cannot start a new topic.
You can view topic.