View previous topic :: View next topic |
Author |
Message |
jensjk
Joined: 27 Feb 2006 Posts: 31 Location: Greenland
|
Posted: Sun Mar 05, 2006 6:27 pm Post subject: Illegal EPRT command |
|
|
After having compiled and tuned wview on my SuSE 10 desktop, being helped out on bugs in the startup script, I keep getting this ftp error. I have sought the forum, manual and google, and understand this has something to do with a missing directory on my site. But the img dir IS there, and writable. The local filesystem is OK and updates as I want it to. Wviewftp.conf looks like this:
# Hostname Definition
#
host iserit.greennet.gl
# Username
#
user d121622
# Password
#
pass xxxxxx
# Remote Transfer Directory
# (relative to the ftp login directory, no leading '/')
# Uncomment to activate...
#
linuxvejr
#
# Transfer File Definitions
# Column Format:
# 1) transmit interval (mins)
# 2) source file (relative to /var/wview)
#
# current conditions every minute
#
1 img/Current.htm
# images, htmls, and NOAA every 5 minutes
#
5 img/*.png
5 img/*.htm
5 img/*.html
5 img/*.xml
5 img/*.txt
there is an img dir as well in the main dir as in linuxvejr. I also tried to comment out linuxvejr, same problem.
Suggestions?
jensjk.dk, Greenland |
|
Back to top |
|
|
jensjk
Joined: 27 Feb 2006 Posts: 31 Location: Greenland
|
Posted: Wed Mar 08, 2006 1:51 pm Post subject: |
|
|
Since no one replied, I had to solve the problem myself :
1) I had deleted the "directory" statement before my subdirectory (linuxvejr)
2) Installing the tnftp instead of the default in Mandriva 2006 solved the problem - I will try that on my SuSE 10 system also
jensjk.dk |
|
Back to top |
|
|
jensjk
Joined: 27 Feb 2006 Posts: 31 Location: Greenland
|
Posted: Sun Mar 19, 2006 6:39 pm Post subject: |
|
|
Well, I thought I had solved the problem. But this turned only to be so when using a connection over telephone modem, as I did when travelling around with my laptop and puzzling with the software - but now back in my house, the problem is there again. Same computer, same settings - but now i again get this Illegal EPRT command
. And it is not due to a firewall. Help,please -
jensjk.dk, Greenland |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Sun Mar 19, 2006 9:44 pm Post subject: |
|
|
The word "directory" (as in the example wviewftp.conf file) needs to proceed "linuxvejr" - just like "pass" must proceed the password... |
|
Back to top |
|
|
jensjk
Joined: 27 Feb 2006 Posts: 31 Location: Greenland
|
Posted: Mon Mar 20, 2006 1:03 pm Post subject: |
|
|
Probably I didn't make myself clear:
I thought I had fixed the problem by retyping the "directory" preceding linuxvejr (or commentig out that line and usin the default img), and installing tnftp - this worked fine while using a telephone modem for connecting - but, goind back to broadband/DSL, these unchanged settings gave me the illegal EPRT command back - ie, evrything works smoothly while using the (slow) phone line, but not on DSL. ??? |
|
Back to top |
|
|
Brent Crittenden
Joined: 18 Dec 2006 Posts: 2
|
Posted: Tue Dec 19, 2006 1:05 am Post subject: |
|
|
This is probably a stale thread, but the subject is exactly my topic of interest ...
I, too, have the "Illegal EPRT command" problem. I am running wview 3.2.1 on a LinkSys NSLU2. I have tnftp installed and running. The error appears every 60 seconds, i.e. the frequency of my index.htm transfer to my external webserver. I have turned off port forwarding on my NETGEAR MR814v2.
From what I have found via Google work, the EPRT error message appears to be related to the Extended Passive ftp protocol.
http://www.networksorcery.com/enp/rfc/rfc2428.txt
Following the wview user manual regarding ftp setup:
root@sluggy /etc/wview $ ftp
ftp> status
Not connected.
No proxy connection.
Gate ftp: off, server (none), port ftpgate.
Passive mode: on; fallback to active mode: on.
Mode: ; Type: ; Form: ; Structure: .
Verbose: on; Bell: off; Prompting: on; Globbing: on.
Store unique: off; Receive unique: off.
Preserve modification times: on.
Case: off; CR stripping: on.
Ntrans: off.
Nmap: off.
Hash mark printing: off; Mark count: 1024; Progress bar: on.
Get transfer rate throttle: off; maximum: 0; increment 1024.
Put transfer rate throttle: off; maximum: 0; increment 1024.
Socket buffer sizes: send 16384, receive 43689.
Use of PORT cmds: on.
Use of EPSV/EPRT cmds for IPv4: on.
Command line editing: on.
Version: tnftp 20050625
Entering "epsv4" at the tnftp prompt will return a message that "EPSV/EPRT on IPv4 off." So ...
I created a .netrc file in the home directory of the user executing the tnftp commands for server file upload. I added the initial macro definition to the .netrc file as:
default
macdef init
epsv4 off
Best I can tell, the EPRT error has not surfaced again. |
|
Back to top |
|
|
|