GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP guru (socket vs firewalls question) (https://gfy.com/showthread.php?t=713288)

qw12er 03-09-2007 07:13 PM

PHP guru (socket vs firewalls question)
 
I have 2 scripts.

The first one will be on my server and will be listening for incomming socket connections.

The second one, will be a client distributed on multiple server (which I don't know the servers config.).

My question is will the firewalls on my clients server block the connection attemp with php fsockopen() ?

Thanks.

webgeek 03-09-2007 07:16 PM

no.
that doesn't depend on that.
fsockopen is no different than a regular socket.

BigBen 03-09-2007 07:18 PM

Depends on the firewall config. What port is your script listening on?

qw12er 03-09-2007 07:42 PM

12345 right now ... but aren't all unused ports blocked by default ? Dedicated servers will be able to open this port ... but I guess webmasters on virtual servers will find it more difficult to open this port...

BigBen 03-09-2007 07:48 PM

Quote:

Originally Posted by qw12er (Post 12049088)
12345 right now ... but aren't all unused ports blocked by default ? Dedicated servers will be able to open this port ... but I guess webmasters on virtual servers will find it more difficult to open this port...

It should work fine for most of the clients as many aren't doing egress filtering, or any filtering for that matter, but others with proper rulesets will have to allow the traffic out.

qw12er 03-09-2007 07:59 PM

I though a high percentage of servers would be properly proteced by firewalls.

naitirps 03-09-2007 08:06 PM

if your controlling whats listening on that socket, do what you please ;-) Add auth codes and code in your ips or domain lists for auth. Your own type of firewall, just on socket level. :P

qw12er 03-10-2007 10:19 AM

Quote:

Originally Posted by naitirps (Post 12049165)
if your controlling whats listening on that socket, do what you please ;-) Add auth codes and code in your ips or domain lists for auth. Your own type of firewall, just on socket level. :P


The server end isn't the problem ... I'm wondering if firewall will block outgoing infos when the client connects.


All times are GMT -7. The time now is 10:26 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123