Dogs will naturally protect you if you create the appropriate relationship

All dogs will guard and protect if they believe they are in a strong pack with a strong leader. You do not have to teach them how to guard, they already know.