LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-14-2007, 11:17 PM   #1
mblames
Member
 
Registered: Apr 2006
Location: Place for all OpenSource
Distribution: OpenBSD 4.1, FC5
Posts: 50

Rep: Reputation: 15
Iptables rule for SMTP on NAT


Hi all,
Does anyone know how to make iptables rules for SMTP for the NAT ?Cause http://cbl.abuseat.org/ always block my NAT's IP, it said that my IP was spamming . I already check all my clients packages with iftop and also MRTG. There is nothing wrong with my clients. But I noticed that they sent messages massively,using group lists(group@blabla.net) sometimes constantly. I already added rules like this to my iptables :

-A FORWARD -d xx.xx.xx.xx -p tcp --dport 25 -j ACCEPT
-A FORWARD -s xx.xx.xx.xx -p tcp --dport 25 -j ACCEPT
-A FORWARD -p tcp --dport 25 -j DROP

Im tryin to force my clients thru smtp ports, so that site wont block my NAT's IP.
Will you help me configure iptables for the NAT??

Regards
 
Old 02-15-2007, 12:10 AM   #2
callmetimmay
LQ Newbie
 
Registered: Feb 2007
Location: Bridgeview, IL
Distribution: Fedora Core 4/6, Ubuntu 5.01
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by mblames
Hi all,
Does anyone know how to make iptables rules for SMTP for the NAT ?Cause http://cbl.abuseat.org/ always block my NAT's IP, it said that my IP was spamming . I already check all my clients packages with iftop and also MRTG. There is nothing wrong with my clients. But I noticed that they sent messages massively,using group lists(group@blabla.net) sometimes constantly. I already added rules like this to my iptables :

-A FORWARD -d xx.xx.xx.xx -p tcp --dport 25 -j ACCEPT
-A FORWARD -s xx.xx.xx.xx -p tcp --dport 25 -j ACCEPT
-A FORWARD -p tcp --dport 25 -j DROP

Im tryin to force my clients thru smtp ports, so that site wont block my NAT's IP.
Will you help me configure iptables for the NAT??

Regards
while I don't quite understand your post completely... if you have 2 nics setup, one outside, one inside... here's the actual command I would use to forward to the smtp server on the localside...

iptables -t nat -A PREROUTING -p tcp --dport 25 -j DNAT --to 192.168.0.100

change that ip address to whatever computer is running your smtp server.......
 
Old 02-15-2007, 12:52 AM   #3
mblames
Member
 
Registered: Apr 2006
Location: Place for all OpenSource
Distribution: OpenBSD 4.1, FC5
Posts: 50

Original Poster
Rep: Reputation: 15
All I want that my NAT's IP wont be block anymore by the http://cbl.abuseat.org/.
Coz everytime my clients send mails (using mailing group), it always block my IP.
anyway I'll try it
Thanks for your reply

Regards
 
Old 02-15-2007, 06:06 PM   #4
callmetimmay
LQ Newbie
 
Registered: Feb 2007
Location: Bridgeview, IL
Distribution: Fedora Core 4/6, Ubuntu 5.01
Posts: 9

Rep: Reputation: 0
If that domain is blocking mail coming from you or people in your network, you have to email the people at that domain...
 
Old 02-15-2007, 11:08 PM   #5
mblames
Member
 
Registered: Apr 2006
Location: Place for all OpenSource
Distribution: OpenBSD 4.1, FC5
Posts: 50

Original Poster
Rep: Reputation: 15
well, until now its working fine
i always monitoring with iftop, to see whats going on..
ill report if something going on

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables nat port forwarding rule set crowhurst01 Linux - Networking 2 02-13-2012 03:39 AM
What is it doing this iptables rule?? lanczer Linux - Security 1 02-24-2006 11:26 AM
a little help needed for adding nat rule cutejai Linux - Networking 1 12-16-2005 06:14 PM
NAT Rule for FTP failing raja_lucky22 Linux - Security 2 07-04-2005 10:31 PM
NAT + SMTP problem on SuSE 9.1 Pro Malakim Linux - Networking 0 07-27-2004 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration