Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Rimas" <rmocius@auste.elnet.lt>
To: netfilter@lists.netfilter.org
Subject: Two ISP and NAT
Date: Mon, 30 Sep 2002 19:26:43 +0100	[thread overview]
Message-ID: <007101c268ae$eec3e910$6e69690a@rimas> (raw)

[-- Attachment #1: Type: text/plain, Size: 1363 bytes --]

Hi folks,

I have 2 ISP Inet connections.

1 Inet I (eth0) use have used for everything (SMTP server, MASQ for local network)
I got the 2 INET (eth1)  and made some changes:

They both have MASQ:
    iptables -t nat -A POSTROUTING -o $EXTERNAL_INTERFACE_2 -j MASQUERADE (2 Inet)
    iptables -t nat -A POSTROUTING -o $EXTERNAL_INTERFACE_1 -j MASQUERADE (1 Inet)

I changed default route to eth1 and put some additional  route: 
ip route rep default via ext_ip2 dev eth1
ip route add  1.2.3.4 via ext_ip1 (eth0)

And now I'm having  a problem with my email server (Lotus Notes on Linux).
It can send emails via SMTP but cannot use encrypted Lotus connection and receive emails as well.

 iptables -t nat -A PREROUTING -i $EXTERNAL_INTERFACE_1 -p tcp -d $EXTERNALIP_1 --dport 25 \
                                  -j DNAT --to-destination 1.2.3.196:25

# Lotus Notes Encrypted connection (tcp 1352) port forward from eth0 to internal ip 10.105.105.196  
 iptables -t nat -A PREROUTING -i $EXTERNAL_INTERFACE_1 -p tcp -d $EXTERNALIP_1 --dport 1352 \
                                   -j DNAT --to-destination 1.2.3.196:1352

And how to route with ip route command that email server have to use not the default route (eth1) but eth0.

What I need to configure more to get working back my email server?


Thank you in advance

Rimas

[-- Attachment #2: Type: text/html, Size: 3441 bytes --]

             reply	other threads:[~2002-09-30 18:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-30 18:26 Rimas [this message]
     [not found] <010901c26913$f9bcf2c0$6e69690a@rimas>
     [not found] ` <2054.192.168.7.41.1033456942.squirrel@iw.k1k2.com>
2002-10-01 10:23   ` Two ISP and NAT Rimas

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='007101c268ae$eec3e910$6e69690a@rimas' \
    --to=rmocius@auste.elnet.lt \
    --cc=netfilter@lists.netfilter.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox