A filter for an HVDC system. The filter includes a capacitor and a reactor arranged in an indoor location having a first space for erecting filter components. The first space includes a high voltage area and a low voltage area defining a first electric potential direction.