def METHOD_NAME(multihost):
    """
    :title: Proxy server access
    :id: 5fe5839b-fbfb-48be-87de-18c1b0de209c
    :steps:
      1. Block server access
      2. User should not have access
      3. Unblock server access
      4. User should have access
    :expectedresults:
      1. Should succeed
      2. Should succeed
      3. Should succeed
      4. Should succeed
    """
    tools = sssdTools(multihost.client[0])
    tools.clear_sssd_cache()
    ssh = check_login_client_bool(multihost, "foo2@example1", 'Secret123')
    # block_server_access
    execute_cmd(multihost, "systemctl start firewalld")
    execute_cmd(multihost, f"firewall-cmd --direct "
                           f"--add-rule ipv4 filter "
                           f"OUTPUT 0 -d {multihost.master[0].ip} "
                           f"-j DROP")
    try:
        with pytest.raises(Exception):
            check_login_client(multihost, "foo2@example1", 'Secret123')
        # unblock_server_access
        execute_cmd(multihost, "firewall-cmd  --reload")
        execute_cmd(multihost, "systemctl stop firewalld")
        tools.clear_sssd_cache()
        ssh2 = check_login_client_bool(multihost, "foo2@example1", 'Secret123')
        assert ssh, 'foo2@example1 is not able to login.'
        assert ssh2, 'foo2@example1 is not able to login.'
    except Exception:
        # unblock_server_access
        execute_cmd(multihost, "firewall-cmd  --reload")
        execute_cmd(multihost, "systemctl stop firewalld")
        tools.clear_sssd_cache()
        pytest.fail("foo2@example1 was able to login")