I had a very sinky sewage poo gas smell that would come up in our bathroom that is closest to the exterior line out of our house. After years of just hoping it would go away, this is what works for us:
1. Hydrojetted entire house due to gunk/clogs further up the line, and had an added bonus of clearing ALL the gunk so we were starting with a pretty decently clear whole house line.
2. NO grease or food waste down the kitchen any more. It gets wiped out and trashed.
3. Check the that the tub trap was maintaining water (it was) so that wasn't the issue.
4. Realizing that this bathroom was used primarily by husband, who sheds tons, and uses lots of soap/oil products so there's more than a usual amount of stuff that will end up in the pipes. That gunk can end up with an over abundance of the bad type of bacterial junk and will also offgas stench in addition to causing slow draining.
5. Started using lye drain cleaner every 6 months or so down any drains we were concerned with. We get it from Walmart or HD, it's cheap, it's non damaging to the pipes as long as you follow directions (don't splash it on yourself or bare skin either). Leave it in there about an hour and then flush the pipes really well. It eats up the hair and greases/oils and turns them basically into (really gross) soap, that will be washed away with the flow of water.
https://www.homedepot.com/p/Instant-Power-Crystal-Lye-Drain-Cleaner-1650/2043740176. We drop some of these drain refresher sticks down the sink and tub drains monthly. They have lemon scent, but also the good bacterial makeup to eat away any gunk build up.
https://www.homedepot.com/p/Green-Gobbler-Bio-Flow-Drain-Cleaning-and-Deodorizing-Sticks-Lemon-Scent-12-pack-G0885D/313143891My plumber recommends a monthly dump of a whole bottle of dollar store bleach down any offending pipes (both the ones that get blocked by overgrowth or just stinky) and leaving it overnight and then flushing the next morning, but that will kill ALL the good stuff in the bioflow drain sticks and you also shouldn't do this for any septic systems. It does work somewhat, but it's a less than stellar option and I've only done it a few times over the years when I've forgotten to keep up with the lye/bio sticks for a few months.
Never have had an issue since. You don't have to do the hydrojet if you're not experiencing any blocks/clogs - but it will take care of that and the ick smells too and give you a nice clean slate.