Iranians could soon face up to two years in prison for daring to communicate in any way with a foreign news outlet, embassy or institution.