From: "Martin A. Brown" <mabrown-lartc@securepipe.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] DNAT rare problem...
Date: Thu, 17 Jul 2003 04:51:05 +0000 [thread overview]
Message-ID: <marc-lartc-105841795624108@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105840234313782@msgid-missing>
Hello there Mac,
[ nicely drawn map snipped ]
[ succinct NAT tables snipped ]
: From Internet (wan site), I can reach without problems the Sendmail
: server host, making ping to 20.5.90.195, and open port 25.
Seems correct.
: From Lan side (hosts 192.168.102.1 or 192.168.102.2), I can ping to
: 20.5.90.195 but I can't to open port 25...
Interesting. I wouldn't expect that to work at all.
: (but sometimes, I can do it !!)
Even more interesting....
Is the linux NAt/masq router perhaps not suppressing ICMP redirects?
: What happen ????????
I'd suggest using DNAT for packets on the way in from the internal network
(your existing rules should take care of this), and using SNAT for packets
destined for the sendmail box from the internal network.
iptables -t nat -s 192.168.102.0/24 -d 20.5.90.195 -p tcp --dport 25 \
-j SNAT --to-source 192.168.100.254
-Martin
P.S., A far better solution would be to use split-horizon DNS and have the
internal hosts connect to the private IP address.
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2003-07-17 4:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-17 0:32 [LARTC] DNAT rare problem ThE PhP_kiD
2003-07-17 4:51 ` Martin A. Brown [this message]
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=marc-lartc-105841795624108@msgid-missing \
--to=mabrown-lartc@securepipe.com \
--cc=lartc@vger.kernel.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.