portmaster icon indicating copy to clipboard operation
portmaster copied to clipboard

Import/Export Global and App Settings

Open PeterKW opened this issue 3 years ago • 6 comments

Is there a way of copying/exporting the Portmaster Global Settings from one Windows device to another?

Would copying and replacing the BBOLT file work in doing this? %ProgramData%\Safing\Portmaster\databases\core\bbolt

PeterKW avatar Sep 07 '21 01:09 PeterKW

Hey @PeterKW, thanks for the great suggestion!

Is there a way of copying/exporting the Portmaster Global Settings from one Windows device to another?

The global settings are saved in config.json in %ProgramData%\Safing\Portmaster\. You can copy this file and restart the Portmaster.

Copying settings of a single application is not possible though, but we already have this planned and in the pipeline. For future reference, we are tracking this internally with CC#1550.

In order for others to find this, I'll update your suggestion.

Would copying and replacing the BBOLT file work in doing this? %ProgramData%\Safing\Portmaster\databases\core\bbolt

I would recommend against this.

dhaavi avatar Sep 07 '21 08:09 dhaavi

Assuming the original need was handled, this will be automatically closed now.

github-actions[bot] avatar Feb 11 '22 16:02 github-actions[bot]

Sorry, issue was closed by misconfigured bot.

dhaavi avatar Feb 11 '22 17:02 dhaavi

Summarizing Suggestions from other issues

  • Add Import/Export (optionally password encrypted)]
  • Syncing over devices (could be a paid feature)
  • Copy and paste rules from one app settings to another
  • Allow apps to inherit rules of other apps

ghost avatar Sep 09 '22 08:09 ghost

Are you able to provide an update when the import/export function will be implemented?

aberja avatar Nov 01 '22 17:11 aberja

I am also waiting for this feature as i am switching between many pcs. Simplewall is my only option at the moment. If portmaster implements this feature it will be groundbreaking!

hruzgar avatar Nov 03 '22 09:11 hruzgar

Hello, are there any updates in regards to this? Thank you.

antv199 avatar Nov 28 '22 14:11 antv199

Years ago I was so frustrated with the firewall situation on Windows that I wrote a custom application that runs as a system service and continuously scans the windows firewall rules, removes anything that got added by applications without my consent, and makes sure a fixed set of rules are in place to only allow what I deem essential to talk both outbound or inbound.

I looked at simplewall, but it didn't quite do it for me. Portmaster on the other hand is awesome - just played around with it in a VM. I was particularly impressed by the ability to add an app profile with path prefix OR regex...amazing! That's particularly useful because some things like Windows Defender (one of the few built-in parts of Windows I want talking to the net) regularly reach out to the internet, update themselves, and then the binaries are located in a new folder path (with a different version string). I had to recode things in my custom program to scan for the latest copy and update the firewall rules, but with the prefix/regex based rules in Portmaster that's taken care of automatically! Portmaster is really my dream come true for firewalls...and just in time, too, since we need more control than ever before with how bad Windows 11/etc is getting.

The oooonly thing holding me back from using it everywhere is this import/export ability, since I have really long rulesets due to working from a default-blocked-outbound mode and I use many computers.

If I get the time at some point (not likely, but...) I might dive into the code base and see if I could help with implementation. Or if not I'll definitely switch if/when it gets implemented anyway. Either way, kudos on portmaster!

graham00 avatar Mar 01 '23 21:03 graham00

I've also been waiting for an export-import setting since a while. I guess config.json in %ProgramData%\Safing\Portmaster\ will have to do it for now.

Morasithil avatar Sep 24 '23 16:09 Morasithil

@dhaavi any updates on this? Noticed you removed the next label, does it mean we won't see this feature in the near future?

ThiagoRangel7 avatar Sep 28 '23 14:09 ThiagoRangel7

We are now actively working on this.

dhaavi avatar Sep 28 '23 18:09 dhaavi

What to do if the application became broken and the interface is inaccessible because the main service fails to start and all you got is "Please reinstall" prompt. How can I reinstall Portmaster without wiping all settings? How do I make a backup of All settings?

Flashwalker avatar Apr 01 '24 20:04 Flashwalker

@Flashwalker you get asked during uninstall if you want to remove the data or not.

just make sure you configure this setting correct during uninstall.

The new installation will see the settings and integrate them

Raphty avatar Apr 02 '24 08:04 Raphty

@Flashwalker you get asked during uninstall if you want to remove the data or not.

just make sure you configure this setting correct during uninstall.

The new installation will see the settings and integrate them

I doubt that. I can't find any mention about the remove the data or not, in either the install.sh script, or the .INSTALL.sh script or the prerm (.deb pkg) script. (pre_remove won't even run if /opt/safing/portmaster/.installed-files doesn't exist).

Can you point out where that is?

2024-04-12_01-30-15-nq8 2024-04-12_01-45-50-nq8 2024-04-12_01-29-26-nq8 2024-04-12_01-46-32-nq8

Flashwalker avatar Apr 11 '24 18:04 Flashwalker

🤦‍♂️ omg

Flashwalker avatar Apr 13 '24 11:04 Flashwalker

@dhaavi, is (or could there be) a way to import and export a full profile of rules for multiple applications? I have multiple computers on multiple networks with largely identical application sets. And after sorting out the rules on one machine, it would be helpful not to have to migrate the rules application-by-application to another.

Thanks so much!

dstark avatar Jul 02 '24 14:07 dstark

@dstark we have been a bit sidetracked with the kext and the UI rework, but the sync feature for plus and pro customers is worked on and will ship soon.

with that you can automatically sync against any folder and if that folder is then distributed using next cloud or syncthing, you can keep all your devices in sync.

Raphty avatar Jul 03 '24 07:07 Raphty

the sync feature for plus and pro customers

@raphty, thanks so much for the update. Does this imply that free plan users won't have a way to send rules to a synced folder? Or will they just need to trigger the export manually?

dstark avatar Jul 12 '24 17:07 dstark