The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
IPtables 182x IP Networking 1 11-28-2006 02:03 AM
Send email where # is in the email address - Using Unix jingi1234 UNIX for Dummies Questions & Answers 1 05-23-2005 11:23 AM
Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) Vetrivela UNIX for Advanced & Expert Users 2 02-15-2005 10:43 AM
IPtables Jody UNIX for Dummies Questions & Answers 3 05-31-2003 08:08 PM
iptables, ftp sTorm UNIX for Dummies Questions & Answers 2 03-19-2002 03:18 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-05-2004
Jody Jody is offline
Registered User
  
 

Join Date: Sep 2002
Location: Nashville, TN
Posts: 66
Iptables and email

Here's my story: I am using Red Hat 9.0 for iptables to set up port forwarding so that we do not need to rely on another company for external email services. This will mean that we will only need the one email server that we have.

I was told that we could not use the firewall that we already have(that would be too easy) to set this up, and we have the DMZ that will be in between the External and the Internal address spaces. My Iptables firewall has a NIC on the External and one on the DMZ. The email server that I am using has a NIC in the DMZ and one on the inside. My current iptables set up is such that it already allows me to receive email, but not send it:

# Generated by iptables-save v1.2.7a on Thu Nov 4 12:16:26 2004
*mangle
:PREROUTING ACCEPT [1734:141563]
:INPUT ACCEPT [1732:141467]
:FORWARD ACCEPT [2:96]
:OUTPUT ACCEPT [1726:140991]
:POSTROUTING ACCEPT [1728:141087]
COMMIT
# Completed on Thu Nov 4 12:16:26 2004
# Generated by iptables-save v1.2.7a on Thu Nov 4 12:16:26 2004
*filter
:INPUT ACCEPT [1732:141467]
:FORWARD ACCEPT [2:96]
:OUTPUT ACCEPT [1726:140991]
COMMIT
# Completed on Thu Nov 4 12:16:26 2004
# Generated by iptables-save v1.2.7a on Thu Nov 4 12:16:26 2004
*nat
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -d 124.36.33.67 -i eth0 -j DNAT --to-destination 192.33.2.45
COMMIT


I have tried setting up a POSTROUTING and an OUTPUT chain to help with sending email, but that has not done me any good. I also checked my routes on the email server, and they appear alright. I am using WEBMIN to configure iptables, as I am pretty weak with it. Any advice with configuring IPTABLES to send email would be appreciated.
  #2 (permalink)  
Old 11-05-2004
Jody Jody is offline
Registered User
  
 

Join Date: Sep 2002
Location: Nashville, TN
Posts: 66
By the way, here is the iptable file that I have now, but while I can receive email, I cannot send it.

# Generated by iptables-save v1.2.7a on Thu Nov 4 12:16:26 2004
*mangle
:PREROUTING ACCEPT [1734:141563]
:INPUT ACCEPT [1732:141467]
:FORWARD ACCEPT [2:96]
:OUTPUT ACCEPT [1726:140991]
:POSTROUTING ACCEPT [1728:141087]
COMMIT
# Completed on Thu Nov 4 12:16:26 2004
# Generated by iptables-save v1.2.7a on Thu Nov 4 12:16:26 2004
*filter
:INPUT ACCEPT [1732:141467]
:FORWARD ACCEPT [2:96]
:OUTPUT ACCEPT [1726:140991]
COMMIT
# Completed on Thu Nov 4 12:16:26 2004
# Generated by iptables-save v1.2.7a on Thu Nov 4 12:16:26 2004
*nat
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -d 124.36.33.67 -i eth0 -j DNAT --to-destination 192.33.2.45
-A POSTROUTING -p tcp -m tcp -s 124.36.33.67 -o eth0 --sport 25 -j SNAT --to-s
ource 192.33.2.45
COMMIT


Again, thanks for any help.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0