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 have a system running RedHat and would like to know if any rules can be set in IPChains, so that it can expicitly allow tcp 110.
The reason is that, I have enabled Pop3 services to run on the machine, but users are not able to receive email when they are popping the mail..They can however send the mail...
What version of Redhat are you using? Ipchains is fairly old and has been deprecated in favor of Iptables. The rule should be very similar, but the syntax is slighly differnet depending on whether you are using ipchains or iptables.
Redhat Linux Enerprise Edition ES 2.1 should be using the 2.4.x series kernel and should therefore have support for iptables. You might want to think about using the iptables facility which allows for statefull packet filtering. If you don't care to switch, this rule should work for ipchains:
One more dumb question...Where and how would I be applying these rules..Where would I have to modify them..Just started dealing with IPchains and am not familiar with RedHat either...
Just enter them in from the command line just like you would with any other command, though you will have to be root. If the command has been entered properly, you should just get a new bash prompt, otherwise you should see an error message. Then to save the rules (otherwise they would be lost on reboot), do:
/etc/init.d/ipchains save
/etc/init.d/ipchains restart
Just use the -D option (delete) with the exact same syntax as the rule you want to remove (the syntax must be identical):
ipchains -D input -p tcp ---dport 110 -j ACCEPT
Again, you will have to save any changes to make them permanent. Here is a good HOWTO on ipchains if you want to read up on the commands and functions of ipchains:
Do I have to be in single user mode to do this..Or, is it the wrong version..The version that is running on the RedHat Box is
ipchains --version
ipchains 1.3.10, 1-Sep-2000..
Just in case, how do I stop ipchains..Stop the processs from running..
That should definitely work. Also keep in mind that if you enter the syntax improperly, then nothing is loaded to the ruleset (you can confirm that with ipchains -L) If you need to stop, start, or restart the ipchains facility. just do:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.