Hi,
I am running a mailserver (ISPConfig) in a proxmox lxc container which was working fine and stopped working recently all of a sudden.
All the ports necessary are open in the proxmox host:
I use shorewall for routing from the command line which shows all :
In lxc host, 192.168.25.110, all ports are open too.
Telnet to all ports from the host machine to lxc container works without a problem.
However, telnet to other SMTPS ports (465 and 587) than 25 are accessible from outside to the public IP.
But telnet from outside does not connect to port 25. However The counter from the 'shorewall show -t nat' output shows there is exchange of packets at port 25. It could be reason that the emails could not be sent.
Also tried by running postfix in the host machine to listen to loopback-only (inet_interfaces = loopback-only) mode, but without success.
This has happened after recent upgrade (still in proxmox 4.4). There is no smtp filter applied by the webhost provider.
Any pointers appreciated.
Thanks and cheers.
/z
I am running a mailserver (ISPConfig) in a proxmox lxc container which was working fine and stopped working recently all of a sudden.
All the ports necessary are open in the proxmox host:
Code:
# iptables -L | grep smtp
ACCEPT tcp -- anywhere 192.168.25.110 tcp dpt:smtp
I use shorewall for routing from the command line which shows all :
Code:
# shorewall show -t nat
Shorewall 4.6.4.3 nat Table at server2 - Sat Jun 29 12:57:42 CEST 2019
Counters reset Sat Jun 29 09:58:06 CEST 2019
Chain PREROUTING (policy ACCEPT 7590 packets, 449K bytes)
pkts bytes target prot opt in out source destination
12161 763K net_dnat all -- eth0 * 0.0.0.0/0 0.0.0.0/0
Chain INPUT (policy ACCEPT 620 packets, 36290 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 983 packets, 67958 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 8086 packets, 535K bytes)
pkts bytes target prot opt in out source destination
3466 218K eth0_masq all -- * eth0 0.0.0.0/0 0.0.0.0/0
Chain eth0_masq (1 references)
pkts bytes target prot opt in out source destination
1625 116K SNAT all -- * * 192.168.25.0/24 0.0.0.0/0 to:<PUBLIC_IP>
Chain net_dnat (1 references)
pkts bytes target prot opt in out source destination
1 40 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:20 to:192.168.25.110
1 60 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:21 to:192.168.25.110
0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 to:192.168.25.110:22
1382 82392 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 to:192.168.25.110
36 1952 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 to:192.168.25.110
1 60 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110 to:192.168.25.110
676 27060 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143 to:192.168.25.110
67 3924 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 to:192.168.25.110
1 60 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:465 to:192.168.25.110
1 60 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:587 to:192.168.25.110
4 240 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:993 to:192.168.25.110
1 60 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:995 to:192.168.25.110
3 148 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306 to:192.168.25.110
0 0 DNAT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:3306 to:192.168.25.110
In lxc host, 192.168.25.110, all ports are open too.
Telnet to all ports from the host machine to lxc container works without a problem.
However, telnet to other SMTPS ports (465 and 587) than 25 are accessible from outside to the public IP.
Code:
$ telnet <PUBLIC_IP> 465
Trying <PUBLIC_IP>..
Connected to <PUBLIC_IP>.
Escape character is '^]'.
^].
telnet> quit
Connection closed.
But telnet from outside does not connect to port 25. However The counter from the 'shorewall show -t nat' output shows there is exchange of packets at port 25. It could be reason that the emails could not be sent.
Also tried by running postfix in the host machine to listen to loopback-only (inet_interfaces = loopback-only) mode, but without success.
This has happened after recent upgrade (still in proxmox 4.4). There is no smtp filter applied by the webhost provider.
Any pointers appreciated.
Thanks and cheers.
/z
Last edited: