In relation to people who are not part of your family, the dog can be quite negatively disposed of and consider them your threat, from which he must protect you. Therefore, from an early age, you need to teach him to communicate with other people in a friendly way. He is rude and frustrated, at the moment of your dissatisfaction, in no case is it unacceptable in relation to the dog, he can remember his insult for a long time.