(I searched Google Groups looking for answers to this problem, so I included
many of the diagnostics I saw asked for for this type of problem)
I am trying to set up an ftp server using wu-ftpd on my linux PC so that
I can
transfer files between it and my Sharp Zaurus, a linux-based PDA. I can
set up
a ppp connection through the USB cradle, and I have successfully ping'd
in both
directions, telnet'd PC->PDA, and accessed my PC's webserver from the PDA's
browser. I am unable to ftp or telnet PDA->PC, however, I can telnet and ftp
the PC to itself (not very useful), even using its address in the PDA-PC
network (192.168.1.1). I always get a "Connection refused" error before
I can
log in from the PDA. My /etc/hosts.(allow|deny) and /etc/ftpusers files are
empty. /etc/xinetd.d/(telnet|ftp) both contain "disable=no" Here they are:
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
service ftpQuote:}
{
flags = REUSE
only_from = 192.168.1.2 192.168.1.1
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.ftpd
server_args = -l -a
log_type = FILE /var/log/ftplog
log_on_failure += USERID
disable = no
And here's /etc/ftpaccess (untouched from how wu-ftpd installed it):Quote:}
class all real,guest,anonymous *
limit all 10 Any /etc/msgs/msg.dead
readme README* login
readme README* cwd=*
message /welcome.msg login
message .message cwd=*
compress yes all
tar yes all
log commands real
log transfers anonymous,real inbound,outbound
shutdown /etc/shutmsg
I had to fudge the /etc/xinetd.d/ftp file by copying the telnet file and
modifying it. I did this before I realized that telnet didn't work
either. Here
are the outputs of some commands I saw suggested (run on the PC):
# netstat -nl |grep 21
tcp 0 0 0.0.0:21 0,0,0:* LISTEN
# ipchains -L
Chain input (policy ACCEPT):
target prot opt source destination ports
ACCEPT udp ------ 216.238.0.10 anywhere domain -> any
ACCEPT tcp -y---- anywhere anywhere any -> http
ACCEPT all ------ anywhere anywhere n/a
REJECT tcp -y---- anywhere anywhere any -> 0:1023
REJECT tcp -y---- anywhere anywhere any -> nfs
REJECT udp ------ anywhere anywhere any -> 0:1023
REJECT udp ------ anywhere anywhere any -> nfs
REJECT tcp -y---- anywhere anywhere any -> x11:6009
REJECT tcp -y---- anywhere anywhere any -> xfs
(216.238.0.10 is my ISP's DNS)
# ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.1.1 P-t-P:192.1.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
Here are the commands I use to set up PPP:
on the PC:
# pppd /dev/ttyUSB0 noauth 192.168.1.1:192.168.1.2
on the PDA:
# pppd /dev/ttyUSB0 defaultroute usepeerdns
Any suggestions?
(I hope I've given enough information ;)
-- Will
Seeing is believing; You wouldn't have seen it if you didn't believe it.