constrained by constrained with

1) He was constrained by some rules.
2) He was constrained with some rules.

Can someone please tell me which of the above sentences is correct?

Either is correct.

I see little semantical difference between the two.

I looked it up in Longman Dictionary,but I only found “be constrained BY”. :roll:
Hope that helps!