-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update README.md Docker Commands and default udp port #55
Conversation
Fixed Docker Commands not lining up with the .env.example
Reduces confusion of ports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for raising all these! It seems there were indeed issues with the README. Added some notes. Could you also please bump the version in package.json from 1.4.2 to 1.4.3 please?
Also sorry for the late review, initially the diff showed full files instead of just a few lines changed, and then got carried away with other stuff.
.env.example
Outdated
@@ -36,7 +36,7 @@ NORAY_UDP_RELAY_TIMEOUT=30s | |||
NORAY_UDP_RELAY_CLEANUP_INTERVAL=30s | |||
|
|||
# Port where noray listens for UDP relay requests from hosts | |||
NORAY_UDP_REGISTRAR_PORT=8809 | |||
NORAY_UDP_REGISTRAR_PORT=8890 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change? The default registrar port is 8809 as can be seen here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea behind the change was to use the same port number as TCP to avoid having varying protocol ports open across different ports. Made it for me just easier to be aware of which ports are actually open and not feel like "wasting" any ports. I didn't get too deep into the code when I made that change to see there is a default option set, in hindsight that makes a lot of sense.
README.md
Outdated
@@ -75,14 +75,16 @@ Build and run docker: | |||
|
|||
``` | |||
docker build . -t noray | |||
docker run -p 8090:8090 -p 8091:8091 --env-file=.env -t noray | |||
docker run -p 8890:8890 -p 8890:8890/udp -p 8091:8091 --env-file=.env -t noray |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on default config, noray listens on 8890 TCP for commands, 8891 UDP for registrar, and 8891 HTTP for exposing metrics.
docker run -p 8890:8890 -p 8890:8890/udp -p 8091:8091 --env-file=.env -t noray | |
docker run -p 8890:8890 -p 8891:8891/udp -p 8891:8891 --env-file=.env -t noray |
README.md
Outdated
``` | ||
|
||
Or run prebuilt docker: | ||
``` | ||
docker run -p 8090:8090 -p 8091:8091 --env-file=.env -t ghcr.io/foxssake/noray:main | ||
docker run -p 8890:8890 -p 8890:8890/udp -p 8091:8891 --env-file=.env -t ghcr.io/foxssake/noray:main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
docker run -p 8890:8890 -p 8890:8890/udp -p 8091:8891 --env-file=.env -t ghcr.io/foxssake/noray:main | |
docker run -p 8890:8890 -p 8891:8891/udp -p 8891:8891 --env-file=.env -t ghcr.io/foxssake/noray:main |
README.md
Outdated
``` | ||
|
||
_Please Note: This configuration will only allow NAT Punching but no port forwarding. Make sure to add `-p 49152-51200:49152-51200/udp` to allow all default udp relay ports. Beware! This will increase the deploy time severely!_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to call it relaying, just to stay consistent with the existing docs.
_Please Note: This configuration will only allow NAT Punching but no port forwarding. Make sure to add `-p 49152-51200:49152-51200/udp` to allow all default udp relay ports. Beware! This will increase the deploy time severely!_ | |
_Please Note: This configuration will only allow NAT punchthrough but no relaying. Make sure to add `-p 49152-51200:49152-51200/udp` to allow all default udp relay ports. Beware! This will increase the deploy time severely!_ |
PR looks good, I plan to add some finishing touches and merge. I've run into some weird issue locally where the connection doesn't go through for some reason ( as opposed to the tomfol.io instance ). Will merge once I figure that out. |
Thanks for the PR @Mondanzo, merged! |
Fixed Docker Commands not lining up with the .env.example
📓 Description
Updates the readme with appropiate docker commands for port forwarding.
☑️ Checklist
🔗 Related issues
foxssake/netfox#218