Skip to content

Instantly share code, notes, and snippets.

@tommyvdv
Last active March 6, 2019 10:32
Show Gist options
  • Save tommyvdv/080545f76cc992bab6ae13c070479da5 to your computer and use it in GitHub Desktop.
Save tommyvdv/080545f76cc992bab6ae13c070479da5 to your computer and use it in GitHub Desktop.
osx port 80
Port 80 happens to close every reboot.
Opening it should work using these. It is however quite unclear why my setup closes it (and others don't.
$ cat /etc/pf.conf
# Allow access to port 80
pass in proto tcp from any to any port 80
$ sudo pfctl -F all
No ALTQ support in kernel
ALTQ related functions disabled
rules cleared
nat cleared
dummynet cleared
0 tables deleted.
0 states cleared
source tracking entries cleared
pf: statistics cleared
pf: interface flags reset
@tommyvdv
Copy link
Author

tommyvdv commented Mar 6, 2019

I might want to create a file, load it from pf.conf and turn this into a reusable solution.
Also, why does the port close at every boot?
Or am I imagining this and is there some other criterium that causes this. We'll find out @ next reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment