Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Iptables is preventing me from using a monitoring service called Nagios to monitor local services (processes, disk space) on a remote host. The reason is that the Iptables on this remote host are set to only allow traffic through on port 25, and I need to dedicate another port to allow this traffic through (specifically, I'd like to use 5666). Additionally, I'd like for this remote host to only allow traffic on that port from machines on the company LAN. I'm just not sure how to go about doing this; I don't even know what commands I would use to get this started. Any help would be so greatly appreciated.
Iptables is preventing me from using a monitoring service called Nagios to monitor local services (processes, disk space) on a remote host. The reason is that the Iptables on this remote host are set to only allow traffic through on port 25, and I need to dedicate another port to allow this traffic through (specifically, I'd like to use 5666). Additionally, I'd like for this remote host to only allow traffic on that port from machines on the company LAN. I'm just not sure how to go about doing this; I don't even know what commands I would use to get this started. Any help would be so greatly appreciated.
~Myles
Do you use a gui or script to run iptables? What protocol does your monitoring service use?
I am assuming you use tcp. If you are using a script you can add something like this in your script.
Okay, I entered in those commands (well, modified a bit to fit my circumstances). Do I need to do something that will cause this new rule to take affect? After I added the rule, I executed iptables -L, but the new rule does not show there.
Okay, I entered in those commands (well, modified a bit to fit my circumstances). Do I need to do something that will cause this new rule to take affect? After I added the rule, I executed iptables -L, but the new rule does not show there.
-Myles
Hah...forget it, I figured out how to restart Iptables. But the rule I entered didn't stick. I wonder why. Mayhap I should post it and someone can help me troubleshoot?
try iptables-save to write it to the file fedora uses. I don't know which file it is because I've never used fedora, but I'm sure others can help you with that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.