HDD using xampp,enabled after bootup cannot communicate with the internet - Unless FW rules deleted 1st

MystaMagoo 1 Reputation point
2021-09-25T11:01:12.937+00:00

Ok,so I run xampp and a database server on a removable HDD also stated in bios as hot plug/removable.

Boot PC,start xampp,start db server,all runs fine.

data passes back and forth from db server almost immediately

website in xampp is connectable from the internet.

Now,if I've disabled the HDD on shutdown.....
Or if I unplug,wait,replug HDD.........

Boot PC,enable HDD,start xampp,start db server both run fine,locally.

BUT! no data passing and no website online

Found to be related to Windows Firewall.................

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments
{count} votes

21 answers

Sort by: Most helpful
  1. MystaMagoo 1 Reputation point
    2021-10-10T16:42:46.323+00:00

    Typically, firewall rules are defined at application install time. There is no prompt. If your app doesn't have an install, then it should only need to define the firewall rules once. If it needs to keep redefining the rules, then there must be something different in the rule.

    Corrong
    The Apps have both TCP and UDP + all ports - thats it.
    Unless it contains some other information relating to that program at that specific rule making time like its id or a pid or some other identifier?
    I don't make the rules I just click ok when windows pops up.

    All the info is there in the 1st post....
    HDD enabled after bootup cannot communicate with the internet?????
    Ok,so I run xampp and a database server on a removable HDD also stated in bios as hot plug/removable.
    Boot PC,start xampp,start db server,all runs fine.
    data passes back and forth from db server almost immediately
    website in xampp is connectable from the internet.
    Now,if I've disabled the HDD on shutdown.....
    Boot PC,enable HDD,start xampp,start db server both run fine.
    BUT! no data passing and no website online

    Although now found to be inaccurate as it can communicate once you have removed FW rules.

    something within these FW rules must change after the HDD is removed/replugged.
    is the FW rule specific in its implementation?
    meaning.....
    is the rule like - app=passthrough
    or is it kinda more like - app that is from a,b,c&d=passthrough

    0 comments No comments

  2. MotoX80 36,291 Reputation points
    2021-10-10T18:15:57.967+00:00

    Sigh.

    Ok, lets see if we can export the FW rule settings.

    Open Powershell_ISE as an administrator and paste in this code. For each rule that you have to delete/recreate, modify the RuleName variable and run the script. It puts the output into the clipboard so you can just paste it back here. Use the Code Sample tool to paste the info. The 101010 icon.

    $RuleName = "Block8080"  
    cls   
    Function Anal() {  
        $fwr = Get-NetFirewallRule -DisplayName $RuleName  
        "****************************** Firewall Rule ****************************"  
        $fwr  
        "****************************** Address Filter ****************************"  
        $fwr | Get-NetFirewallAddressFilter  
        "****************************** Application Filter ****************************"  
        $fwr |Get-NetFirewallApplicationFilter  
        "****************************** Interface Filter ****************************"  
        $fwr |Get-NetFirewallInterfaceFilter  
        "****************************** Interface Type Filter ****************************"  
        $fwr |Get-NetFirewallInterfaceTypeFilter  
        "****************************** Port Filter ****************************"  
        $fwr |Get-NetFirewallPortFilter  
        "****************************** Security Filter ****************************"  
        $fwr |Get-NetFirewallSecurityFilter  
        "****************************** Service Filter ****************************"  
        $fwr |Get-NetFirewallServiceFilter  
    }  
    $Result = Anal  
    $Result  
    $Result | clip         # Save the output into the clipboard.   
      
    

    It should look like this. I ran it for my Block8080 rule.

    139208-capture.jpg


  3. MystaMagoo 1 Reputation point
    2021-10-10T19:48:12.94+00:00

    {CE25FD75-AD49-B0F2-40E6-A4D4-EF22OF882A50}

    Looks like Rules get a unique user identifier?

    As it is now with working online website and working fesl.

    Name : TCP Query User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe

    Works fine.........
    Remove HDD,wait,replug HDD.
    Doesn't work.

    Remove rules,start,agree to new rules.
    Name : TCP Query User{5C4EBB59-FC18-4736-9935-85FD49EF4AF0}I:\xampp\apache\bin\httpd.exe

    Works fine.

    So it looks like httpd.exe has an a,b,c and d in 'space' ( think Sheldon's spot ) upon windows boot
    as long as httpd.exe is connected to windows maintaining that unique id then no problems
    when HDD is disconnected or on disable it releases that id (or its stored in distant memory?) and gets a new unique id upon reconnection.
    rule checks httpd.exe's 'a,b,c and d'
    doesn't kick up a fuss because 'a,b and c' match but refuses internet because 'd' doesn't match.

    or maybe its just an a and b thing....no c or d


  4. MystaMagoo 1 Reputation point
    2021-10-11T07:25:57.177+00:00

    No idea what you hope to figure out from windows basic firewall rule unless it's something similar to what I've said.......

    ****************************** Firewall Rule ****************************

    Name : TCP Query User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    DisplayName : Apache HTTP Server
    Description : Apache HTTP Server
    DisplayGroup :
    Group :
    Enabled : True
    Profile : Private, Public
    Platform : {}
    Direction : Inbound
    Action : Allow
    EdgeTraversalPolicy : DeferToUser
    LooseSourceMapping : False
    LocalOnlyMapping : False
    Owner :
    PrimaryStatus : OK
    Status : The rule was parsed successfully from the store. (65536)
    EnforcementStatus : NotApplicable
    PolicyStoreSource : PersistentStore
    PolicyStoreSourceType : Local

    Name : UDP Query User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    DisplayName : Apache HTTP Server
    Description : Apache HTTP Server
    DisplayGroup :
    Group :
    Enabled : True
    Profile : Private, Public
    Platform : {}
    Direction : Inbound
    Action : Allow
    EdgeTraversalPolicy : DeferToUser
    LooseSourceMapping : False
    LocalOnlyMapping : False
    Owner :
    PrimaryStatus : OK
    Status : The rule was parsed successfully from the store. (65536)
    EnforcementStatus : NotApplicable
    PolicyStoreSource : PersistentStore
    PolicyStoreSourceType : Local


  5. MystaMagoo 1 Reputation point
    2021-10-11T14:09:47.537+00:00

    Aaaaaand an even bigger sigh here dude?
    Solved and already shown you by using the method you gave.

    TCP Query User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    UDP Query User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe

    HDD out - in

    TCP Query User{5C4EBB59-FC18-4736-9935-85FD49EF4AF0}I:\xampp\apache\bin\httpd.exe
    UDP Query User{ED92979A-DBE3-456A-95BE-AAF27A77A5E7}I:\xampp\apache\bin\httpd.exe

    {3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}
    Changes to ( in this instance )
    {5C4EBB59-FC18-4736-9935-85FD49EF4AF0}

    The firewall rule TCP is for {3F299B16........
    {5C4EBB59..... isn't quite the same
    Or am I totally wrong?


    ****************************** Firewall Rule ****************************
    
    
    Name                  : TCP Query User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    DisplayName           : Apache HTTP Server
    Description           : Apache HTTP Server
    DisplayGroup          : 
    Group                 : 
    Enabled               : True
    Profile               : Private, Public
    Platform              : {}
    Direction             : Inbound
    Action                : Allow
    EdgeTraversalPolicy   : DeferToUser
    LooseSourceMapping    : False
    LocalOnlyMapping      : False
    Owner                 : 
    PrimaryStatus         : OK
    Status                : The rule was parsed successfully from the store. (65536)
    EnforcementStatus     : NotApplicable
    PolicyStoreSource     : PersistentStore
    PolicyStoreSourceType : Local
    
    Name                  : UDP Query User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    DisplayName           : Apache HTTP Server
    Description           : Apache HTTP Server
    DisplayGroup          : 
    Group                 : 
    Enabled               : True
    Profile               : Private, Public
    Platform              : {}
    Direction             : Inbound
    Action                : Allow
    EdgeTraversalPolicy   : DeferToUser
    LooseSourceMapping    : False
    LocalOnlyMapping      : False
    Owner                 : 
    PrimaryStatus         : OK
    Status                : The rule was parsed successfully from the store. (65536)
    EnforcementStatus     : NotApplicable
    PolicyStoreSource     : PersistentStore
    PolicyStoreSourceType : Local
    
    ****************************** Address Filter ****************************
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : TCP Query User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|TCP Query 
                              User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    LocalAddress            : Any
    RemoteAddress           : Any
    PSComputerName          : 
    LocalIP                 : Any
    RemoteIP                : Any
    
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : UDP Query User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|UDP Query 
                              User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    LocalAddress            : Any
    RemoteAddress           : Any
    PSComputerName          : 
    LocalIP                 : Any
    RemoteIP                : Any
    
    ****************************** Application Filter ****************************
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : UDP Query User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|UDP Query 
                              User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    AppPath                 : I:\xampp\apache\bin\httpd.exe
    Package                 : 
    PSComputerName          : 
    Program                 : I:\xampp\apache\bin\httpd.exe
    
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : TCP Query User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|TCP Query 
                              User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    AppPath                 : I:\xampp\apache\bin\httpd.exe
    Package                 : 
    PSComputerName          : 
    Program                 : I:\xampp\apache\bin\httpd.exe
    
    ****************************** Interface Filter ****************************
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : UDP Query User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|UDP Query 
                              User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    InterfaceAlias          : Any
    PSComputerName          : 
    
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : TCP Query User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|TCP Query 
                              User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    InterfaceAlias          : Any
    PSComputerName          : 
    
    ****************************** Interface Type Filter ****************************
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : TCP Query User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|TCP Query 
                              User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    InterfaceType           : Any
    PSComputerName          : 
    
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : UDP Query User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|UDP Query 
                              User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    InterfaceType           : Any
    PSComputerName          : 
    
    ****************************** Port Filter ****************************
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : TCP Query User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|TCP Query 
                              User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    DynamicTransport        : Any
    IcmpType                : Any
    LocalPort               : Any
    Protocol                : TCP
    RemotePort              : Any
    PSComputerName          : 
    DynamicTarget           : Any
    
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : UDP Query User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|UDP Query 
                              User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    DynamicTransport        : Any
    IcmpType                : Any
    LocalPort               : Any
    Protocol                : UDP
    RemotePort              : Any
    PSComputerName          : 
    DynamicTarget           : Any
    
    ****************************** Security Filter ****************************
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : TCP Query User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|TCP Query 
                              User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    Authentication          : NotRequired
    Encryption              : NotRequired
    LocalUsers              : 
    OverrideBlockRules      : False
    RemoteMachines          : 
    RemoteUsers             : 
    PSComputerName          : 
    LocalUser               : Any
    RemoteUser              : Any
    RemoteMachine           : Any
    
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : UDP Query User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|UDP Query 
                              User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    Authentication          : NotRequired
    Encryption              : NotRequired
    LocalUsers              : 
    OverrideBlockRules      : False
    RemoteMachines          : 
    RemoteUsers             : 
    PSComputerName          : 
    LocalUser               : Any
    RemoteUser              : Any
    RemoteMachine           : Any
    
    ****************************** Service Filter ****************************
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : TCP Query User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|TCP Query 
                              User{3F299B16-AD49-4ED4-887F-A0F1DF9C1E61}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    ServiceName             : 
    PSComputerName          : 
    Service                 : Any
    
    
    Caption                 : 
    Description             : 
    ElementName             : 
    InstanceID              : UDP Query User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    CommunicationStatus     : 
    DetailedStatus          : 
    HealthState             : 
    InstallDate             : 
    Name                    : 
    OperatingStatus         : 
    OperationalStatus       : 
    PrimaryStatus           : 
    Status                  : 
    StatusDescriptions      : 
    CreationClassName       : MSFT|FW|FirewallRule|UDP Query 
                              User{923F650C-6E90-42DF-8FEA-103E45D6436F}I:\xampp\apache\bin\httpd.exe
    IsNegated               : 
    SystemCreationClassName : 
    SystemName              : 
    ServiceName             : 
    PSComputerName          : 
    Service                 : Any
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.