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.




2729 posts

Uber Geek
+1 received by user: 254

Trusted
Subscriber

# 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 cool


Create new topic
2197 posts

Uber Geek
+1 received by user: 426

Trusted
Subscriber

# 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.





When you live your life on Twitter and Facebook, and are only friends with like minded people on Twitter and Facebook, you are not living in the real world. You are living in a narcissistic echo chamber.

 


My thoughts are my own and are in no way representative of my employer.




2729 posts

Uber Geek
+1 received by user: 254

Trusted
Subscriber

  # 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 cool


 
 
 
 


2254 posts

Uber Geek
+1 received by user: 468

Lifetime subscriber

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

route add /?




Ross

 

Spark FibreMAX using Mikrotik CCR1009-8G-1S-1S+

 


Speed Test




2729 posts

Uber Geek
+1 received by user: 254

Trusted
Subscriber

  # 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

2254 posts

Uber Geek
+1 received by user: 468

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.




Ross

 

Spark FibreMAX using Mikrotik CCR1009-8G-1S-1S+

 


Speed Test




2729 posts

Uber Geek
+1 received by user: 254

Trusted
Subscriber

  # 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



2729 posts

Uber Geek
+1 received by user: 254

Trusted
Subscriber

  # 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.

 
 
 
 




2729 posts

Uber Geek
+1 received by user: 254

Trusted
Subscriber

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

tried several different commands but still no joy. :(

2254 posts

Uber Geek
+1 received by user: 468

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




Ross

 

Spark FibreMAX using Mikrotik CCR1009-8G-1S-1S+

 


Speed Test




2729 posts

Uber Geek
+1 received by user: 254

Trusted
Subscriber

  # 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.


2254 posts

Uber Geek
+1 received by user: 468

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.




Ross

 

Spark FibreMAX using Mikrotik CCR1009-8G-1S-1S+

 


Speed Test




2729 posts

Uber Geek
+1 received by user: 254

Trusted
Subscriber

  # 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?

2254 posts

Uber Geek
+1 received by user: 468

Lifetime subscriber

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

Do a route print and post entire routing table.




Ross

 

Spark FibreMAX using Mikrotik CCR1009-8G-1S-1S+

 


Speed Test




2729 posts

Uber Geek
+1 received by user: 254

Trusted
Subscriber

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

I've sent you a PM



2729 posts

Uber Geek
+1 received by user: 254

Trusted
Subscriber

  # 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



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Xero announces new smarter tools, push into the North American market
Posted 19-Jun-2019 17:20


New report by Unisys shows New Zealanders want action by social platform companies and police to monitor social media sites
Posted 19-Jun-2019 17:09


ASB adds Google Pay option to contactless payments
Posted 19-Jun-2019 17:05


New Zealand PC Market declines on the back of high channel inventory, IDC reports
Posted 18-Jun-2019 17:35


Air New Zealand uses drones to inspect aircraft
Posted 17-Jun-2019 15:39


TCL Electronics launches its first-ever 8K TV
Posted 17-Jun-2019 15:18


E-scooter share scheme launches in Wellington
Posted 17-Jun-2019 12:34


Anyone can broadcast with Kordia Pop Up TV
Posted 13-Jun-2019 10:51


Volvo and Uber present production vehicle ready for self-driving
Posted 13-Jun-2019 10:47


100,000 customers connected to fibre broadband network through Enable
Posted 13-Jun-2019 10:35


5G uptake even faster than expected
Posted 12-Jun-2019 10:01


Xbox showcases 60 anticipated games
Posted 10-Jun-2019 20:24


Trend Micro Turns Public Hotspots into Secure Networks with WiFi Protection for Mobile Devices
Posted 5-Jun-2019 13:24


Bold UK spinoff for beauty software company Flossie
Posted 2-Jun-2019 14:10


Amazon Introduces Echo Show 5
Posted 1-Jun-2019 15:32



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.

Alternatively, you can receive a daily email with Geekzone updates.