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 the firewall turned on and I'm not filtering any outbound traffic but while the firewall is active sendmail cannot connect to other mail servers to deliver outbound mail.
I can turn off the firewall from the terminal using:
service iptables stop
and the mail will send just fine. Turn the firewall back on:
service iptables start
and it's stalled!
I have spent two days now trying to solve this delima. I would appreciate some wisdom on this subject.
i've given this much thought and can only recommend testing what goes on with a tool like tcpdump or ethereal.
Start ethereal, try to send an email and see what happens with the packets. Do it with the firewall on and off. If you don't have much experience with ethereal, play wit it for a while and you'll kinda pick up on what it does. Try to use that to debug what is going on.
Another question, are u able to recieve mail with the firewall up? And try adding the following rule:
iptables -A OUTPUT -j ACCEPT
i know it's the default policy for OUTPUT to ACCEPT already, but add it anyway just for kicks.
alright, let's customize your rules. What all do you want to do with your firewall? Is it a gateway? does it forward packets? What services do you want to allow? Add anything else you want your firewall to do and we'll come up with some rules for you.
If your rules aren't working, wipe 'em clean and let's make our own.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.