Dio recounts how the philosopher proposed dealing with, um, animal urges.
Dio Chrysostom, The Sixth Oration: On Diogenes or Tyranny (16-20)
“On behalf of that very thing which men make the most effort and waste the most money—through which many cities have been overturned and for whose sake many people have perished pitiably—for [Diogenes] this was the easiest and cheapest thing. For he didn’t have to go anywhere for sexual satisfaction, since, as he used to joke, Aphrodite was near him everywhere, and for free. He used to say that the poets slandered the goddess because of their own lack of control when they called her “all golden”. Since many did not believe this, he proved it out in the open while everyone was watching. And he used to say that if people did this, then Troy would not have fallen, nor would have Priam, the Phrygian king of the line of Zeus, bled out on Zeus’ altar.
He added that the Achaeans were so witless as to imagine that even corpses needed women and so slaughtered Polyxena on the tomb of Achilles. So he used to explain that fish proved themselves to be almost more prudent than men—for whenever they needed to expel their seed, the went out and rubbed up against something with friction. Diogenes was amazed at the unwillingness of men to spend money to have their foot, hand, or any other part of the body rubbed, and how the very rich would not waste even a drachma on this. But they [all] lavished many a talent on that single member often and that some even still endangered their lives too.
He used to joke that this kind of intercourse was Pan’s discovery: when he was lusting after Echo but couldn’t overtake her, he was wondering in the mountains night and day until that point when Hermes taught him how to do this, because he pitied his helplessness and he was his son. And, after he learned this, he got a break from his great suffering. Apparently, shepherds learned this from him.”
ὑπὲρ οὗ δὲ πλεῖστα μὲν πράγματα ἔχουσιν ἄνθρωποι πλεῖστα δὲ χρήματα ἀναλίσκουσι, πολλαὶ δὲ ἀνάστατοι πόλεις διὰ ταῦτα γεγόνασι, πολλὰ δὲ ἔθνη τούτων ἕνεκεν οἰκτρῶς ἀπόλωλεν, ἁπάντων ἐκείνῳ χρημάτων ἀπονώτατον ἦν καὶ ἀδαπανώτατον. οὐ γὰρ ἔδει αὐτὸν οὐδαμόσε ἐλθεῖν ἀφροδισίων ἕνεκεν, ἀλλὰ παίζων ἔλεγεν ἁπανταχοῦ παρεῖναι αὐτῷ τὴν Ἀφροδίτην προῖκα· τοὺς δὲ ποιητὰς καταψεύδεσθαι τῆς θεοῦ διὰ τὴν αὑτῶν ἀκρασίαν, πολύχρυσον καλοῦντας. ἐπεὶ δὲ πολλοὶ τοῦτο ἠπίστουν, ἐν τῷ φανερῷ ἐχρῆτο καὶ πάντων ὁρώντων· καὶ ἔλεγεν ὡς εἴπερ οἱ ἄνθρωποι οὕτως εἶχον, οὐκ ἂν ἑάλω ποτὲ ἡ Τροία, οὐδ᾿ ἂν ὁ Πρίαμος ὁ Φρυγῶν βασιλεύς, ἀπὸ Διὸς γεγονώς, ἐπὶ τῷ βωμῷ τοῦ Διὸς ἐσφάγη. τοὺς δὲ Ἀχαιοὺς οὕτως εἶναι ἄφρονας ὥστε καὶ τοὺς νεκροὺς νομίζειν προσδεῖσθαι γυναικῶν καὶ τὴν Πολυξένην σφάττειν ἐπὶ τῷ τάφῳ τοῦ Ἀχιλλέως. ἔφη δὲ τοὺς ἰχθύας σχεδόν τι φρονιμωτέρους φαίνεσθαι τῶν ἀνθρώπων· ὅταν γὰρ δέωνται τὸ σπέρμα ἀποβαλεῖν, ἰόντας ἔξω προσκνᾶσθαι πρός τι τραχύ. θαυμάζειν δὲ τῶν ἀνθρώπων τὸ τὸν μὲν πόδα μὴ θέλειν ἀργυρίου κνᾶσθαι μηδὲ τὴν χεῖρα μηδὲ ἄλλο μηδὲν τοῦ σώματος, μηδὲ τοὺς πάνυ πλουσίους ἀναλῶσαι ἂν μηδεμίαν ὑπὲρ τούτου δραχμήν· ἓν δὲ ἐκεῖνο τὸ μέρος πολλάκις πολλῶν ταλάντων, τοὺς δέ τινας ἤδη καὶ τὴν ψυχὴν παραβαλλομένους. ἔλεγε δὲ παίζων τὴν συνουσίαν ταύτην εὕρεμα εἶναι τοῦ Πανός, ὅτε τῆς Ἠχοῦς ἐρασθεὶς οὐκ ἐδύνατο λαβεῖν, ἀλλ᾿ ἐπλανᾶτο ἐν τοῖς ὄρεσι νύκτα καὶ ἡμέραν, τότε οὖν τὸν Ἑρμῆν διδάξαι αὐτόν, οἰκτείραντα τῆς ἀπορίας, ἅτε υἱὸν αὐτοῦ. καὶ τόν, ἐπεὶ ἔμαθε, παύσασθαι τῆς πολλῆς ταλαιπωρίας· ἀπ᾿ ἐκείνου δὲ τοὺς ποιμένας χρῆσθαι μαθόντας.