-
September 16th, 2011, 16:38
#1
عضو انجمن
مشکل اف تی پی در csf
سلام دوستان من وقتی csf رو ران می کنم کسی با برنامه های اف تی پی نمی تونه به اف تی پی لاگین بشه !!
من پورت 21 رو هم اد کردم در قسمت tcp/ip port
کد PHP:
*** CuteFTP 8.3 - build May 19 2010 ***
STATUS:> [2011/09/16 04:34:02 ب.ظ] Getting listing "www"...
STATUS:> [2011/09/16 04:34:02 ب.ظ] Resolving host name ftp.sodahost.ir...
STATUS:> [2011/09/16 04:34:02 ب.ظ] Host name ftp.sodahost.ir resolved: ip = 46.4.52.186.
STATUS:> [2011/09/16 04:34:02 ب.ظ] Connecting to FTP server... ftp.sodahost.ir:21 (ip = 46.4.52.186)...
STATUS:> [2011/09/16 04:34:03 ب.ظ] Socket connected. Waiting for welcome message...
[2011/09/16 04:34:03 ب.ظ] 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 16:34. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
STATUS:> [2011/09/16 04:34:03 ب.ظ] Connected. Authenticating...
COMMAND:> [2011/09/16 04:34:03 ب.ظ] USER soda
[2011/09/16 04:34:04 ب.ظ] 331 User soda OK. Password required
COMMAND:> [2011/09/16 04:34:04 ب.ظ] PASS *****
[2011/09/16 04:34:04 ب.ظ] 230 OK. Current restricted directory is /
STATUS:> [2011/09/16 04:34:04 ب.ظ] Login successful.
COMMAND:> [2011/09/16 04:34:04 ب.ظ] PWD
[2011/09/16 04:34:05 ب.ظ] 257 "/" is your current location
STATUS:> [2011/09/16 04:34:05 ب.ظ] Home directory: /
COMMAND:> [2011/09/16 04:34:05 ب.ظ] FEAT
[2011/09/16 04:34:05 ب.ظ] Informational Message Only:
211-Extensions supported:
EPRT
IDLE
MDTM
SIZE
REST STREAM
MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
MLSD
AUTH TLS
PBSZ
PROT
ESTA
PASV
EPSV
SPSV
ESTP
211 End.
STATUS:> [2011/09/16 04:34:05 ب.ظ] This site supports features.
STATUS:> [2011/09/16 04:34:05 ب.ظ] This site supports SIZE.
STATUS:> [2011/09/16 04:34:05 ب.ظ] This site can resume broken downloads.
COMMAND:> [2011/09/16 04:34:05 ب.ظ] REST 0
[2011/09/16 04:34:06 ب.ظ] 350 Restarting at 0
COMMAND:> [2011/09/16 04:34:06 ب.ظ] CWD /www
[2011/09/16 04:34:06 ب.ظ] 250 OK. Current directory is /www
STATUS:> [2011/09/16 04:34:06 ب.ظ] PWD skipped. Current folder: "/www".
COMMAND:> [2011/09/16 04:34:06 ب.ظ] PASV
[2011/09/16 04:34:07 ب.ظ] 227 Entering Passive Mode (46,4,52,186,197,241)
COMMAND:> [2011/09/16 04:34:07 ب.ظ] LIST
STATUS:> [2011/09/16 04:34:07 ب.ظ] Connecting FTP data socket... 46.4.52.186:50673...
ERROR:> [2011/09/16 04:34:27 ب.ظ] The connection failed due to an error or timeout.
1) Verify that the destination IP address is correct.
2) Increase the connection timeout threshold under Global Settings | Connection.
3) Switch to the opposite data connection type (PASV or PORT) under Site Settings | Type tab.
4) Verify that the problem is not local by trying to connect to an alternate server.
5) If a server name was used, verify it resolves to the correct address.
6) If using a local server table for server name resolution, check to see that it doesn't resolve to an obsolete address.
7) Try pinging the address.
8) If you are using a router, verify the router is up and running (check by pinging it and then ping an address outside of the router).
9) Do a traceroute to the destination to verify all routers along the connection path are operational.
10) Verify that your subnet mask is setup properly.
11) Verify that your local software or hardware firewall is not blocking outbound connections originating from CuteFTP.
12) Verify that your anti-virus software is not at fault (try disabling it).
ERROR:> [2011/09/16 04:34:27 ب.ظ] PASV failed, trying PORT.
STATUS:> [2011/09/16 04:34:27 ب.ظ] Waiting 0 seconds...
STATUS:> [2011/09/16 04:34:28 ب.ظ] Getting listing "/www"...
STATUS:> [2011/09/16 04:34:28 ب.ظ] Resolving host name ftp.sodahost.ir...
STATUS:> [2011/09/16 04:34:28 ب.ظ] Host name ftp.sodahost.ir resolved: ip = 46.4.52.186.
STATUS:> [2011/09/16 04:34:28 ب.ظ] Connecting to FTP server... ftp.sodahost.ir:21 (ip = 46.4.52.186)...
STATUS:> [2011/09/16 04:34:29 ب.ظ] Socket connected. Waiting for welcome message...
[2011/09/16 04:34:29 ب.ظ] 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 16:35. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
STATUS:> [2011/09/16 04:34:29 ب.ظ] Connected. Authenticating...
COMMAND:> [2011/09/16 04:34:29 ب.ظ] USER SODAA
[2011/09/16 04:34:30 ب.ظ] 331 User SODAA OK. Password required
COMMAND:> [2011/09/16 04:34:30 ب.ظ] PASS *****
[2011/09/16 04:34:33 ب.ظ] 230 OK. Current restricted directory is /
STATUS:> [2011/09/16 04:34:33 ب.ظ] Login successful.
COMMAND:> [2011/09/16 04:34:33 ب.ظ] PWD
[2011/09/16 04:34:33 ب.ظ] 257 "/" is your current location
STATUS:> [2011/09/16 04:34:33 ب.ظ] Home directory: /
STATUS:> [2011/09/16 04:34:33 ب.ظ] This site supports features.
STATUS:> [2011/09/16 04:34:33 ب.ظ] This site supports SIZE.
STATUS:> [2011/09/16 04:34:33 ب.ظ] This site can resume broken downloads.
COMMAND:> [2011/09/16 04:34:33 ب.ظ] REST 0
[2011/09/16 04:34:34 ب.ظ] 350 Restarting at 0
COMMAND:> [2011/09/16 04:34:34 ب.ظ] CWD /www
[2011/09/16 04:34:34 ب.ظ] 250 OK. Current directory is /www
STATUS:> [2011/09/16 04:34:34 ب.ظ] PWD skipped. Current folder: "/www".
COMMAND:> [2011/09/16 04:34:34 ب.ظ] PORT 192,1,1,9,17,185
[2011/09/16 04:34:35 ب.ظ] 500 I won't open a connection to 192.1.1.9 (only to 149.255.32.136)
ERROR:> [2011/09/16 04:34:35 ب.ظ] Syntax error: command unrecognized.
ERROR:> [2011/09/16 04:34:35 ب.ظ] Failed to establish data socket. ب.ظ] Connecting FTP data socket... 46.4.52.186:50673...
-
تعداد تشکر ها از sodahost به دلیل پست مفید
-
September 16th, 2011 16:38
# ADS
-
September 17th, 2011, 10:51
#2
پاسخ : مشکل اف تی پی در csf
فایل /etc/pure-ftpd.conf رو ادیت کن و PassivePortRange تعریف کن بین مثلا ۳۰۰۰۰ تا ۵۰۰۰۰ بعد این رینج رو در TCP_IN در csf اضافه کن
-
تعداد تشکر ها از eth0 به دلیل پست مفید
-
September 17th, 2011, 10:54
#3
عضو دائم
پاسخ : مشکل اف تی پی در csf
قسمت test ip table داخل csf را بزن یک سری ارور میده که یک سری ماژول ادد نشده
اونها را ادد لود کن درست میشه
-
تعداد تشکر ها از amirizadi به دلیل پست مفید
-
September 17th, 2011, 11:20
#4
عضو انجمن
پاسخ : مشکل اف تی پی در csf

