BOSTON — The Anaheim Ducks spotted the Boston Bruins a goal in the first minute and scored four consecutive goals against two goaltenders en route to a 6-2 victory Tuesday in the final game before All-Star weekend for both teams.

Bruins goalie Jonas Gustavsson left the game after the first period because of illness and the team said he had been taken to Massachusetts General Hospital for observation. Gustavsson had three procedures from 2009-11 to correct a rapid heartbeat but there was no word on whether this was connected to the prior problem. If it was, it would be his first recurrence since 2011.

Sizzling right winger Corey Perry, newly acquired left winger David Perron, center Ryan Kesler and rookie defenseman Shea Theodore all had a goal and an assist as the Ducks (22-18-7) won for the fifth time in their last six games and beat the Bruins for the fourth straight time.

Center Ryan Getzlaf and right winger Jakob Silfverberg had two assists apiece.

Kesler scored into the open net and center Mike Santorelli also scored in the final minute.

The Bruins (26-18-5) have won only three of their last nine home games and fell to 11-13-2 on home ice this season.

Perry, who hit the 20-goal mark for the eighth time in his career, scored his sixth goal in the last eight games and has eight points over that stretch.

After defenseman Zach Trotman scored 40 seconds into the game, Perry and Theodore answered against Gustavsson, and Perron and defenseman Kevin Bieksa connected against Tuukka Rask to give the Ducks a 4-1 lead.

Defenseman Zdeno Chara gave the Bruins hope when he scored his seventh goal of the season 2:04 into the third, but that was all Boston would get against Frederik Anderson, who improved to 8-8-5 while making 32 saves.

Rask, who made 19 saves, actually wound up as the losing goalie, dropping to 17-15-4.

Left winger Matt Beleskey, playing his first game against his old team, assisted on both Bruins goals — his first points in six games.

Beleskey not only assisted on Trotman’s goal, but also screened Andersen on the shot as the Bruins scored on their first shift. It was the second career goal for Trotman.

The Ducks got that goal back at 7:54 when Gustavsson attempted to clear the puck to Trotman, who had his stick lifted by Perron, who set up Perry for his sixth goal in the last eight games.

Anaheim scored on the power play at 14:27 when Theodore scored his second NHL goal on a wrist shot, with Perry drawing an assist on a wrist shot.

Gustavsson was gone after the period and Rask gave up the third goal on a Perron backhander on the rebound of a shot by right winger Chris Stewart, who had taken a pass from Getzlaf.

Bieksa made it 4-1 with a slapper at 17:13 of the second. The Ducks caught the Bruins on a line change as Bieksa had all day to wind up as Silfverberg set the screen in front of Rask.

NOTES: Boston College’s Jerry York, who became the first NCAA Division I coach to win 1,000 games on Jan. 22, dropped the first puck. … The Ducks welcomed D Simon Despres back after he missed 42 games with concussion symptoms, but they learned earlier in the day they lost C Shawn Horcoff for 20 games for violating the terms of the NHL/NHLPA Performance Enhancing Substances Program. … Bruins LW Matt Beleskey played his first game against his former team, saying before the game, “I’ve definitely had this one circled on the calendar.” … Anaheim LW Andrew Cogliano played in his 669th consecutive game, the second-longest streak from the start of a career in NHL history. Current Bruins assistant coach Doug Jarvis holds the record with 964. … Four of the previous five games between the teams ended 3-2. … The Ducks come out of the All-Star break at home against the San Jose Sharks. The Bruins play host to the Toronto Maple Leafs. Both games are next Tuesday.