LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-29-2004, 10:40 AM   #1
proendo
LQ Newbie
 
Registered: Jan 2004
Posts: 15

Rep: Reputation: 0
Cant LS in FTP on clients?


Hello,

I just finished installing a nice slackware 9.1 box used as a firewall. It currently dials up via 56k and acts as a gateway for my company lan (all windows boxes with 1 Windows 2000 Server DC)

I have the following in my rc.local for lack of a better place to stick this.

ifconfig eth0 10.0.0.11
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe ip_conntrack_ftp
ppp-go -d

All the windows boxes can surf nicely and access their toys msn , ect.

They can open FTP connections authenticate on the remote ftp server they wish to access but as soon as the ls or LIST in a FTP program thats when the ftp session / or program times out and nothing happens.


I tried an FTP session on the slackware firewall and it works good it will LS fine.


Anythoughts?

Last edited by proendo; 01-29-2004 at 11:07 AM.
 
Old 01-29-2004, 11:50 AM   #2
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
FTP creates primary and secondary connections. I believe that you may be blocking the secondary port (the one that handles file transfer, not connection) on the slackware box, and that is why is will time out when trying to ls.

Connection port is 21
File transfer is 20

make sure BOTH of these are open.

slight
 
Old 01-29-2004, 03:47 PM   #3
proendo
LQ Newbie
 
Registered: Jan 2004
Posts: 15

Original Poster
Rep: Reputation: 0
fixed

Odly enough I added this (BOLD LINE) to my startup script

----------------------------
ifconfig eth0 10.0.0.11
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe ip_conntrack_ftp
modprobe ip_nat_ftp
ppp-go -d
---------------------------

That allowed client machines to use the the LS commands and transfer in FTP instead of just being able to only logon and timeout while getting a directory list.

Is this the wrong way to go about this?
 
Old 01-29-2004, 08:39 PM   #4
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Hmmm..... I'm not sure really. Your IPTables seems as if it was already set up to do NAT, so I don't know why ip_nat_ftp would be necessary..... hell, if it works, go with it.

slight
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tiny Slac?? mike1646 Slackware 20 06-08-2005 06:14 PM
wher is my vimrc file and the .vim directory slac 10.0 rkrishna Slackware 3 04-11-2005 03:50 AM
FTP issues colabus Debian 0 12-12-2004 10:46 PM
Slac 10 installation- fitting to screen svar Slackware 10 11-16-2004 05:47 PM
FTP issues dpp777 Linux - Networking 4 07-21-2004 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration