henrypp / simplewall

Simple tool to configure Windows Filtering Platform (WFP) which can configure network activity on your computer.
GNU General Public License v3.0
6.08k stars 481 forks source link

simplewall cant find correct battlenet location (whitelist) #529

Closed razzor1984 closed 4 years ago

razzor1984 commented 5 years ago

System: Window 10 64bit 8 core CPU 32Gb Ram

Application: Simplewall: 2.4.6 - 64bit

What the application does:

When i will start battlenet simplewall is asking if it should let it out. But the source location is wrong. Simplywall defines it via mouse over C:\battlenet ...... The real location is the Hard-drive F - F:\Battle.net\Battle.net Launcher.exe

https://ibb.co/QdhVxWX

What the application should do:

When i start battlenet, simplewall is asking if it should let it out. I will accept it, and it goes into my whitelist.

What did i do: Uninstalled battlenet 3 to 4 times. Wiped caches with BleachBit - nothing worked

Best regards Razzor

henrypp commented 5 years ago

But the source location is wrong.

You do not have file on C:\battlenet ......, or what?

razzor1984 commented 5 years ago

Yep nothing there, but simpleywall always says that the file is there and via mouse over it is saying it isn't. The correct source location in my case is - F:\Battle.net\Battle.net Launcher.exe

henrypp commented 5 years ago

and old version 1.x has a bug, it was cannot define right drive letter, but 2.x was fixed this behaviour.

now i am interested, what kind of type of your drive where files are located, or whatever? i can suggest you to use v3.x of SW, but i did not, because i did not understand where is the problem here!

razzor1984 commented 5 years ago

I upgraded to the RC version as mentioned. That fixed oddly my problem with battle net, but now its blocking my games. They are all located in new NVME SSD under F:

The log: "‎07.‎09.‎2019 ‏‎20:20:47","DESKTOP-xxxxx","C:\overwatch_retail\overwatch.exe","xx.xxx.xx.xx","11xx (bnetgame)","tcp","simplewall\BlockConnectionsV4","#1643xxxx","Outbound","Blocked" "‎07.‎09.‎2019 ‏‎20:22:36","DESKTOP-xxxxx","C:\overwatch_retail\overwatch.exe","xx.xxx.xx.xx","11xx (bnetgame)","tcp","simplewall\BlockConnectionsV4","#164xxxx","Outbound","Blocked"

My initial problem: When i start the application overwatch which is located under - F:\overwatch_retail\overwatch.exe Simplywall asks me, to grant it access to the internet, but that doesn't work because the path to the exe is wrong --> Simplywall always logs C:\overwatch_retail\overwatch.exe as the source path (which is wrong because there arn't the required files they are under F:\overwatch_retail_\overwatch.exe)

henrypp commented 5 years ago

Task manager is also says that process started as "F:\overwatchretail\overwatch.exe", or anything different as SW says, hmm?

as task manager you can test these tools:

razzor1984 commented 5 years ago

Same path as i said - https://ibb.co/Y3DQbHq If i move the files to C the path is correct for simplywall and it works. Its very strange like a reg key is wrong or something else.

henrypp commented 5 years ago

v3.x is resolve this problem, yes?

razzor1984 commented 5 years ago

For battle net it fixed it, but the for the game over watch, sadly not. Simplywall still uses the wrong path to the game It still thinks its under C: the coret path is https://ibb.co/Y3DQbHq which Process Explorer also shows. Its like Simplaywall is getting a wrong path for this exe ......

henrypp commented 5 years ago

Check app list:

use v3.x for all of this

razzor1984 commented 5 years ago

I did remove unsed apps in simpleywall. Started the required app - Overwatch Found it in the list (was red because, Simplywall can't find the exe ) - still under the wrong path C:overwatch\overwatch launcher.exe https://ibb.co/Kw4BzzZ - under the mouse over its saying - File not found

Is there a option to manually edit the path for the this exe? Why is Simplywall getting an old path? even when i start the application, its getting the wrong path to the exe.

beerisgood commented 5 years ago

I use battle.net too and never see this problem. Nor with new 3.x or with old 2.x

Did you try a clean simplewall ?

razzor1984 commented 5 years ago

@beerisgood - I did a clean install of simplewall. After that i restored my settiungs via profile.xml import. Nothing changed. Simplewall is still under the impression that Overwatch is located under C:overwatch\overwatch launcher.exe...... ---> Correct path would be F:overwatch\overwatch launcher.exe Do you use batte.net and the concerning games at the default location (C:) ?

beerisgood commented 5 years ago

So you don't test a clean simplewall?

I installed battle.net in official path C:\Programm Files\

And have one game under same path and one under D:\Games

Never got problems with both

henrypp commented 4 years ago

it's maybe device path resolver bug, and probably fixed on next release soon.

Chaython commented 4 years ago

Henry was correct in referencing this and closing my issue. Sorry about the duplicate issue. His last message is likely the suitable fix, thanks. Just recapping what happened to me, for the OP. Every program in c:\ is being found on drive b:\ over time and being marked invalid immediately though it's on drive c:\ this started happening after plugging in a USB drive, windows derped and relabeled d:\ to e:\ [I since renamed my HDD to b:\ so the error would not happen again] though this started happening for every application on c Thanks for your hard work, @henrypp !