The Biblical pattern to forgive

If we want to ensure that we live within the blessings of YHVH, we need to ensure that our relationships with our brothers are in good shape. We cannot go before YHVH if we have a brother that has something against us. Does this imply we simply need to forgive all who transgress against us? If we follow the pattern that YHVH establishes when we sin, the restoration process cannot be one way. Forgiveness is required for our relationships to be restored, but in order for it to be a lasting restoration, it has follow the pattern YHVH established.