Commit Graph

51 Commits

Author SHA1 Message Date
Matthew Lopez
6f7453a173
Set up Docker publish to GHCR 2023-12-16 14:51:10 -05:00
Matthew Lopez
2968519411
Add detailed usage instructions to the readme 2023-12-15 22:49:48 -05:00
Matthew Lopez
1d253796b1
Set up the mitmproxy config as a symlink
This allows the mitmproxy configuration directory to be saved as a Docker volume so that its certificates are not regenerated every time the container is run. If the config file is directly included in the volume, then new changes to it will not be copied over during the image build because the volume mount (which is using the old config version) overwrites the whole directory. Using a symlink allows modifying the config without modifying anything in the configuration directory.
2023-12-15 22:16:52 -05:00
Matthew Lopez
d1f48199ba
Create Docker image build action 2023-12-15 16:40:20 -05:00
Matthew Lopez
bfb5d01353
Reconfigure mitmproxy for Docker 2023-12-15 16:25:56 -05:00
Matthew Lopez
a44495f59c
Merge branch 'reverse-proxy'
* reverse-proxy:
  Also disable insecure SSL settings
  Configuration updates for HTTP/2 and caching
  Add support for rverse redirection
  Also redirect nintendowifi.net for 3DS
  Replace request host header instead of host
  Update addon script to work with reverse proxy
  Set up reverse proxy config
2023-12-15 16:03:56 -05:00
Matthew Lopez
33fde8aee2
Use recommended apt order 2023-12-14 20:43:27 -05:00
Matthew Lopez
d2affc3f8b
Update Dockerfile to be functional 2023-12-14 19:05:35 -05:00
Matthew Lopez
d427939dd4
Create WIP mitmproxy-pretendo Dockerfile
It doesn't quite work yet.
2023-12-14 19:26:53 +00:00
Matthew Lopez
2269085e70
Also disable insecure SSL settings 2022-08-29 18:09:56 -04:00
Matthew Lopez
13a4b54eb0
Configuration updates for HTTP/2 and caching
This removes the anticache option because the server behind the reverse proxy can control caching, and it also disables the somewhat buggy and unnecessary HTTP/2 support.
2022-08-28 23:41:55 -04:00
Matthew Lopez
a884ccec30
Add support for rverse redirection 2022-07-22 23:34:51 -04:00
Matthew Lopez
802eb15c4d
Also redirect nintendowifi.net for 3DS 2022-07-21 21:25:31 -04:00
Matthew Lopez
26764b4d1c
Replace request host header instead of host 2022-07-20 22:08:06 -04:00
Matthew Lopez
c4120b7781
Update addon script to work with reverse proxy
Use `pretty_host` instead of `host` because `pretty_host` takes the HTTP host header into account, not just the destination.
2022-07-20 21:11:46 -04:00
Matthew Lopez
29aa07cf4e
Set up reverse proxy config
This reverse proxy listens on port 8888 and forwards all traffic to a local server running on port 81. TCP ports 80 and 443 should be forwarded to port 8888. This local server should be running a reverse proxy like nginx that will proxy requests based on the host header.
2022-07-20 21:09:52 -04:00
Matthew Lopez
675754d68c
Delete setup-pretendo.sh 2022-06-28 19:10:51 -04:00
Matthew Lopez
6d16a7ae21
Add instructions for compiling OpenSSL
This is necessary for distributions that install OpenSSL 3.x.x by default, which is too new for connecting to Nintendo's servers.
2022-06-28 19:10:38 -04:00
Matthew Lopez
bd676b372b
Revert changes to pretendo_addon.py
It's better to use an actual reverse proxy like nginx instead of using mitmproxy.
2022-06-22 20:32:14 -04:00
Matthew Lopez
183df7c0b1
Add section on replacing certificates 2022-06-22 20:25:34 -04:00
Matthew Lopez
07e5000822
Remove outdated known issues section 2022-06-22 20:14:30 -04:00
Matthew Lopez
43c33d777e
Use new Pretendo SSL patch repo 2022-06-22 20:13:44 -04:00
Matthew Lopez
3c09da628d
Remove unneeded comments and options from config 2022-06-22 20:10:36 -04:00
Matthew Lopez
5d58cce58d
Simplify client certificates 2022-06-22 20:03:46 -04:00
Matthew Lopez
5c12c7f756
Add client certificates needed for eshop 2022-06-22 18:46:52 -04:00
Matthew Lopez
1d7b14daf8
mitmproxy 8.0 updates
Recent versions of mitmproxy deprecated these options or made them unnecessary.
2022-06-18 21:23:46 -04:00
Matthew Lopez
6f506b8cbc
I forgot to remove the test code
*facepalm*
Also, I improved the formatting a little.
2021-12-05 10:31:43 -05:00
Matthew Lopez
1f4c0a1b09
Fix a string type error 2021-12-03 16:49:16 -05:00
Matthew Lopez
36cf683207
Add the MarioKart 7 and 8 repositories 2021-11-24 15:23:38 -05:00
Matthew Lopez
9254076deb
Add the Wii U Chat repositories 2021-11-24 15:20:44 -05:00
Matthew Lopez
0e745461df
Use a loop for cloning the repositories 2021-11-24 15:18:04 -05:00
Matthew Lopez
a4aef308dd
Update the client certificates
Downloaded from https://github.com/larsenv/NintendoCerts
2021-09-02 11:58:17 -04:00
Matthew Lopez
3870d96628
Make the setup script executable 2021-09-02 11:28:13 -04:00
Matthew Lopez
1d7b2609e8
Creat a simple Pretendo Network setup script
This creates a script for setting up the Pretendo network servers. Currently, it only downloads several relevant Git repositories and Go libraries and organizes them.
I plan to continue working on this script so it will be able to fully set up and configure all of the servers.
2021-09-01 20:20:49 -04:00
Matthew Lopez
c0821b546e
Change the account server to listen on port 8080
This makes more sense than listening on port 7070 because the account server is the most important.
2021-09-01 16:38:00 -04:00
Matthew Lopez
c2d40776dd
Fix angle brackets in the readme 2021-08-30 20:04:37 -04:00
Matthew Lopez
62d47316b8
Update some usage information in the readme 2021-08-30 20:01:00 -04:00
Matthew Lopez
827f6a0af6
Allow redirecting traffic from multiple servers in the addon
This replaces the simple "nintendo.net => pretendo.cc" substitution with a customized redirection for each Pretendo server.

