The Ducks took a 1-0 lead at 1:09 of the first period. San Jose defenseman Radim Simek retrieved the puck along the wall and tried to pass it out of the zone, but Silfverberg deflected it to a trailing Rakell, who scored from the right circle on a wrist shot.
Hertl scored for the fifth straight game to tie it 1-1 at 6:44.
Gibson made a save on Barclay Goodrow on a 2 on 1, but Hertl came in behind and pushed the puck across the goal line as it rested against Gibson's right pad. A video review confirmed the goal.
Anaheim, which came in with the 30th-ranked power play in the NHL (8.2 percent), took a 2-1 lead against the No. 1 penalty kill unit (91.4 percent) when Silfverberg pushed in a rebound with the man-advantage at 13:00 of the second period.
"We really got to bear down and get that next one," Ducks forward Adam Henrique said. "It seems like, in a few of these games, where we're up one. ... we've got to be able to step on their throat kind of thing."
Hertl tied it 2-2 at 18:28 on a wrist shot from the right circle into the top left corner, giving him nine points (six goals, three assists) in the five-game point streak.