Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2018 22:51:58 +0900
From:      =?utf-8?B?6KW/5p2R6Imv5byY?= <ilovefd@topaz.plala.or.jp>
To:        freebsd-users-jp@freebsd.org
Subject:   [FreeBSD-users-jp 96201]  =?utf-8?b?RnJlZWJzZDEwLjHjga7jgqvjg7zjg43jg6tuYXTjgadzbXRw44GM?= =?utf-8?b?6YCa44KJ44Gq44GE?=
Message-ID:  <87156DB8-3D5C-4404-8B3D-597617DC43EA@topaz.plala.or.jp>

next in thread | raw e-mail | index | archive | help

西村といいます。

Freebsd10.1でカーネルPPPoeでNATルータを作り、ppp.confに

        nat enable yes
	nat port tcp 192.168.1.31:143 143
	nat port tcp 192.168.1.31:25 25
	nat port udp 192.168.1.31:25 25
	nat port udp 192.168.1.31:143 143
	
を設定したのですが、インターネット側から内部(192.168.1.0/24)のメールサーバ(192.168.1.31)にtelnet すると
以下のようになりimapは通るのですが,smptが拒絶されます。

Mac:~ ccommail$ telnet hoge.dyndns-wiki.com 143
Trying 219.165.236.94...
Connected to hoge.dyndns-wiki.com.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
bye
bye BAD Error in IMAP command received by server.
bye
bye BAD Error in IMAP command received by server.
bye
* BYE Too many invalid IMAP commands.
Connection closed by foreign host.
Mac:~ ccl$ telnet hoge.dyndns-wiki.com 25
Trying 219.165.236.94...
telnet: connect to address 219.165.236.94: Connection refused
telnet: Unable to connect to remote host
Mac:~ ccommail$ 

もちろんメールサーバと同じ内部ネット(NATルータの内側)に置いた端末からやると問題なく以下のように接続できました
Mac:~ ccommail$ telnet 192.168.1.31 143
Trying 192.168.1.31...
Connected to 192.168.1.31.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
bye
bye BAD Error in IMAP command received by server.
bye
bye BAD Error in IMAP command received by server.
bye
* BYE Too many invalid IMAP commands.
Connection closed by foreign host.
Mac:~ ccommail$ telnet 192.168.1.31 25
Trying 192.168.1.31...
Connected to 192.168.1.31.
Escape character is '^]'.
220 mail5.iloveyou.com ESMTP
bye
502 5.5.2 Error: command not recognized
quit
221 2.0.0 Bye
Connection closed by foreign host.
ccmailnoiMac:~ ccmail$ 

PPPOEがimapはリダイレクトしていますが、smtpは弾いているようです。
/etc/rc.confの中でfirewall_type=“open”としています、
以前はFBSD4.8で同様のルータを作っていた時はこのような問題はなかったので、お教えいただければ幸いです。





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87156DB8-3D5C-4404-8B3D-597617DC43EA>