Reply to Re: secure ftp upload behind a firewall

Your name:

Reply:


Posted by <a> on 09/28/35 11:42

<a> wrote in message news:uMSdnXHKeY0tZoXZnZ2dnUVZ_vudnZ2d@comcast.com...
> I'm trying to convert all of my ftp connections to secure ftp connections.
> I have a small php script that uploads a file once an hour via FTP. from
> my computer, i can connect to the server via secureftp, so i'm trying to
> do the same thing via php. i change my ftp_connect() command to
> ftp_ssl_connect(). The connection works, but when i try ot upload a file
> it says:
>
> "ftp_put(): I won't open a connection to _internal_ip_ (only to
> _external_ip_) in script.php on line 31"
>
> I know this is because i'm doing NAT on my network. is there a way to fix
> this either in PHP or via the cablemodem router? i have access to
> iptables on the router if need be.
>

I just had a "duh" moment. My server allows me to connect via sftp (ssh)
and ssl ftp. When i tested it before, it was w/ sftp, however, when i
connected via the php script, it was ssl. I just connected using an ssl-ftp
client on my computer and it works fine. my question remains the same,
however, i just wanted to clarify what i tested before.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация