Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd July 2011, 17:03
GarGamel55 GarGamel55 is offline
Member
 
Join Date: Jul 2011
Posts: 30
Thanks: 6
Thanked 3 Times in 3 Posts
Default Pure-Ftpd Timeout after change Port

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 by GarGamel55; 22nd July 2011 at 17:06.
Reply With Quote
Sponsored Links
  #2  
Old 22nd July 2011, 17:14
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

Did it work in port 21?
Reply With Quote
  #3  
Old 22nd July 2011, 17:20
GarGamel55 GarGamel55 is offline
Member
 
Join Date: Jul 2011
Posts: 30
Thanks: 6
Thanked 3 Times in 3 Posts
Default

No, the new port is considered

With the port 21 :
Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server".
Reply With Quote
  #4  
Old 22nd July 2011, 19:22
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

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.
Reply With Quote
  #5  
Old 22nd July 2011, 20:37
GarGamel55 GarGamel55 is offline
Member
 
Join Date: Jul 2011
Posts: 30
Thanks: 6
Thanked 3 Times in 3 Posts
Default

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

thanks for your time

Merci beaucoup

GarG
Reply With Quote
  #6  
Old 22nd July 2011, 20:48
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

Could you post here you iptables rules?

iptables --list
Reply With Quote
  #7  
Old 22nd July 2011, 20:58
GarGamel55 GarGamel55 is offline
Member
 
Join Date: Jul 2011
Posts: 30
Thanks: 6
Thanked 3 Times in 3 Posts
Default

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 by GarGamel55; 22nd July 2011 at 21:00.
Reply With Quote
  #8  
Old 23rd July 2011, 00:16
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
 
Default

Maybe this information could help you to understand why passive mode is working for you in that port, and why active mode doesn't :P

http://slacksite.com/other/ftp.html
Reply With Quote
The Following User Says Thank You to erosbk For This Useful Post:
GarGamel55 (23rd July 2011)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ispconfig panel Change to port 80 thibotus01 Installation/Configuration 7 21st June 2011 17:34
how to change the default port 81 ? Jugernaut Installation/Configuration 12 10th February 2010 15:09
Change smtp server port? MarcoV General 4 18th December 2007 18:57
smtp port change from 25 itgroup Installation/Configuration 2 2nd June 2006 00:27
Change port for ISPConfig gfts Installation/Configuration 1 12th December 2005 16:48


All times are GMT +2. The time now is 16:10.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.