How risky is getting fucked without a condom? 

As far as gay sex goes, getting fucked without a condom, and having your partner cum inside you, is the riskiest thing you can do. This is because the lining of the arse can absorb liquids directly into your bloodstream. If there's HIV in his cum, that will be absorbed too. Getting fucked without him cumming inside you is lower risk but, as there is HIV in pre-cum too, there is still a risk of HIV transmission. However, if someone is living with HIV and on effective medication, they cannot pass on HIV. An HIV-negative person can also take the preventative drug PrEP, which is now available on the NHS. This will stop you getting HIV. This is why it's also important to test regularly and know your status.
Getting fucked is also high risk for most other STIs, including chlamydia, gonorrhoea, herpes, syphilis, warts, hepatitis B and, for HIV-positive men, it is thought that you can catch hepatitis C as well. Condoms provide an effective barrier against most STIs, including HIV, although some STIs, such as syphilis and warts, can still be transmitted if the condom does not cover the entire infected area, such as the base of the cock. If you are infected with an STI in your arse, it will increase the chances of you being infected with HIV if you are HIV-negative. If you are HIV-positive and have an STI, it is likely that there will be higher concentrations of HIV in all of your body fluids, including blood and anal mucus, and so you will be more infectious. PrEP does not prevent STIs, only HIV. Condoms can protect against STIs anally (but not always fully) but not orally of you don't use them for blow jobs.
In group sex it's theoretically possible to catch HIV from getting fucked even if your partner is HIV-negative, if he has fucked someone who is HIV-positive and then fucks you immediately afterwards. This is because there could be traces of HIV-infected anal mucus or blood on his cock.

If the person doing the fucking is HIV-positive and has an undetectable viral load there is now risk of transmission sexually.
How risky are fucking and getting fucked with condoms?
While it is rare, condoms can break during fucking and this could make it possible for HIV or other STIs to be transmitted. Condom breaks usually occur because condoms are used incorrectly or are used for long sessions without changing them. If you use condoms correctly with plenty of water-based lube, it will greatly reduce the chances of them breaking. If you are having group sex, it's also important to change condoms for each partner. This is because it's theoretically possible that traces of HIV-infected anal mucus or blood could remain on a condom after a guy with HIV gets fucked. This is also true for other STIs, including hepatitis C. While condoms offer protection against HIV and most STIs, they cannot prevent them all. Even if you always use condoms for fucking we recommend that you get regular sexual health screens at a GUM clinic and continue to test for HIV on an annual basis, or every six months, depending on what type of sex you are having and how much. Also look into starting HIV prevention drug PrEP aas a way tp protect against HIV.
If someone is living with HIV and on effective treatment, they are HIV-undetectable and can not pass on the virus.