In light of the recent discussions about the legality of quarantining potential Ebola patients, I was wondering if Halacha has the mechanism for such a thing.
In an autonomous Jewish society, in which Beis Din had the authority to run things according to Halacha, would Beis Din have the authority to quarantine someone?
I am not talking about in the case of a Malchus, in which the king may have many extralegal powers. I am talking about a normal Jewish court. Answerers could consider a proper Sanhedrin as well.