Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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 several services running on my machine (web, pop, smtp) running on my server and I'm having a hell of a hard time with IPTABLES and Sendmail in particular.
I've been testing a simple IPTABLES configuration, and even though I open port 25 I can still not telnet to my server on port 25. All the other ports/services seem to work without any problems. I can remove the rule for port 80 and my web site stops working, I add it back in, and it works again.
So when I do this everything works except my SMTP on port 25, when I try to telnet to port 25 it just hangs. Then I do a IPTABLES -F and I can then telnet to port 25 again.
This doesn't make any sense. Is there some other port that I need to open for Sendmail SMTP? With IPTABLES flushed, I telnet to port 25 and do a NETSTAT at the console and all I see it my IP connected on SMTP.
I've tried several other iptable configs, and all of them always dropped my SSH connection and I had to reboot the server (this is a virtual host on the internet). This one has gotten me the closest to have a primative firewall, but only SMTP is not working???
The best way to find out what other traffic is happening is to flush the firewall, start tcpdump in a second window, and connect. The output of tcpdump will show you what's happening.
My first guess would be ident (port 113) If that's the case then it can be turned off in the sendmail.conf file by setting Timeout.ident = 0.
Yeah that ident setting was already in my SENDMAIL config, so that didn't help. I know I'm on the right track, but??
I did the flush and the TCPDUMP. The only thing I see happening immediately after I see my connection on port 25 the server seems to do a reverse DNS lookup on my ip address. It looks like somehow I'm blocking this DNS lookup from happening although I'm not blocking any outgoing packets with iptables. My statements are all incoming???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.