From: "Michael Hudin" <hudin@zoetrope.com>
To: netfilter@lists.samba.org
Subject: Outgoing SMTP Mystery
Date: Tue, 4 Jun 2002 15:18:46 -0700 [thread overview]
Message-ID: <013601c20c15$cba57520$52cfd3cf@michael> (raw)
[-- Attachment #1: Type: text/plain, Size: 2823 bytes --]
Okay, so I've gotten everything running fine in my tables as far as HTTP, SSH and POP go, but I'm having a problem with SMTP (I have a qmail server). I can send SMTP out just fine, but no other server can send it in for some reason. It would appear in the logs that it is forwarding fine, but it is still not allowing connections on port 25. My setup is Public Interface: eth0 - 10.10.10.254 Private Interface eth1 - 192.168.77.1 My firewall also serves as a gateway for the private LAN and a VPN server running FreeSWAN. The MX records are set up to point at 10.10.10.252 as the mail server and as you can see below, that is indeed forwarding (or at least it should be). I've always assumed that the numbers in the brackets were port allowances and that may be my problem, but if they were, I wouldn't be able to get to SSH and HTTP. Also, if anyone has any security suggestions, since I just cobbled this together to get it working, they wouldn't fall on deaf ears.
Here are my tables:
*nat
:PREROUTING ACCEPT [241:88600]
:POSTROUTING ACCEPT [0:9862]
:OUTPUT ACCEPT [68:4275]
-A PREROUTING -d 10.10.10.252 -p tcp -m tcp --dport 110 -j DNAT --to-destination 192.168.77.2
-A PREROUTING -d 10.10.10.252 -p tcp -m tcp --dport 25 -j DNAT --to-destination 192.168.77.2
-A PREROUTING -d 10.10.10.251 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.77.2
-A PREROUTING -d 10.10.10.250 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.77.2
-A PREROUTING -d 10.10.10.250 -p tcp -m tcp --dport 22 -j DNAT --to-destination 192.168.77.2
-A POSTROUTING -o eth0 -j SNAT --to-source 10.10.10.254
-A POSTROUTING -o eth1 -j SNAT --to-source 10.10.10.254
COMMIT
*mangle
:PREROUTING ACCEPT [18365:3221456]
:INPUT ACCEPT [10886:760348]
:FORWARD ACCEPT [7269:2438049]
:OUTPUT ACCEPT [8009:752540]
:POSTROUTING ACCEPT [15177:3182145]
COMMIT
*filter
:INPUT ACCEPT [0:229546]
:FORWARD ACCEPT [363:1553786]
:OUTPUT ACCEPT [2:619341]
-A INPUT -p udp -m udp --sport 500 --dport 500 -j ACCEPT
-A INPUT -p tcp -j ACCEPT
-A INPUT -p esp -j ACCEPT
-A INPUT -p ah -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A FORWARD -i eth1 -j ACCEPT
-A FORWARD -i eth0 -o eth1 -p tcp -m tcp --dport 110 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -o eth1 -p tcp -m tcp --dport 25 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -o eth1 -p tcp -m tcp --dport 80 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -o eth1 -p tcp -m tcp --dport 22 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -p udp -m udp --sport 500 --dport 500 -j ACCEPT
-A OUTPUT -p tcp -j ACCEPT
-A OUTPUT -p esp -j ACCEPT
-A OUTPUT -p ah -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
COMMIT
Michael Hudin
Sentinel Systems Support
www.zoetrope.com
[-- Attachment #2: Type: text/html, Size: 3962 bytes --]
next reply other threads:[~2002-06-04 22:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-04 22:18 Michael Hudin [this message]
2002-06-04 22:37 ` Outgoing SMTP Mystery Antony Stone
2002-06-04 22:59 ` Travis Crook
2002-06-04 23:28 ` Michael Hudin
2002-06-04 23:46 ` Antony Stone
2002-06-05 17:58 ` Michael Hudin
2002-06-05 17:58 ` patrick conlin
[not found] <3A5DC36EC1506C40825C05BE65E62AEF0E79EC@neptuno.idea.com.mx>
2002-06-05 18:21 ` Michael Hudin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='013601c20c15$cba57520$52cfd3cf@michael' \
--to=hudin@zoetrope.com \
--cc=netfilter@lists.samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.