This is necessary for several reasons:
 - The Grove server expects `eshop.pretendo.cc`, not `geisha-wup`...
 - Each server must be run on a different port. The port numbers must be configured manually for each Pretendo server.
2021-08-30 19:43:26 -04:00
Matthew Lopez
9b6da24512
Format the Pretendo addon script 2021-08-30 19:29:24 -04:00
Matthew Lopez
e89e6e8a62
Update the launch script to prevent quoting issues 2021-08-30 19:27:01 -04:00
Matthew Lopez
cb4067e55a
Reformat the configuration file 2021-08-30 19:15:17 -04:00
Matthew Lopez
da9cd28a92
Update and simplify the config file
This greatly simplifies the config.yaml file by removing unnecessary default settings. It also contains some of my settings for convenience, some issue workarounds, and comments that better explain the purpose of each setting.
2021-08-30 17:07:21 -04:00
Matthew Lopez
267506f059
Update and simplify gitignore 2021-08-30 17:03:04 -04:00
Matthew Lopez
bfcf28dc31
Add issues that I experienced into the readme
This adds some issues that I faced into the "Known Issues" section of the readme. The solution for the client certificate failure is from the readme of superwhiskers/mitmproxy-nintendo, but it was removed in the Pretendo fork.
2021-08-30 16:21:08 -04:00
Jonathan Barrow
2ea8c0f3b6 Added known issues to readme 2021-03-08 18:05:47 -05:00
Jonathan Barrow
8ff089765c Update readme.md 2021-03-07 21:28:11 -05:00
Jonathan Barrow
fbfaa98852 Create pretendo_addon.py
Added Pretendo addon for easier redirection to Pretendo servers
2021-03-07 19:28:29 -05:00
Jonathan Barrow
72cc52bda5 Added WiiU certificates 2021-03-07 17:17:48 -05:00
Jonathan Barrow
b0e9e5491e Update .gitignore
Updated the gitignore to add python ignores
2021-03-07 17:12:22 -05:00
Jonathan Barrow
233092986e Moved gitignore
gitignore was in the wrong folder making it not get read correctly
2021-03-07 17:11:43 -05:00