The gun runner has a foot in both camps;he sells arms to both the Arabs and the Israelis.
to have it both ways; to keep a foot in both camps
The only way to make sure of one's own gain in an argument is to have a foot in both camps.
have/keep a foot in both camps