نوشته اصلی توسط
vatanmusic
قسمت test ip table داخل csf را بزن یک سری ارور میده که یک سری ماژول ادد نشده
اونها را ادد لود کن درست میشه
انجام دادم خروجی :
Testing iptables...
Testing ip_tables/iptable_filter...OK
Testing ipt_LOG...OK
Testing ipt_multiport/xt_multiport...OK
Testing ipt_REJECT...OK
Testing ipt_state/xt_state...OK
Testing ipt_limit/xt_limit...OK
Testing ipt_recent...OK
Testing xt_connlimit...OK
Testing ipt_owner/xt_owner...OK
Testing iptable_nat/ipt_REDIRECT...OK
Testing iptable_nat/ipt_DNAT...OK
RESULT: csf should function on this server
-
تعداد تشکر ها از sodahost به دلیل پست مفید
-
September 17th, 2011, 11:52
#5
عضو دائم
پاسخ : مشکل اف تی پی در csf
-
تعداد تشکر ها از amirizadi به دلیل پست مفید
-
September 17th, 2011, 12:45
#6
عضو انجمن
پاسخ : مشکل اف تی پی در csf
نه مشکل همچنان باقی هست !!
همه چیز Ok شده نمایش داده میشه ولی اف تی پی وقتی کانکت میشه یوزر و پس رو هم چک می کنه وقتی میخواد فولدر هارو نمایش بده اررور میده
-
تعداد تشکر ها از sodahost به دلیل پست مفید
-
September 17th, 2011, 13:04
#7
عضو دائم
پاسخ : مشکل اف تی پی در csf
باید درست بشه
من دقیقا چنین مشکلی داشتم با این کار مشکل حل شد
ایا روی سرور اختصاصی این کار را انجام دادید یا وی پی اس
اگر وی پی اس و خودتون به سرورش دسترسی دارید و اوپن وی زد هست
این ماژول ها را در سرور اصلی هم باید لود کنید
اگر هم دسترسی ندارید به مدیر سرور اعلام کنید تا انجام بده
-
تعداد تشکر ها از amirizadi به دلیل پست مفید
-
September 17th, 2011, 13:08
#8
عضو انجمن
پاسخ : مشکل اف تی پی در csf
ببین روی وی پی اس هست ، سرور اختصاصی هم مال خودم هست و اوپن ویزد
حالا چه ماژول هایی و چه جوری باید لود کنم دوست عزیز ؟
-
تعداد تشکر ها از sodahost به دلیل پست مفید
-
September 17th, 2011, 13:52
#9
عضو دائم
پاسخ : مشکل اف تی پی در csf
دقیقا این ماژول ها باید تو سرور اصلی هم لود بشه
اینا را لود کنی مشکل حله
-
تعداد تشکر ها از amirizadi به دلیل پست مفید
-
September 17th, 2011, 14:14
#10
عضو انجمن
پاسخ : مشکل اف تی پی در csf
خوب گه ftp وصل بشه که دیگه کاری به فایروال نداره ! شما باید مشکل رو داخل ftp server بگردی . چون قاعدتا کاربر زمانی که به ftp server متصل میشه دیگه از فایروال عبور کرده .
-
تعداد تشکر ها از iMohsen به دلیل پست مفید