Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


ZollyMonsta

3009 posts

Uber Geek
+1 received by user: 379

ID Verified
Trusted

#18845 25-Jan-2008 23:55
Send private message

Hullo. :)

Ok, this is what I set up the other night.


PC has PCI Network card (Card A)
Card A is connected through Linksys router (WRT54GS), in turn connected to Cable Modem A
Cable Modem B is connected via USB to the same PC
FTP Server 1 is on a non-standard FTP Port (say for example port 22)
FTP Server 2 is on FTP Port 21


FTP for Card A is fine and FTP Works with FTP Server 1
FTP for Cable Modem B on FTP Port 21 works ok, however I need passive FTP and it seems to choke here.  The connection occurs but when the PASV command is issued all traffic stops.  I think something is going awry and the passive mode data channels are attempting to go through Card A and my Linksys Router instead of through Cable Modem B.

Is there a way on the PC to force passive data through Cable Modem B?  I think I've heard something about routing tables which can be defined, but not sure how this works.  PC is running Windows XP Home Edition (SP2).

Cheers,
Grant






 

 

Check out my LPFM Radio Station at www.thecheese.co.nz - Now on iHeart Radio, TuneIn and Radio Garden

 

As per the usual std disclaimer.. "All thoughts typed here are my own."


Create new topic
geekiegeek
2513 posts

Uber Geek
+1 received by user: 625
Inactive user


#106841 26-Jan-2008 05:24
Send private message

From the server-side firewall's standpoint, to support passive mode FTP the following communication channels need to be opened:

  • FTP server's port 21 from anywhere (Client initiates connection)
  • FTP server's port 21 to ports > 1023 (Server responds to client's control port)
  • FTP server's ports > 1023 from anywhere (Client initiates data connection to random port specified by server)
  • FTP server's ports > 1023 to remote ports > 1023 (Server sends ACKs (and data) to client's data port)


Taken from - http://www.slacksite.com/other/ftp.html

Google is your friend.




ZollyMonsta

3009 posts

Uber Geek
+1 received by user: 379

ID Verified
Trusted

  #106846 26-Jan-2008 08:52
Send private message

You miss my point.  The passive mode is not supposed to be going through my firewall. It is supposed to be going through the second cable modem.




 

 

Check out my LPFM Radio Station at www.thecheese.co.nz - Now on iHeart Radio, TuneIn and Radio Garden

 

As per the usual std disclaimer.. "All thoughts typed here are my own."


Spyware
3818 posts

Uber Geek
+1 received by user: 1366

Lifetime subscriber

  #106879 26-Jan-2008 13:26
Send private message

route add /?




Spark Max Fibre using Mikrotik CCR1009-8G-1S-1S+, CRS125-24G-1S, Unifi UAP, U6-Pro, UAP-AC-M-Pro, Apple TV 4K (2022), Apple TV 4K (2017), iPad Air 1st gen, iPad Air 4th gen, iPhone 13, SkyNZ3151 (the white box). If it doesn't move then it's data cabled.




ZollyMonsta

3009 posts

Uber Geek
+1 received by user: 379

ID Verified
Trusted

  #106898 26-Jan-2008 15:01
Send private message

Ok  will that work for ports also?

Just being very wary as this PC also handles my streaming and don't wanna break it.

So if I wanted to ensure all traffic coming through the below interface also went back out the same interfaced (including passive ftp) what would I need to enter?  And how could I 'reset' what I've done if it breaks? :)

121.73.**.127 - IP
255.255.255.0 - Subnet
121.73.71.1 - Gateway
203.96.152.4 - DNS Pri
203.96.152.12 - DNS Sec

Cheers,
Grant

Spyware
3818 posts

Uber Geek
+1 received by user: 1366

Lifetime subscriber

  #106901 26-Jan-2008 15:27
Send private message

If ftping to 213.215.214.10 then route add 213.215.214.10 255.255.255.0 121.73.**.127 (cable modem b interface is gateway) etc. Traffic to 213.215.214.10 will go out cable modem b interface rather than default gateway.




Spark Max Fibre using Mikrotik CCR1009-8G-1S-1S+, CRS125-24G-1S, Unifi UAP, U6-Pro, UAP-AC-M-Pro, Apple TV 4K (2022), Apple TV 4K (2017), iPad Air 1st gen, iPad Air 4th gen, iPhone 13, SkyNZ3151 (the white box). If it doesn't move then it's data cabled.


ZollyMonsta

3009 posts

Uber Geek
+1 received by user: 379

ID Verified
Trusted

  #106904 26-Jan-2008 16:07
Send private message

Thanks Ross, I'll give that a try later. 

If after I add that line, I wish to remove it, I would type this

route delete 213.215.214.10

?

Cheers,
Grant

 
 
 
 

Shop now for Dyson appliances (affiliate link).
ZollyMonsta

3009 posts

