Что-то блокирует порт 25 - как отлаживать?

Последние 3 недели я боролся с проблемой. Я недавно приобрел новый сервер vps, и по какой-то причине что-то блокирует порт 25, и я не могу найти какой именно.

Step to reproduce:
telnet smtp.1and1.es 25
  • traceroute на порту 25 на любом сервере завершится ошибкой при первом переходе.

Я проверил - DNS и все в порядке, так как домен преобразован в ip, а ping работает должным образом.

  • Я отключил fail2ban и брандмауэр, выполнив:

    service fail2ban stop service firewalld stop

Попробовал снова, telnet smtp.1and1.es 25

И тот же таймаут результата.

Все почтовые журналы показывают недоступный хост на порту 25 для всех уведомлений по электронной почте.

Это VPS, поэтому это внешний брандмауэр, внешний брандмауэр полностью открыт.

Мне интересно, какое еще облако блокирует порт?

Это определенно проблема с исходящим трафиком на 25. Но я не могу найти, что его блокирует.

iptables -L

Chain INPUT (policy DROP)
target     prot opt source               destination         
f2b-plesk-wordpress  tcp  --  anywhere             anywhere             multiport dports http,https,empowerid,7081
f2b-plesk-login  tcp  --  anywhere             anywhere             multiport dports cddbp-alt,pcsync-https
f2b-BadBots  tcp  --  anywhere             anywhere             multiport dports http,https,empowerid,7081
f2b-apache  tcp  --  anywhere             anywhere             multiport dports http,https,empowerid,7081
f2b-plesk-roundcube  tcp  --  anywhere             anywhere             multiport dports http,https,empowerid,7081
f2b-plesk-horde  tcp  --  anywhere             anywhere             multiport dports http,https,empowerid,7081
f2b-plesk-dovecot  tcp  --  anywhere             anywhere             multiport dports imap,imap3,imaps,pop3,pop3s,sieve
f2b-plesk-postfix  tcp  --  anywhere             anywhere             multiport dports smtp,urd,submission
f2b-plesk-proftpd  tcp  --  anywhere             anywhere             multiport dports ftp,ftp-data,ftps,ftps-data
f2b-recidive  tcp  --  anywhere             anywhere            
f2b-SSH    tcp  --  anywhere             anywhere             tcp dpt:ssh
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
REJECT     tcp  --  anywhere             anywhere             tcp flags:!FIN,SYN,RST,ACK/SYN state NEW reject-with tcp-reset
DROP       all  --  anywhere             anywhere             state INVALID
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:12443
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:11443
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:11444
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:8447
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:pcsync-https
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:cddbp-alt
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ftp
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:submission
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:smtp
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:urd
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:pop3
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:pop3s
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:imap
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:imaps
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:poppassd
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:mysql
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:postgres
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ogs-server
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:glrpc
ACCEPT     udp  --  anywhere             anywhere             udp dpt:netbios-ns
ACCEPT     udp  --  anywhere             anywhere             udp dpt:netbios-dgm
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:netbios-ssn
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:microsoft-ds
ACCEPT     udp  --  anywhere             anywhere             udp dpt:openvpn
ACCEPT     udp  --  anywhere             anywhere             udp dpt:domain
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:domain
ACCEPT     icmp --  anywhere             anywhere             icmptype 8 code 0
ACCEPT     all  --  anywhere             anywhere            

Chain FORWARD (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
REJECT     tcp  --  anywhere             anywhere             tcp flags:!FIN,SYN,RST,ACK/SYN state NEW reject-with tcp-reset
DROP       all  --  anywhere             anywhere             state INVALID
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            

Chain OUTPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
REJECT     tcp  --  anywhere             anywhere             tcp flags:!FIN,SYN,RST,ACK/SYN state NEW reject-with tcp-reset
DROP       all  --  anywhere             anywhere             state INVALID
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            

Chain f2b-BadBots (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain f2b-SSH (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain f2b-apache (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain f2b-plesk-dovecot (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain f2b-plesk-horde (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain f2b-plesk-login (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain f2b-plesk-postfix (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain f2b-plesk-proftpd (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain f2b-plesk-roundcube (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain f2b-plesk-wordpress (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            

Chain f2b-recidive (1 references)
target     prot opt source               destination         
REJECT     all  --  223.71.208.114       anywhere             reject-with icmp-port-unreachable
REJECT     all  --  221.229.172.75       anywhere             reject-with icmp-port-unreachable
REJECT     all  --  278660.customer.zol.co.zw  anywhere             reject-with icmp-port-unreachable
REJECT     all  --  118.70.168.251       anywhere             reject-with icmp-port-unreachable
RETURN     all  --  anywhere             anywhere    
0
задан 4 November 2016 в 13:37
1 ответ

Большинство компаний VPS запрещают и блокируют исходящий трафик на порту 25, чтобы предотвратить их использование для рассылки спама. Вам нужно будет использовать сторонний почтовый ретранслятор, который прослушивает другой порт (который вполне может быть услугой, которую может предоставить ваша компания VPS).

2
ответ дан 4 December 2019 в 13:37

Теги

Похожие вопросы