To protect against lightning damage, the fence cable on the building must be guided through a lightning protection device with throttle and spark gap which is applied to non-flammable material on the outside wall of the building before being connected to the electric fence unit.
This also applies to combi-units if they are operated with a mains adapter.