MatthewL246 / pretendo-docker

An unofficial Docker Compose setup for self-hosting a Pretendo Network server.
https://matthewl246.github.io/pretendo-docker/
GNU Affero General Public License v3.0
54 stars 9 forks source link

Alternate Patches #86

Closed SoftModems closed 5 months ago

SoftModems commented 5 months ago

hi, its me again. I was wondering if you can compile a patch for external users. I have my Wii U on the same LAN as my server and i want to have friends from WAN to join, but i cant seem to compile another patch on a different ip (the public ip). is this possible?

MatthewL246 commented 5 months ago

Hi, it sounds like you're misunderstanding how the server redirection works. Inkay replaces URLs like account.nintendo.net with account.pretendo.cc, and the custom build of Inkay just changes the SSL certificate that it accepts. The part that actually redirects requests to your local server is the proxy, so you need your friends to connect to your proxy server. By default, mitmproxy blocks IPs outside your LAN for safety reasons because bad actors will abuse open proxies on the Internet to send spam and attacks.

You can disable this by editing the command line of mitmproxy-pretendo in compose.yml, add --set block_global=false to the end. I strongly recommend also setting a username and password for your proxy by adding --set proxyauth="username:password" (but choose a better username and password of course!) to prevent bad actors from abusing your proxy server. You'll just need to inform everyone else what the username and password need to be when they set up the proxy in the console's Internet settings.

SoftModems commented 5 months ago

once again, you save the day. Thank you so much, I am sorry for my lack of knowledge in this sort of thing, i'm just a cpp dev haha and I don't know much about these things.

SoftModems commented 5 months ago

Wait sorry I'm dumb, where is the command line for mitmproxy-pretendo? (ー_ーゞ

MatthewL246 commented 5 months ago

No problem, it's on this line.

SoftModems commented 5 months ago

ah alright thanks again haha

SoftModems commented 5 months ago

YAYYY it works tysmm