erlug
[Top] [All Lists]

Re: [Erlug] Postfix e IP in ascolto

To: ERlug - Lista Pubblica <erlug@xxxxxxxxxxxxxx>
Subject: Re: [Erlug] Postfix e IP in ascolto
From: Maurizio Lemmo - Tannoiser <tannoiser@xxxxxxxxxxx>
Date: Sat, 11 Nov 2006 15:40:44 +0100
* sabato 11 novembre 2006, alle 15:23, Sythos scrive:
> > http://www.postfix.org/postconf.5.html#inet_interfaces
> 
> Fatto, riavviati entrambi i postfix sia host che guest ma continua a
> rispondere sempre il postfix host

Ma de che, ma hai *letto* la pagina?

take a look:

haziel:~# ifconfig eth1:1 10.0.0.1 up
haziel:~# ifconfig eth1 |grep inet
          inet addr:192.168.1.42  Bcast:192.168.1.255
Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fea0:a1ce/64 Scope:Link
haziel:~# ifconfig eth1:1 |grep inet
          inet addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.0.0.0

Siamo d'accordo fin qui?

bene, ritocco inet_interfaces, e ho:

haziel:~# vi /etc/postfix/main.cf 
haziel:~# /etc/init.d/postfix restart
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.
haziel:~# postconf |grep inet
inet_interfaces = 10.0.0.1
inet_protocols = ipv4
local_header_rewrite_clients = permit_inet_interfaces

Ok?

ora: eth1 e` 192.168.1.42 e eth1:1 e` l'alias 10.0.0.1. Guarda:

haziel:~# telnet 192.168.1.42 25
Trying 192.168.1.42...
telnet: Unable to connect to remote host: Connection refused
haziel:~# telnet 10.0.0.1 25
Trying 10.0.0.1...
Connected to 10.0.0.1.
Escape character is '^]'.
220 haziel.tenzione.it ESMTP Postfix (Debian/GNU)
quit
221 2.0.0 Bye
Connection closed by foreign host.

Ovviamente, lo stesso ottengo anche da fuori:

gate:~# ifconfig eth0 |grep inet
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::201:2ff:fe07:a8b5/64 Scope:Link
gate:~# telnet 192.168.1.42 25
Trying 192.168.1.42...
telnet: Unable to connect to remote host: Connection refused

(il tentativo a 10.0.0.1 non va buon fine se non tiro una statica,
ovviamente, e mi son gia` rotto).

Ciao.

-- 
                          Maurizio - Tannoiser - Lemmo
                 Founder Member of ERLUG http://erlug.linux.it
-------------------------------------------------------------------------------
Mal: There's plenty of orders of mine she didn't obey.
Wash: Name one!
Mal: She married you!
-- War Stories

<Prev in Thread] Current Thread [Next in Thread>