Jump to content
Sign in to follow this  
mantonr

Problem With Port Forwarding

Recommended Posts

I have setup my ftp server and everything on there runs fine, i can use the client software on my laptop to transfer things to and from it over the lan. Eventually i want to be able to transfer things to and from it over the internet from another location.

 

So i went into the router settings and set it to send any ftp requests on ports 20 and 21 to the ip address of the ftp server. Only when i put the external ip address of my router into the client on my laptop i get the following:

 

Status: Connecting to 81.109.68.05 ...

Status: Connected with 81.109.68.05. Waiting for welcome message...

Response: 220 FTP Server

Command: USER robert

Response: 331 Please specify the password.

Command: PASS ***************

Response: 230 Login successful.

Command: SYST

Response: 215 UNIX Type: L8

Command: FEAT

Response: 211-Features:

Response: EPRT

Response: EPSV

Response: MDTM

Response: PASV

Response: REST STREAM

Response: SIZE

Response: TVFS

Response: 211 End

Status: Connected

Status: Retrieving directory listing...

Command: PWD

Response: 257 "/home/robert"

Command: TYPE A

Response: 200 Switching to ASCII mode.

Command: PASV

Response: 227 Entering Passive Mode (192,168,1,6,103,238)

Command: LIST

Response: 425 Security: Bad IP connecting.

Error: Could not retrieve directory listing

Status: Disconnected from server

 

now i've tried everything that i can think of and this message hasn't changed. Has anybody got any ideas?

 

I'm using vsftpd as the server side software.

 

Thanks

 

Rob

Share this post


Link to post
Share on other sites

Do you have a static IP? You may need to go into your tcp/ip settings and set up the server to use a specific IP on your router. like if your router is on 192.168.1.100 you would set your server to be 192.168.1.101. Youll also be required to enter in your DNS default gateway etc.

Share this post


Link to post
Share on other sites

If you're transfering internally you'd have to connect to your LAN IP, not your external IP address.

Share this post


Link to post
Share on other sites

If you're transfering internally you'd have to connect to your LAN IP, not your external IP address.

 

I question that. Ive heard that said many times however I have a FTP server set up at my house and I connect to it internaly using the external IP. I may be a "odd" instance, perhaps I have some weird setting but It works!

Share this post


Link to post
Share on other sites

I question that. Ive heard that said many times however I have a FTP server set up at my house and I connect to it internaly using the external IP. I may be a "odd" instance, perhaps I have some weird setting but It works!

Of course you could connect via your external IP, but then you are sending data from your pc, to your router, to your modem, through the lines, through all of your ISP's equipment, back through the lines, back to your modem, back to your router, then finally to your FTP server...personally I'd rather just go from my PC, to my router, to my server...but maybe that's just me :D

Share this post


Link to post
Share on other sites

im pretty sure it knows your own public ip and just fowards the packets from the modem directally back to the router

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...