Streaming media group Stan is taking legal action against a group of men who racially abused Labor senator Sam Dastyari, after it was revealed that the far-right group took their name from Stan's upcoming drama series Romper Stomper.

The men from the group Patriot Blue surrounded the Senator while he was sitting down in a Melbourne pub to tell him to return home to his birth nation of Iran, while one man shouted "You terrorist, you little monkey", which they filmed and later posted on their Facebook page.

Stan and Roadshow Productions issued a statement condemning the men's actions and instructed law firm Gilbert and Tobin to seek legal action against the men over the infringement of the Patriot Blue trademark, and use of the Stan name on Facebook.

"Stan and Roadshow Productions would like to clarify that while our series does refer to a purely fictional group created for the series called Patriot Blue, there is no association between our organisations or the Romper Stomper production team and those involved in yesterday's incident," the joint-statement said.