A former Long Island Rail Road human-resources manager claims he was fired for refusing to hire a former senior vice president’s daughter.

Walter Tanner, 37, says his bosses handed him the résumé of the child of a former LIRR senior vice president with the admonition, “You have to learn about political situations.”

The job candidate, Lauren Gelormino, lacked the experience and education needed to work at the railroad, Tanner claims in a Manhattan Supreme Court lawsuit filed against the MTA.

“Tanner was concerned that smuggling the résumé of a candidate through the back-door channel . . . was contrary to LIRR personnel rules, unfair to other candidates, abused the process and violated the anti-nepotism policy of the LIRR,” according to court papers.

When Tanner, of Queens, refused to hire her, he says, supervisors singled him out for scrutiny and “cast aspersion on his professional ­integrity,” he says in the $6 million lawsuit.

The day he was fired in May 2015, he found himself “surrounded by a dozen armed police” who silently “looked at him in intimidating fashion” and followed him, even onto an elevator, he claims.

Gelormino’s father, Michael, who retired from the LIRR two years ago, vehemently denied Tanner’s claims, saying “the guy was definitely not professional. He didn’t get fired because of Lauren.”

The elder Gelormino insisted there was no nepotism in his daughter’s application for a planning-officer job, saying she was qualified and submitted her résumé through normal channels, adding, “There’s no other way to do it.”

The LIRR declined to comment.