Linux Netfilter discussions
 help / color / mirror / Atom feed
* Two ISP and NAT
@ 2002-09-30 18:26 Rimas
  0 siblings, 0 replies; 2+ messages in thread
From: Rimas @ 2002-09-30 18:26 UTC (permalink / raw)
  To: netfilter

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-01 10:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2002-09-30 18:26 Rimas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox