Pure-Ftpd Timeout after change Port

Discussion in 'Installation/Configuration' started by GarGamel55, Jul 22, 2011.

  1. GarGamel55

    GarGamel55 New Member

    Hello,

    I've changed the port in /etc/pure-ftpd/conf/Bind ---> *,21444

    Then , i open the port in firewall and change also /usr/local/ispconfig/server/mods-available/monitor_core_module.inc.php

    and restart service

    But impossible to connect

    Code:
    Status:	Connection established, waiting for welcome message...
    Response:	220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    Response:	220-You are user number 3 of 50 allowed.
    Response:	220-Local time is now 15:57. Server port: 21444.
    Response:	220-This is a private system - No anonymous login
    Response:	220-IPv6 connections are also welcome on this server.
    Response:	220 You will be disconnected after 15 minutes of inactivity.
    Command:	USER xxxxx
    Response:	331 User xxxxx OK. Password required
    Command:	PASS ************
    Response:	230-User xxxxx has group access to:  client0    sshusers  
    Response:	230 OK. Current restricted directory is /
    Command:	OPTS UTF8 ON
    Response:	200 OK, UTF-8 enabled
    Status:	Connected
    Status:	Retrieving directory listing...
    Command:	PWD
    Response:	257 "/" is your current location
    Command:	TYPE I
    Response:	200 TYPE is now 8-bit binary
    Command:	PASV
    Response:	227 Entering Passive Mode (46,105,108,184,189,127)
    Command:	MLSD
    Error:	Connection timed out
    Error:	Failed to retrieve directory listing
    
    An idea ?

    Thanks
     
    Last edited: Jul 22, 2011
  2. erosbk

    erosbk New Member

    Did it work in port 21?
     
  3. GarGamel55

    GarGamel55 New Member

    No, the new port is considered

    With the port 21 :
    Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server".
     
  4. erosbk

    erosbk New Member

    Ok, set port 21 for pure-ftpd and test if it is working or not. Try active connection instead passive too to see if u have the same result.
     
  5. GarGamel55

    GarGamel55 New Member

    With port 21 : active and passive OK
    With alt port : only passive is OK

    I don't know why alt port not working in active mod .... but it working in passive mode ...so, i will use passive mode :D

    thanks for your time

    Merci beaucoup ;)

    GarG
     
  6. erosbk

    erosbk New Member

    Could you post here you iptables rules?

    iptables --list
     
  7. GarGamel55

    GarGamel55 New Member

    Code:
    Chain INPUT (policy DROP)
    target     prot opt source               destination
    fail2ban-courierimaps  tcp  --  anywhere             anywhere            multipo                                                                                                 rt dports imaps
    fail2ban-sasl  tcp  --  anywhere             anywhere            multiport dport                                                                                                 s smtp
    fail2ban-courierimap  tcp  --  anywhere             anywhere            multipor                                                                                                 t dports imap2
    DROP       tcp  --  anywhere             loopback/8
    ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTAB                                                                                                 LISHED
    ACCEPT     all  --  anywhere             anywhere
    DROP       all  --  base-address.mcast.net/4  anywhere
    PUB_IN     all  --  anywhere             anywhere
    PUB_IN     all  --  anywhere             anywhere
    PUB_IN     all  --  anywhere             anywhere
    PUB_IN     all  --  anywhere             anywhere
    DROP       all  --  anywhere             anywhere
    
    Chain FORWARD (policy DROP)
    target     prot opt source               destination
    ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTAB                                                                                                 LISHED
    DROP       all  --  anywhere             anywhere
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    PUB_OUT    all  --  anywhere             anywhere
    PUB_OUT    all  --  anywhere             anywhere
    PUB_OUT    all  --  anywhere             anywhere
    PUB_OUT    all  --  anywhere             anywhere
    
    Chain INT_IN (0 references)
    target     prot opt source               destination
    ACCEPT     icmp --  anywhere             anywhere
    DROP       all  --  anywhere             anywhere
    
    Chain INT_OUT (0 references)
    target     prot opt source               destination
    ACCEPT     icmp --  anywhere             anywhere
    ACCEPT     all  --  anywhere             anywhere
    
    Chain PAROLE (13 references)
    target     prot opt source               destination
    ACCEPT     all  --  anywhere             anywhere
    
    Chain PUB_IN (4 references)
    target     prot opt source               destination
    ACCEPT     icmp --  anywhere             anywhere            icmp destination-un                                                                                                 reachable
    ACCEPT     icmp --  anywhere             anywhere            icmp echo-reply
    ACCEPT     icmp --  anywhere             anywhere            icmp time-exceeded
    ACCEPT     icmp --  anywhere             anywhere            icmp echo-request
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:smtp
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:domain
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:www
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:pop3
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:imap2
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:https
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:mysql
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:http-alt
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:tproxy
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:21444
    PAROLE     tcp  --  anywhere             anywhere            tcp dpts:22056:23156                                                                                            6
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:28999
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:50443
    ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain
    ACCEPT     udp  --  anywhere             anywhere            udp dpt:mysql
    DROP       icmp --  anywhere             anywhere
    DROP       all  --  anywhere             anywhere
    
    Chain PUB_OUT (4 references)
    target     prot opt source               destination
    ACCEPT     all  --  anywhere             anywhere
    
    Chain fail2ban-courierimap (1 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
    Chain fail2ban-courierimaps (1 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
    Chain fail2ban-courierpop3 (0 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
    Chain fail2ban-pureftpd (0 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
    Chain fail2ban-sasl (1 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
    Chain fail2ban-ssh (0 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
     
    Last edited: Jul 22, 2011
  8. erosbk

    erosbk New Member

Share This Page