Article View: uk.comp.sys.sun
Article #26Re: Solaris NAT & email
From: Mike Mann
Date: Tue, 26 Dec 2000 17:15
Date: Tue, 26 Dec 2000 17:15
47 lines
2774 bytes
2774 bytes
On 26 Dec 2000 13:55:54 GMT, huge@nospam.huge.org.uk (Huge) wrote: >Has anyone tried to connect a small network to demon through a Solaris >NAT gateway? Yes :-) , although I ran postfix on the NAT host so didn't hit this problem. >So, I am trying to do the second. If I understand the ipfilter >manual correctly, I should be able to do this; > >map ipdptp0 10.0.0.0/24 -> 158.152.24.143/32 That doesn't rewrite source ports and there may be clashes. I'd prefer: map ipdptp0 10.0.0.0/24 -> 158.152.24.143/32 portmap tcp/udp 10000:40000 >rdr ipdptp0 158.152.24.143/32 port 25 -> 10.0.0.11 port 25 I don't see any reason why that shouldn't wok although you may need the "rdr" line before the "map" line. ipfilter is often sensitive about ordering. >Indeed, if I try 'telnet 158.152.24.143 25' on the NAT >box, I should expect to find myself connected to port >25 on the mail server, right? In fact, I get a "connection >refused". That won't work because the connection is made locally and isn't appearing on the ipdptp0 interface. To test this properly, you'll need to arrange to do the telnet from outside your network. >All suggestions gratefully accepted. You could run snoop on the dial-up and local network interfaces to see whether packets are being redirected. Another solution would be to use a connection proxy such as plug-gw from http://www.tis.com/research/software/fwtk_over.html Regards, Mike. -- Solaris on Intel: http://www.kempston.net/solaris/ PGP public key available by mail from pgp@kempston.net
Technical Details
Message-ID:
<u1kh4toc3d4h7asrjn4ea84hskotfj6phl@4ax.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!router1.news.adelphia.net!cyclone.news.idirect.com.MISMATCH!newsfeed.direct.ca!look.ca!newsfeed.icl.net!newspeer.clara.net!news.clara.net!diablo.theplanet.net!news.theplanet.net!newspost.theplanet.net!not-for-mailReferences:
<92a81a$e02$1@axalotl.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113606,39929b4fbd263e,start X-Google-Attributes: gid113606,public X-Google-Thread: 108f6a,39929b4fbd263e,start X-Google-Attributes: gid108f6a,public X-Google-ArrivalTime: 2000-12-26 09:17:32 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!router1.news.adelphia.net!cyclone.news.idirect.com.MISMATCH!newsfeed.direct.ca!look.ca!newsfeed.icl.net!newspeer.clara.net!news.clara.net!diablo.theplanet.net!news.theplanet.net!newspost.theplanet.net!not-for-mail From: Mike Mann <mike@kempston.net> Newsgroups: uk.comp.sys.sun,demon.ip.support.unix Subject: Re: Solaris NAT & email Date: Tue, 26 Dec 2000 17:15:12 +0000 Organization: Switched on in Kempston Lines: 47 Message-ID: <u1kh4toc3d4h7asrjn4ea84hskotfj6phl@4ax.com> References: <92a81a$e02$1@axalotl.demon.co.uk> NNTP-Posting-Host: modem-28.neon.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news7.svr.pol.co.uk 977851051 28192 62.136.9.28 (26 Dec 2000 17:17:31 GMT) NNTP-Posting-Date: 26 Dec 2000 17:17:31 GMT X-Complaints-To: abuse@theplanet.net X-Newsreader: Forte Agent 1.8/32.548