Learn how to a build a cloud-first strategyRegister Now


Simple IPTABLES question - accept mail only from select IP addresses

Posted on 2006-04-11
Medium Priority
Last Modified: 2011-04-14

I need to add rules to my snapgear firewall (Linux version 2.4.20-uc0 - ColdFire) to accept mail from only a select few IP addresses, what are the IPTABLES commands I need to add?

This would be very easy using destination NAT, but our firewall is rather old....

Thanks in advance!
Question by:omniumnetworking
LVL 51

Accepted Solution

ahoffmann earned 1000 total points
ID: 16430294
iptables -I FORWARD -p tcp -s selected-IP --dport 25 -j ACCEPT
iptables -I FORWARD -p tcp -d selected-IP --sport 25 -j ACCEPT
# assuming your firewall is not the MTA itself

Author Comment

ID: 16431006

I will check this out and post back.

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
Fine Tune your automatic Updates for Ubuntu / Debian
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question