PHP guru (socket vs firewalls question)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qw12er
    Confirmed User
    • Apr 2004
    • 799

    #1

    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.
    I have nothing to advertise ... yet.
  • webgeek
    Confirmed User
    • Mar 2007
    • 165

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

    Comment

    • BigBen
      Confirmed User
      • Nov 2004
      • 2299

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

      Comment

      • qw12er
        Confirmed User
        • Apr 2004
        • 799

        #4
        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...
        I have nothing to advertise ... yet.

        Comment

        • BigBen
          Confirmed User
          • Nov 2004
          • 2299

          #5
          Originally posted by qw12er
          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.

          Comment

          • qw12er
            Confirmed User
            • Apr 2004
            • 799

            #6
            I though a high percentage of servers would be properly proteced by firewalls.
            I have nothing to advertise ... yet.

            Comment

            • naitirps
              Confirmed User
              • May 2004
              • 761

              #7
              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
              Programmer
              ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com

              Comment

              • qw12er
                Confirmed User
                • Apr 2004
                • 799

                #8
                Originally posted by naitirps
                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.
                I have nothing to advertise ... yet.

                Comment

                Working...