Welcome Guest. Please Login or Register  


You are here: Index > SitePad Website Builder > General Support > Topic : Correct Firewall settings



Threaded Mode | Print  

 Correct Firewall settings, Inbound FTP ports to solve fsockopen fails (4 Replies, Read 8191 times)
bearmatt
Group: Member
Post Group: Newbie
Posts: 33
Status:
We are getting fsockopen error.

We have a Stateful Firewall by our server provider.

We have opened inbound ports 20 and 21.
We accept Sitepad IP: 192.198.80.4 and 91.121.54.72

Please advise what other ports are we required to open for data communication during your FTP (insecure) session.

IP: --   

Correct Firewall settings
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5647
Status:
Hi,

We use FTP Passive mode so it seems FTP will connect using a random port higher than 1024 and lower than 65535

This port is chosen by the FTP server i.e. your server and you can change the FTP server settings to choose which ports to allow.

Once you have decided which ports to allow please open those ports in the Firewall.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Correct Firewall settings
sarpstechnologies
Group: Member
Post Group: Newbie
Posts: 4
Status:
To be more clear if you using Active FTP or Passive FTP mode

If its Active FTP
From the server-side firewall's standpoint, to support active 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 port 20 to ports > 1023 (Server initiates data connection to client's data port)
FTP server's port 20 from ports > 1023 (Client sends ACKs to server's data port)

If its Passive
rom 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)

to by in short the following chart should help admins remember how each FTP mode works:
Active FTP :
    command : client >1023 -> server 21
    data    : client >1023 <- server 20

Passive FTP :
    command : client >1023 -> server 21
    data    : client >1024 -> server >1023


this port value will start from 1023 and lower than 65535


-----------------------
Hostripples Webhost Softaculous Hosting
IP: --   

Correct Firewall settings
bearmatt
Group: Member
Post Group: Newbie
Posts: 33
Status:
Thank you for the info.
We have setup Pureftp for passive mode to operate between 30000 and 35000.
We then open these ports in firewall and everything is working fine.
IP: --   

Correct Firewall settings
sarpstechnologies
Group: Member
Post Group: Newbie
Posts: 4
Status:
Glad to know that the issue has been resolved now. ! :)

-----------------------
Hostripples Webhost Softaculous Hosting
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 23, 2024, 6:45 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.023