here you go:
2017 Subaru Forester (Smart Key) - North America
Item Wire Color Polarity Wire Location
12 Volts Red (50A) + Dash Fuse Box, rear, brown 9 pin plug, pin 6
Ground (chassis ground)
Starter Kill White/Red + Relay Holder behind dash fuse box, black 44 pin plug, pin 1
Starter Brown + Keyless Access Module right of BIU, white 18 pin plug, pin 7
Ignition Violet + Keyless Access Module right of BIU, white 30 pin plug, pin 6
Second Ignition Tan + Keyless Access Module right of BIU, white 18 pin plug, pin 9
Accessory Violet + Keyless Access Module right of BIU, white 30 pin plug, pin 4
PTS 1 Green - Keyless Access Module right of BIU, white 30 pin plug, pin 30
PTS 2 White - Keyless Access Module right of BIU, white 30 pin plug, pin 28
CAN Bus High Red Data OBD-Data Link Connector, white 16 pin plug, pin 6
CAN Bus Low Blue Data OBD-Data Link Connector, white 16 pin plug, pin 14
CAN Bus High 2 White Data Keyless Access Module right of BIU, white 30 pin plug, pin 14
CAN Bus Low 2 Red Data Keyless Access Module right of BIU, white 30 pin plug, pin 15
CAN Bus High 3 Red Data BIU behind dash fuse box, white 35 pin plug (B), pin 20
CAN Bus Low 3 Blue Data BIU behind dash fuse box, white 35 pin plug (B), pin 28
OBD 12 Volts Green (7.5A) + OBD-Data Link Connector, white 16 pin plug, pin 16
OBD Ground Black/Green or Black - OBD-Data Link Connector, white 16 pin plug, pin 4
OBD Ignition Pink + OBD-Data Link Connector, white 16 pin plug, pin 8
OBD Connector White Under Driver Dash, Behind Dash Fuse Box
IMMO Data White/Blue (non-turbo) Data ECM behind glove box, gray 65 pin plug, pin 38
IMMO Data 2 Green/Black (turbo) Data ECM on passenger fender, black 48 pin plug, pin 43
Security Light Brown/Red - BIU behind dash fuse box, white 31 pin plug (D), pin 26
Keyless Data White Data Keyless Access Module right of BIU, white 28 pin plug, pin 17
Power Lock lt. blue - BIU behind dash fuse box, white 35 pin plug (C), pin 9
Power Unlock blue/black - BIU behind dash fuse box, white 35 pin plug (C), pin 20
Power Lock2 lt. blue (alternate location) - driver kick, white 28 pin plug, pin 20
Power Unlock2 blue/black (alternate location) - driver kick, white 28 pin plug, pin 21
Lock Motor white reverse driver kick, white 28 pin plug, pin 17
Driver Unlock Motor red/green reverse driver kick, white 28 pin plug, pin 18
Passenger Unlock Motor yellow to lt. green reverse driver kick, white 19 pin plug, pin 7
Factory Alarm Arm (arms on lock with door open)
Factory Alarm Disarm (proximity key and push button)
Parking Lights lt. blue + dash fuse box, white 20 pin plug, pin 12
Parking Lights - lt. green - BIU behind dash fuse box, white 35 pin plug (B), pin 17
Parking Lights NEG 2 lt. green (alternate location) - Headlight Switch, white 20 pin plug, pin 18
Hazards pink - BIU behind dash fuse box, white 31 pin plug (D), pin 18
Turn Signal (Left) white/red + dash fuse box, white 20 pin plug, pin 20
Turn Signal (Right) green + dash fuse box, white 20 pin plug, pin 3
Headlight white/green - BIU behind dash fuse box, white 35 pin plug (B), pin 34
AutoLights pink cut BIU behind dash fuse box, white 35 pin plug (B), pin 16
Reverse Light brown/yellow + driver kick, white 14 pin plug, pin 14
Left Front Door Trigger blue to white - driver kick, white 19 pin plug, pin 10
Left Front Door Trigger 2 white (alternate location) - BIU behind dash fuse box, white 35 pin plug (C), pin 14
Right Front Door Trigger brown/black - BIU behind dash fuse box, white 35 pin plug (C), pin 13
Left Rear Door Trigger green - BIU behind dash fuse box, white 35 pin plug (C), pin 24
Right Rear Door Trigger tan - BIU behind dash fuse box, white 35 pin plug (C), pin 25
Dome Light brown - BIU behind dash fuse box, white 35 pin plug (C), pin 4
Trunk/Hatch Pin brown - BIU behind dash fuse box, white 35 pin plug (C), pin 33
Hood Pin green (with remote start) - Remote Start Module Connector above brake pedal, white 8 pin plug, pin 5
Power Liftgate brown + power liftgate switch, white 6 pin plug, pin 1
Trunk/Hatch Release blue (rear handle switch) - BIU behind dash fuse box, white 35 pin plug (C), pin 10
Trunk Release Motor black (w/o power liftgate) reverse BIU behind dash fuse box, white 31 pin plug (D), pin 7
Tachometer red ac Keyless Access Module right of BIU, white 18 pin plug, pin 17
Fuel Pump red/black + passenger kick, white 14 pin plug, pin 4
Rear Defroster tan - latched BIU behind dash fuse box, white 34 pin plug (A), pin 26
Mirror Defroster (same as rear defroster)
Wiper Deicer blue - latched BIU behind dash fuse box, white 31 pin plug (D), pin 9
Left Front Heated Seat red (LO) reverse left seat heater switch, white 6 pin plug, pin 5
Right Front Heated Seat blue (LO) reverse right seat heater switch, brown 6 pin plug, pin 5
Speed Sense pink/green ac radio, white 28 pin plug, pin 17
Brake Wire lt. green + Keyless Access Module right of BIU, white 18 pin plug, pin 18
Parking Brake gray - dash fuse box, white 20 pin plug, pin 13
Horn Trigger blue - BIU behind dash fuse box, white 34 pin plug (A), pin 24
Horn Trigger 2 blue (alternate location) - horn switch, white 14 pin plug, pin 9
Wipers red/blue (LO); black/blue (HI) + wiper switch, white 10 pin plug, pin 3 (LO); pin 4 (HI)
Wipers Protection green/black (ignition) cut wiper switch, white 10 pin plug, pin 2
Left Front Window (Up/Down) blue/red - lt. green/red A power window main switch, white 3 pin plug, pins 3 - 1
Right Front Window (Up/Down) red - red/yellow (w/o auto-reverse); blue/red - lt. green/red (with auto-reverse) A driver kick, white 28 pin plug, pins 5 - 6 (w/o auto-reverse); passenger window switch, white 12 pin plug, pins 2 - 3 (with auto-reverse)
Left Rear Window (Up/Down) green/red - black/yellow A driver kick, white 28 pin plug, pins 9 - 10
Right Rear Window (Up/Down) blue - blue/yellow A driver kick, white 28 pin plug, pins 3 - 4
Sun Roof (Open/Close) white - blue (function with ignition on only) + sunroof switch, white 5 pin plug, pins 1 - 4
Memory Seat 1 red - driver kick, white 28 pin plug, pin 22
Memory Seat 2 green/white - driver kick, white 28 pin plug, pin 28
Radio 12V blue/red + radio, white 10 pin plug, pin 4
Radio Ground black/blue - radio, white 10 pin plug, pin 7
Radio Ignition yellow/red + radio, white 10 pin plug, pin 3
Radio Illumination violet (parking lights); white (dimmer) +,- radio, white 10 pin plug, pin 10 (parking lights); white 6 pin plug, pin 5 (dimmer)
Power Antenna yellow + radio, white 10 pin plug, pin 8
Left Front Speaker (+/-) red - white or black - green +,- radio, white 10 pin plug, pins 2 - 6
Right Front Speaker (+/-) brown - green or red - white +,- radio, white 10 pin plug, pins 1 - 5
Left Rear Speaker (+/-) white - red or black - white +,- radio, white 6 pin plug, pins 2 - 6
Right Rear Speaker (+/-) green - red +,- radio, white 6 pin plug, pins 1 - 3
Left Front Speaker - With Amp blue/white - green +,- amplifier under driver seat, white 10 pin plug, pins 10 - 4
Right Front Speaker - With Amp blue - pink +,- amplifier under driver seat, white 10 pin plug, pins 3 - 9
Left Front Tweeter - With Amp green/yellow - violet +,- amplifier under driver seat, white 10 pin plug, pins 2 - 6
Right Front Tweeter - With Amp yellow - lt. green +,- amplifier under driver seat, white 10 pin plug, pins 8 - 7
Left Rear Speaker - With Amp green - brown +,- amplifier under driver seat, white 12 pin plug, pins 12 - 5
Right Rear Speaker - With Amp white/red - black/red +,- amplifier under driver seat, white 12 pin plug, pins 10 - 4
Left Rear Tweeter - With Amp white/blue - black/blue +,- amplifier under driver seat, white 12 pin plug, pins 3 - 9
Right Rear Tweeter - With Amp yellow - black +,- amplifier under driver seat, white 12 pin plug, pins 1 - 2
Aux. Audio Input Left (+/-) white - (shield) +,- radio, white 28 pin plug, pins 28 - 27
Aux. Audio Input Right (+/-) black - (shield) +,- radio, white 28 pin plug, pins 26 - 27
Rearview Camera Video black - (shield) +,- radio, white 28 pin plug, pins 12 - 13 or white 5 pin plug, pins 3 - 4
Gary Sather