[CentOS] nmap showing lots of ports open that shouldn't be

Sun Feb 12 22:27:51 UTC 2006
Scot L. Harris <webid at cfl.rr.com>

On Sun, 2006-02-12 at 16:23 -0600, Steve Bergman wrote:
> Scot L. Harris wrote:
> 
> >
> >But based on the iptables rules you posted it looks like the order of
> >the rules is the problem.  The first two rules allow everything through.
> >Check the contents of /etc/sysconfig/iptables, that is where the rules
> >should be saved.
> >
> >
> >_
> >
> So would:
> 
> # rpm -e iptables --nodeps
> # rm /etc/sysconfig/iptables (just to be sure)
> # yum install iptables
> 
> fix his problem? 
> 
> Of course, that would leave the question of how it was caused in the 
> first place...

No no no!  No need to remove iptables and using nodeps is not
recommended.

He needs to reconfigure iptables to have a set of rules that allows the
services he wants on that server.