LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-02-2002, 12:42 PM   #1
PostDeals
Member
 
Registered: Mar 2002
Location: New Jersey, USA
Distribution: Suse 8.0
Posts: 39

Rep: Reputation: 15
Question Cannot get on FTP's with networked pc pasv error - Redhat 7.2


Cannot get on FTP's with networked pc pasv error - I use Redhat 7.2. I can get on internet with both my pc and everythign works but some FTP'S i get PASV ERROR I turned it off and still i got an error i tried all the options. I tried flashfxp, cuteftp, bpftp and regular ie: ftp://ftp.blah.com etc.. nothing worked i think something is wrong with routing or my GATEWAY setting. PLEASE HELP.


my subnet for cable modem (eth0) is 255.255.252.0 but my subnet for eth1 is 255.255.255.0 is that a problem?

Let me start from beginning.

1) I use redhat 7.2 and the linux pc is connected to cable modem and i have no problem connecting to FTP'S or anything with this linux pc.

2) I have 2 nic cards eth0 and eth1, eth0 has my cable info and eth1 has

IP: 192.168.0.1 MASK: 255.255.255.0

Under gateway i put the ip of my cable modem gateway 67.82.140.1 and enablef forwarding (i am not sure if i shoudl put 192.168.0.1 for ip there?)

3) My windows pc which gets on the net by using linux pc gives me error when i connect to some ftp's i think they are behidn firwall or something because ftp.redhat.com works but the ftp where i host my website i can't connec tto, i get errors like

With pasv turned off: 500 Illegal port command
425 cannot build data contnection, connection refused.

WIth pasv turned on: it just freezes at ENTERING PASV MODE and the ip of the site.

I am not sure if my routing.sh file (i use that file for iptables) is messed up or not.

IF YOU HAVE ANY SUGGESTIONS OR COMMENTS PLEASE EMIAL ME @ postdeals@hotmail.com

Or AOL IM: Purvin

Thanks
Postdeals.

Last edited by PostDeals; 04-02-2002 at 01:05 PM.
 
Old 04-02-2002, 12:44 PM   #2
PostDeals
Member
 
Registered: Mar 2002
Location: New Jersey, USA
Distribution: Suse 8.0
Posts: 39

Original Poster
Rep: Reputation: 15
routing.sh

i run routing.sh whenever pc loads i have it in

/etc/rc.d/rc.local


This is whats in routing.sh please let me know if ia m doing anything wrong, also i have NO FIREWALL OPTIONS Selected in redhat.


# - Enables packet forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
# Delete and flush. Default table is "filter". Others like "nat" must be explic$# - Flush all the rules in filter and nat tables
iptables --flush
iptables --table nat --flush
# - Delete all chains that are not in default filter and nat table
iptables --delete-chain
iptables --table nat --delete-chain
# Set up IP FORWARDing and Masquerading
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT


Thanks please email if you can help i would really appericiate it.

postdeals@hotmail.com
 
Old 04-02-2002, 12:46 PM   #3
PostDeals
Member
 
Registered: Mar 2002
Location: New Jersey, USA
Distribution: Suse 8.0
Posts: 39

Original Poster
Rep: Reputation: 15
ifconfig

Here is my ifconfig output.

eth0 Link encap:Ethernet HWaddr 00:48:54:60:A6:46
inet addr:67.82.140.120 Bcast:255.255.255.255 Mask:255.255.252.0
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:4595959 errors:0 dropped:0 overruns:0 frame:0
TX packets:4115111 errors:0 dropped:0 overruns:0 carrier:0
collisions:253939
RX bytes:3518765803 (3355.7 Mb) TX bytes:3572235720 (3406.7 Mb)




eth1 Link encap:Ethernet HWaddr 00:C0:F0:78:6C:2D
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1861872 errors:0 dropped:0 overruns:0 frame:0
TX packets:1606999 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:1944131288 (1854.0 Mb) TX bytes:1018606318 (971.4 Mb)
 
Old 04-02-2002, 01:20 PM   #4
rodda
Member
 
Registered: Sep 2001
Location: South Dakota
Distribution: RH, Xandros, SuSE, Debian
Posts: 41

Rep: Reputation: 15
That error is due to port forwarding. Here is a link to describe the problem:

http://www.landfield.com/wu-ftpd/mai.../Nov/0202.html
 
Old 04-02-2002, 02:25 PM   #5
PostDeals
Member
 
Registered: Mar 2002
Location: New Jersey, USA
Distribution: Suse 8.0
Posts: 39

Original Poster
Rep: Reputation: 15
i dont even hav ea router so what should i put i didnt know where to add that passv port thing please help?
 
Old 04-03-2002, 05:58 AM   #6
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
That link explains how to get an ftp working behind your router/gateway. But that's now what you are trying to do so it won't help you much.
The easiest solution for you would be to load the kernel modules which handle ftp traffic with NAT. I saw you where using iptables so all you should have to do is insmod for the modules ip_conntrack_ftp and ip_nat_ftp

You can read more about it here:
http://www.iptables.org/documentatio...T-HOWTO-7.html
 
  


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
PASV mode connection error in proftpd Kerr Linux - Software 2 07-05-2004 04:27 AM
I can't write ftp's images into floppy (not enough space) creilar Slackware 3 05-11-2004 06:13 AM
Can't access certain ftp's. Firewall. Stric-9 Linux - Security 7 04-03-2004 01:57 AM
Trying to print from Redhat 9 box to HP5Si networked printer awwhellnaw Linux - Newbie 0 10-23-2003 12:31 PM
Redhat 9.0 + Printing to networked Dell A940 printer TechX Linux - Hardware 0 07-22-2003 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:34 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