Uber Geek
+1 received by user: 379

ID Verified
Trusted

  #106912 26-Jan-2008 17:12
Send private message

That gives me

Bad Argument: 213.215.214.10

(I of course substituted the above for the IP of the PC that's connecting to the local PC via ftp).

:(


Spyware: If ftping to 213.215.214.10 then route add 213.215.214.10 255.255.255.0 121.73.**.127 (cable modem b interface is gateway) etc. Traffic to 213.215.214.10 will go out cable modem b interface rather than default gateway.

ZollyMonsta

3009 posts

Uber Geek
+1 received by user: 379

ID Verified
Trusted

  #107002 27-Jan-2008 09:44
Send private message

tried several different commands but still no joy. :(

Spyware
3818 posts

Uber Geek
+1 received by user: 1366

Lifetime subscriber

  #107006 27-Jan-2008 10:00
Send private message

http://technet2.microsoft.com/windowsserver/en/library/31bb32f5-99b7-4685-9542-24337b5deb401033.mspx?mfr=true

e.g., route add 213.215.214.10 mask 255.255.255.0 121.73.91.127




Spark Max Fibre using Mikrotik CCR1009-8G-1S-1S+, CRS125-24G-1S, Unifi UAP, U6-Pro, UAP-AC-M-Pro, Apple TV 4K (2022), Apple TV 4K (2017), iPad Air 1st gen, iPad Air 4th gen, iPhone 13, SkyNZ3151 (the white box). If it doesn't move then it's data cabled.


ZollyMonsta

3009 posts

Uber Geek
+1 received by user: 379

ID Verified
Trusted

  #107008 27-Jan-2008 10:13
Send private message

Spyware: http://technet2.microsoft.com/windowsserver/en/library/31bb32f5-99b7-4685-9542-24337b5deb401033.mspx?mfr=true

e.g., route add 213.215.214.10 mask 255.255.255.0 121.73.91.127


Ok, tried what you suggested, also looked at the microsoft page..  Below is what I entered and the error I get
(end of IPs removed for security reasons) :)



C:\>route add 121.73.71.xxx mask 255.255.255.0  121.73.71.xxx
                     ^^^^^^^^^^          ^^^^^^^^^^   ^^^^^^^^^^
                     External IP               Subnet             IP of CableModem connected via USB
           

The route addition failed: The specified mask parameter is invalid. (Destination & Mask) != Destination.


Spyware
3818 posts

Uber Geek
+1 received by user: 1366

Lifetime subscriber

  #107010 27-Jan-2008 10:26
Send private message

24 bit subnet masks are class c. 121.xxx. etc isn't a class c address, it is a class a address and has an 8 bit subnet mask.




Spark Max Fibre using Mikrotik CCR1009-8G-1S-1S+, CRS125-24G-1S, Unifi UAP, U6-Pro, UAP-AC-M-Pro, Apple TV 4K (2022), Apple TV 4K (2017), iPad Air 1st gen, iPad Air 4th gen, iPhone 13, SkyNZ3151 (the white box). If it doesn't move then it's data cabled.


 
 
 
 

Shop now on Samsung phones, tablets, TVs and more (affiliate link).
ZollyMonsta

3009 posts

Uber Geek
+1 received by user: 379

ID Verified
Trusted

  #107016 27-Jan-2008 11:07
Send private message

Spyware: 24 bit subnet masks are class c. 121.xxx. etc isn't a class c address, it is a class a address and has an 8 bit subnet mask.


Sorry, that's all Japanese to me :)  So the cable modem's subnet of 255.255.255.0 won't work for what I'm trying to do?

Spyware
3818 posts

Uber Geek
+1 received by user: 1366

Lifetime subscriber

  #107018 27-Jan-2008 11:32
Send private message

Do a route print and post entire routing table.




Spark Max Fibre using Mikrotik CCR1009-8G-1S-1S+, CRS125-24G-1S, Unifi UAP, U6-Pro, UAP-AC-M-Pro, Apple TV 4K (2022), Apple TV 4K (2017), iPad Air 1st gen, iPad Air 4th gen, iPhone 13, SkyNZ3151 (the white box). If it doesn't move then it's data cabled.


ZollyMonsta

3009 posts

Uber Geek
+1 received by user: 379

ID Verified
Trusted

  #107082 27-Jan-2008 22:42
Send private message

I've sent you a PM

ZollyMonsta

3009 posts

Uber Geek
+1 received by user: 379

ID Verified
Trusted

  #107266 28-Jan-2008 21:14
Send private message

Ok, all fixed. Had some guys at work take a look at my routing and could see nothig wrong.
Took another look at my ftp server and I could manually force it to use a certain IP for PASV.  Put in the IP of the external USB cable modem and now working all good.

Now I just need to sort out Free Download Manager.. but I'll start another thread about that ;)

Thanks for your help.

Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.