Gun Run

Gun Run is a miscellaneous quest in Fallout 4.

Detailed walkthrough
As you approach the Rook family house in Salem, you will see Barney Rook standing on the roof of his house, which is surrounded by mirelurks. The mirelurks are initially friendly but will turn hostile when approaching the house, starting the quest. After they are defeated, get closer and Barney Rook will speak to you and invite you to enter the bunker in the basement of his house.

Upon arrival, Barney will speak to you, continuing the quest. He will tell you the Salem Militia, composed of himself and his rifle, Reba, need some help to reactivate the defenses of the town. He will ask you to activate the terminals controlling the turrets throughout the town. To do so, you must enter Barney's password in the terminals. As he warned you, you will find mirelurks along the way.

Once all five terminals have been activated, return to Barney and he will give you a reward: Barney's key, which allows access to Reba II, a special sniper rifle with +50% bonus damage against bugs and mirelurks.

Bugs

 * Barney may already be dead. His pre-death may play out in several ways:
 * You may approach Rook House and not get the first quest stage to trigger at all ("Kill 0/3 mirelurks"), despite the mirelurks being present. Barney's corpse is on the roof, invisible, with Reba laying next to him.  Reloading a save, one might try to approach Rook House at a later time to get a different result.
 * The quest activates and instructs you to kill the 3 mirelurks, but he's still dead on the roof, this time with his corpse visible. This will result in "Talk to Barney" being an unfulfilled miscellaneous quest.
 * In both cases, his corpse is lootable and contains his basement key, so both Rebas are attainable even as the quest either gets stuck in your Pip-boy or never triggers at all.
 * For those who are really wanting the Guns & Bullets mag and Reba II, and who have been unable to respawn Barney or restart the quest there is another option. Go to the trapdoor in Barney's house and then while looking at the door open the console and then left click on the door. Numbers will appear giving the ID of the door, then simply type   unlock    This will unlock the trapdoor allowing entry into the basement, the same command can then be used on the door leading to Barney's workshop and the Reba II. As of 7/23/16 doing this does not lock achievements.