<div dir="ltr">The Sefer Hachinuch (Mitzvah 241) explains the prohibition of lo sikom as follows (my rough translation):<div><br><div>"A person should understand in his heart that everything that happens to him good or bad is caused by Hashem and between people there is nothing but the will of Hashem. Therefore when someone bothers or hurts you, you should know that your sins caused this and whatever happened is a gezera from Hashem. Therefore, you should not think about taking revenge because the other person is not the cause of your troubles, rather your sins are the cause. "</div><div><br></div><div>Based on the Chinuch's explanation there should be no difference between taking revenge on a Jew or a Goy. In either case they are not the cause of your suffering they are just the instrument of Hashem and therefore there is no reason for revenge.<br><div><br></div><div><br></div><div><br></div></div></div></div>