Port mit pfctl in OS X El Capitan öffnen - Eingehende Verbindungen aus dem Internet zulassen

Port mit pfctl in OS X El Capitan öffnen - Eingehende Verbindungen aus dem Internet zulassen

Ich hatte Probleme mit einer Art Konfiguration, die ich mit meinem Mac Mini durchführe. Ich habe meinen Rechner auf die DMZ meines Netzwerks eingestellt, sodass jede Anfrage an meine öffentliche IP auf diesem Rechner endet.

Das Problem besteht darin, dass ich nichts aus dem Internet abrufen kann, wenn die Firewall aktiviert ist. Ich habe es mit dieser Konfiguration mit PFCTL versucht:

rdr pass on lo0 inet proto tcp from any to any port = 8080 -> 127.0.0.1 port 8080
rdr pass on en0 inet proto tcp from any to 192.168.1.100 port = 8080 -> localhost port 8080
#rdr pass on en0 inet proto tcp to port 8080 -> 127.0.0.1 port 8080

rdr pass on en0 inet proto tcp from any to any port = 5000 -> localhost port 5000

#rdr pass on en0 inet proto tcp from any to any port 8080 -> 127.0.0.1 port 8080

#rdr pass on en0 inet proto tcp from any to 192.168.1.100 port = 8080 -> 127.0.0.1 port 8080
#rdr pass on lo0 inet proto tcp from any to 192.168.1.100 port = 8080 -> 127.0.0.1 port 8080

Dies funktioniert lokal,

curl http://localhost:8080 
curl http://127.0.0.1:8080

Dies funktioniert auch, wenn die FIREWALL nicht aktiviert ist:

curl http://mypublicip:8080

Aber fallsIch aktiviere einfach meine Firewall, funktioniert die gleiche Anfrage nicht mehr, was zu einem Timeout führt.

Konnte das jemand lösen? Könnten Sie mir bitte helfen?

Danke

verwandte Informationen