Update README.md Docker Commands and default udp port#55
Update README.md Docker Commands and default udp port#55elementbound merged 11 commits intofoxssake:mainfrom
Conversation
Fixed Docker Commands not lining up with the .env.example
Reduces confusion of ports.
elementbound
left a comment
There was a problem hiding this comment.
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
|
|
||
| # 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.
Why this change? The default registrar port is 8809 as can be seen here.
There was a problem hiding this comment.
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
| ``` | ||
| 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.
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.
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
| docker run -p 8890:8890 -p 8890:8890/udp -p 8091:8891 --env-file=.env -t ghcr.io/foxssake/noray:main | ||
| ``` | ||
|
|
||
| _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.
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