rejetto forum

Problem with downloading and accessing server

0 Members and 1 Guest are viewing this topic.

Offline youngbucks

  • Occasional poster
  • *
    • Posts: 17
    • View Profile
I have a server set up and frankly i love hfs better than any other file server software ive used but i have a short problem now. I uploaded files to my server but when i try to download them it doesnt let me, even a text file i cant download. I keep getting "Unable to connect". It uses stunnel and i forwarded my ports and i connect fine but i cant download. Some assistance would be appreciated. Also when other people try to connect they get "connection refused by the host", and in the logs it shows no attempt of someone trying to connect. Ive searched through multiple threads and cant find a solution and id really like to get this fixed because i really like hfs.

You can try connecting here https://onpoint.gotdns.com/ .
« Last Edit: July 03, 2008, 02:58:28 AM by youngbucks »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
welcome yb!
i can't help you because i never used stunnel, but i would have included the word "stunnel" in the topic, to catch the attention of stunnel users.
you can edit if you like.


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Hello!

I do not know if this will solve your problem, but I can tell you a sample configuration.

Settings for stunnel.conf:

[https]
accept = 0.0.0.0:443           (Example PORT forwarded in your router)
connect = 127.0.0.1:44300   (Example PORT LISTENED BY HFS)
TIMEOUTclose = 0

You must also mention the port in the link for users
example:

https://onpoint.gotdns.com:443/

To avoid mentioning the port, you can also create a second domain name that will redirect the link to your HFS SSL.

Example (two parts):

http://onpoint.gotdns.com (URL entered by user)


A second domain name for redirection settled in DNS account (no-ip or DynDNS ...)
Example:
https://onpointssl.gotdns.com:443/

Starting from the first address, the user will be redirected to your SSL server without having to enter either the port or the real address of your server.

Hoping that this will help you.

PS/ Screen captures for HFS settings.

Example for access in my server.

http://silentpliz.serveftp.com
ID: test
PASS: test
« Last Edit: July 03, 2008, 02:42:06 PM by SilentPliz »


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile
First determine where the problem is.  To test, don't use stunnel at all.  Connect using HFS only, do your file transfers.  If everything is working properly, then the problem is with your stunnel configuration.
maverick


Offline youngbucks

  • Occasional poster
  • *
    • Posts: 17
    • View Profile
Ok ive decided to start over again to pin point the problem easier, ive uninstalled HFS and downloaded v2.2 and set it up as follows. Without any domain name (I removed it) i would like one of you to try connecting here and see if you can connect http://192.168.0.100/ . I tried connecting through a proxy and no such luck. Does the fact that i have dynamic ip address pose a problem?

Here are my current settings:

Dlink port forwarding settings:


Self test saying it is working fine:


Settings in HFS:








Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
The address that you mentioned (192.168.0.100) is a local address IP.
This can not work that way.

You must use EXTERNAL IP or Domain Name, more your external port.

to find your external ip in hfs:

Menu  > IP adresse > Find external IP

sample "valid" link  >>>> http://188.41.48.116:80/

Red=External IP
Green= PORT listened by HFS

Set HFS for accept connections on any adress, and set IP Adresse on Your External IP number (or Domain Name)
« Last Edit: July 03, 2008, 03:13:23 PM by SilentPliz »


Offline youngbucks

  • Occasional poster
  • *
    • Posts: 17
    • View Profile
This is the external ip adress 99.227.135.43 and the current port is 80.


Offline Rarst

  • Occasional poster
  • *
    • Posts: 27
    • View Profile

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Yeeaaa! :)

It just remains you to put files. ;)
« Last Edit: July 03, 2008, 03:19:34 PM by SilentPliz »


Offline youngbucks

  • Occasional poster
  • *
    • Posts: 17
    • View Profile
Ok thanks guys now im going to put a file on it and tell me if you can download it please. Im gonna ask u guys to test it out as i go along to prevent another problem :D

Edit* Seems to be working, thanks to whoever just downloaded.. And sorry for the slow upload speed im currently using the internet lol ;D
« Last Edit: July 03, 2008, 03:21:15 PM by youngbucks »


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile

Offline youngbucks

  • Occasional poster
  • *
    • Posts: 17
    • View Profile
Thanks. ;) Im currently going to go and install stunnel once again and ill report back here shortly.


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Do not use the SSL certificate supplied with STunnel, this is not safe, because it is always the same.
Consult the online help to make it with OpenSSL, or use a program like Filezilla SERVER to generate one.

Important about HFS and SSL:

http://www.rejetto.com/wiki/index.php/HFS:_Secure_your_server
« Last Edit: July 03, 2008, 03:47:42 PM by SilentPliz »


Offline youngbucks

  • Occasional poster
  • *
    • Posts: 17
    • View Profile
Yeap i read that part and made my own lol :) ... Ok ive added stunnel to it and changed the port for HFS to listen on and now when i run self test it fails both with stunnel running and not running. The article i read stated "Do not forward port 44300 on your router." and so i didnt. You can once attempt to connect again http://99.227.135.43:44300/ .  Settings are as follows:

DLINK:


Firewall Settings:



Self Test:


HFS Settings: