Skip to content

Windows utility for automatically setting up firewall/port forwarding for services

License

Notifications You must be signed in to change notification settings

connectiblutz/apfd

Repository files navigation

apfd - auto port forward daemon

Building

  • cmake -B _builds && make -C _builds apfd

Installing

  • Install service - apfd.exe --install <windows account name> <windows account password>
    • You must enable Log On As a Service for your account
  • Remove service - apfd.exe --remove

Running manually

  • apfd[.exe] --debug

Config

Example apfd.json

{
  "services": [
    {
      "enabled":true,
      "name":"Debian Apache",
      "protocol":"tcp", // only tcp
      "localIp":":Debian:lo", // ipv4 address | any | localhost | :<wsl distro>:<iface> (use lo for wsl1, eth0 for wsl2)
      "localPort":80,
      "remoteIp":"any", // ipv4 address | any | localhost
      "remotePort":80,
      "autoStart":true,
      "startCommand":"sudo service apache2 start" // set up your sudoers
    }
  ]
}

About

Windows utility for automatically setting up firewall/port forwarding for services

Resources

License

Stars

Watchers

Forks

Packages

No packages published