Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Issue 149023010: UDP firewall rules for Windows. (Closed)

Created:
6 years, 10 months ago by grt (UTC plus 2)
Modified:
6 years, 4 months ago
Reviewers:
CC:
chromium-reviews, grt+watch_chromium.org, Vitaly Buka (NO REVIEWS)
Visibility:
Public.

Description

UDP firewall rules for Windows. On Windows, Chrome cannot pick the local port for a UDP packet without Windows Firewall thinking that Chrome is trying to listen for incoming connections. In fact, Chrome is not, it just wants to pick a specific local port for an outgoing packet. This change introduces the FirewallManager in installer_util. This is used by the installer to add (and remove at uninstall) a rule to block inbound UDP packets for Chrome so that Chrome can safely pick local ports. Additionally, QUIC uses the FirewallManager at startup to determine whether or not it's safe to pick a local port. BUG=329255 COLLABORATOR=vitalybuka@chromium.org

Patch Set 1 : #

Patch Set 2 : more xp code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+614 lines, -10 lines) Patch
M chrome/app/chromium_strings.grd View 1 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/app/google_chrome_strings.grd View 1 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 3 chunks +12 lines, -9 lines 0 comments Download
M chrome/chrome_installer_util.gypi View 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 5 chunks +55 lines, -1 line 0 comments Download
M chrome/installer/setup/uninstall.cc View 3 chunks +11 lines, -0 lines 0 comments Download
A chrome/installer/util/advanced_security_firewall_manager_win.h View 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/installer/util/advanced_security_firewall_manager_win.cc View 1 1 chunk +158 lines, -0 lines 0 comments Download
A chrome/installer/util/firewall_manager.h View 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/installer/util/firewall_manager.cc View 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/installer/util/firewall_manager_win.cc View 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/installer/util/legacy_firewall_manager_win.h View 1 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/installer/util/legacy_firewall_manager_win.cc View 1 1 chunk +153 lines, -0 lines 0 comments Download
M chrome/installer/util/prebuild/create_string_rc.py View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Vitaly Buka (NO REVIEWS)
That's a problem. I had impression that goal is to allow UDP not to block. ...
6 years, 10 months ago (2014-02-07 21:42:03 UTC) #1
rvargas (doing something else)
On 2014/02/07 21:42:03, Vitaly Buka wrote: > That's a problem. > I had impression that ...
6 years, 10 months ago (2014-02-11 19:19:37 UTC) #2
Vitaly Buka (NO REVIEWS)
On 2014/02/11 19:19:37, rvargas wrote: > On 2014/02/07 21:42:03, Vitaly Buka wrote: > > That's ...
6 years, 10 months ago (2014-02-11 22:42:38 UTC) #3
Vitaly Buka (NO REVIEWS)
On 2014/02/11 22:42:38, Vitaly Buka wrote: > On 2014/02/11 19:19:37, rvargas wrote: > > On ...
6 years, 9 months ago (2014-03-14 01:54:49 UTC) #4
grt (UTC plus 2)
6 years, 9 months ago (2014-03-14 16:45:33 UTC) #5
On 2014/03/14 01:54:49, Vitaly Buka wrote:
> Hi Greg. we are going to move mdns to browser process for M36, so we need to
> setup firewall rules 
> I'd like to continue to work on this and summit at least necessary part.

I've added you as COLLABORATOR on this issue in case you'd like to use it.
Please keep chrome-security in the loop, since on XP I think you'll need to make
the rule allow all inbound connections to chrome.exe. I'm happy to review any
changes you make. Keep in mind that it's still the case that Chrome's installer
can't modify firewalls rules for user-level installs, so consider adding UX that
guides the user to making the correct choice if the firewall rule isn't present.

Powered by Google App Engine
This is Rietveld 408576698