Outro usuário em outro fórum encontrou o problema, o firewall foi mal configurado. Com este script funciona tudo bem.
#!/bin/sh
#a simple script firewall
# We need this for redirection
echo 1 > /proc/sys/net/ipv4/ip_forward
firewall_start() {
# Clean
iptables -F
iptables -X
iptables -Z
iptables -t nat -F
iptables -t nat -X
iptables -t nat -Z
iptables -t mangle -F
iptables -t mangle -X
iptables -t mangle -Z
# firewall rules INPUT
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
# X11
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 6000 -j ACCEPT
# Vdr
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 3000 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 2000 -j ACCEPT
# Samba
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 137 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 137 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 138 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 138 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 139 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 139 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 445 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 445 -j ACCEPT
# Mail
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 25 -j ACCEPT
# Print
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 631 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 631 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 515 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 515 -j ACCEPT
# Nfs
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 111 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 111 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 662 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 662 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 2049 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 2049 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 4001 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 4001 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 32768 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 32768 -j ACCEPT
# Ssh
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 2122 -j ACCEPT
# Ftp
iptables -A INPUT -p tcp --sport 20 -m state --state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --dport 20 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --sport 21 -m state --state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --sport 2121 -m state --state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --dport 2121 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 60000:65535 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 60000:65535 -j ACCEPT
# Secure telnet
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 5859 -j ACCEPT
# Ktorrent
iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 54233:54234 -j ACCEPT
iptables -A INPUT -s 192.168.0.0/24 -p udp --dport 54233:54234 -j ACCEPT
# Firewall rules NAT/OUTPUT
iptables -t nat -A PREROUTING -s 192.168.0.0/24 -p tcp --dport 21 -j REDIRECT --to-port 2121
iptables -t nat -A OUTPUT -s 192.168.0.0/24 -p tcp -o lo --dport 21 -j REDIRECT --to-port 2121
iptables -t nat -A PREROUTING -s 192.168.0.0/24 -p tcp --dport 22 -j REDIRECT --to-ports 2122
iptables -t nat -A OUTPUT -s 192.168.0.0/24 -p tcp -o lo --dport 22 -j REDIRECT --to-ports 2122
# Icmp
iptables -A INPUT -p icmp --icmp-type 0 -j ACCEPT
# Log
#iptables -A INPUT -j LOG
#iptables -A FORWARD -j LOG
#Final rules
iptables -A INPUT -j REJECT --reject-with icmp-host-prohibited
iptables -A FORWARD -j REJECT --reject-with icmp-host-prohibited
}
firewall_stop() {
# Clean
iptables -F
iptables -X
iptables -Z
iptables -t nat -F
iptables -t nat -X
iptables -t nat -Z
iptables -t mangle -F
iptables -t mangle -X
iptables -t mangle -Z
}
firewall_restart() {
firewall_stop
firewall_start
}
case "$1" in
'start')
firewall_start
;;
'stop')
firewall_stop
;;
'restart')
firewall_restart
;;
*)
echo "usage $0 start|stop|restart"
esac