i just had that same problem on my 106 found it to be the relay that was causing the problem!
Check the grounds for the headlights.
The 2001 Subaru Forester has dual beam (both low and high beam are produced from the same bulb) so the low beams are in the exact same place as the high beams. Normally if your fogs are switched on and you're in low-beam mode, you should have fogs and low-beams. When you switch to high-beam, its just high-beams (fogs turn off normally). Both bulbs could be burnt out, but most likely its a fuse issue. See sources and related links below for more information on bulbs.
100 metres?
PULL THE TURN SIGNAL LEVER TOWARD THE DRIVER. THAT CHANGES FROM LOW TO HIGH BEAM
The low beam lights should be set up as the outermost headlamps. All 4 will be on the when the "high beams" are switched on
It could be a bad ground or a dirty connection with the socket and the light. Make sure the ground is good. Trace it back and clean that connection and reattach it . If that does not work check your sockets for corrosion or dirt. clean them and check your lights.
High beams are the "bright" setting of your headlights. The reason they are sometimes referred to as "high beams" is because when they are on high beam or bright setting, the lights are directed straight out, instead of a bit more downwards as they are on "low beam" or "dim".
Sounds like it might be a bad ground
The rule of the road is to flash your high beams to remind them to turn their high beams off.
You could wire them with the running lights instead of the bright and dim. Otherwise you will have to install a toggle switch to override turning off fog lights when using running lights only. It is against the law to run your fog logs in the high beam mode, you may only use fog lights while in the low beam mode. Not that that matters to most people, but in high beam they will not provide any usable light anyway, or is it you just think it looks cool to have them on even in the high beam mode?
Look at headlight lenses, if they are all clowdy, low beams will be dim and high beams will help Look at headlight lenses, if they are all clowdy, low beams will be dim and high beams will help Look at headlight lenses, if they are all clowdy, low beams will be dim and high beams will help
Dim headlights form high beam to low beam