Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running RedHat 8.0. I scanned my system with nmap and I found a few open ports (only 3 which surprised me). Obviously I wanted them closed, but it seems “iptables” is not a valid command. I thought that maybe it wasn't installed, so I found an RPM package for it and gave that a try, but it told me it was already installed.
Then I entered “/sbin/iptables” and I got the error message.
iptables v1.2.6a: no command specified
Try `iptables -h' or 'iptables --help' for more information.
I tried to close the port by typing “/sbin/iptables -A INPUT -p tcp --dport <port number> -j REJECT
I received no feedback, but no error messages either so I thought it may have worked. But then another nmap scan showed the port still open.
I'm very much a newbie to this, can anybody suggest what I might be doing wrong? Thank you.
Yeah it works when I use the whole path (as I did above when trying to close the ports) just not alone, and the help files tell me to do exactly what I did, which didn't work. Anyway I'm about to give that wrapper a try now. I'll edit this post and say how it went.
Well it doesn't work really, the ports are still open. I give up though, I was able to configure it perfectly easily on my main partition (Vector Linux). RedHat is just installed on spare space that I use for trying every distro I can get my hands on anyway. I'm somewhat of a Linux whore.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.