Hacking How does the Switch test internet connectivity?

OriginalCopycat

Well-Known Member
OP
Newcomer
Joined
Jun 23, 2020
Messages
63
Trophies
0
Age
40
XP
313
Country
United Kingdom
Hi,

I'd like to connect my Switch to my LAN so that I can enable FTP access to it from my PC. I only want LAN access (plus maybe some select online addresses), so I'm going to block all internet access from the Switch using my router's firewall ACL rules. The trouble is that I can't save a networking configuration on the Switch because it fails the Internet Connection test.

Does anybody know exactly what it does in this test (e.g. "It pings 8.8.8.8" or "it connects to https://ninty123.com/test.php")? If I knew that I could allow it to access only that one thing to get the config saved and then be happy it won't talk to anything else. I don't trust DNS solutions - I want to create a set of explicit outbound-allow rules.

Presumably one of you already has the knowledge and could skool me? :teach:

Thanks.
 
Last edited by OriginalCopycat,

Worldblender

Well-Known Member
Member
Joined
May 27, 2019
Messages
264
Trophies
0
Age
24
XP
1,198
Country
United States
  • Like
Reactions: OriginalCopycat

OriginalCopycat

Well-Known Member
OP
Newcomer
Joined
Jun 23, 2020
Messages
63
Trophies
0
Age
40
XP
313
Country
United Kingdom
From https://switchbrew.org/wiki/Network#Others and https://switchbrew.org/wiki/Internet_Browser#WifiWebAuthApplet:

It's basically an enhanced ping test to the domain "ctest.cdn.nintendo.net" (replaces "conntest.nintendowifi.net", is more likely). The response must include the "X-Organization: Nintendo" HTTP header for the response to succeed normally.

Fantastic - thank you :)

for anyone else interested I used the information from Worldblender to find this on Reddit:

The best solution is to run your own ctest server which is very easy to do, and Also using incognito to protect you from accidentally connecting to internet.

I prefer a small linux server running BIND and nginx and just point my switch DNS to that server. I have a firewall chain on my router that selects the MAC address of the switch and drops all non-white listed traffic. You can whitelist specific IP addresses such as switchbru hbloader.

The setup is the most complicated so you may actually learn something if you aren't careful.

Snip of nginx sites-enabled config for ctest:

server {
listen 80;
server_name conntest.nintendowifi.net;
location / {
return 200 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>HTML Page</title></head><body bgcolor="#FFFFFF">This is test.html page</body></html>';
add_header Content-Type text/html;
add_header X-Organization Nintendo;
}
}
server {
listen 80;
server_name ctest.cdn.nintendo.net;
location / {
return 200 'ok';
add_header Content-Type text/plain;
add_header X-Organization Nintendo;
}
}
 
General chit-chat
Help Users
  • kenenthk @ kenenthk:
    Double side tape it to the back problem solved
    Gift
  • Xzi @ Xzi:
    was pretty much out of space on all my other external and internal drives
    Gift
  • kenenthk @ kenenthk:
    I'm not really into huge library collecting so I always have space
    Gift
  • kenenthk @ kenenthk:
    Just having the extra feels better
    Gift
  • Xzi @ Xzi:
    yeah i try not to fill above 75-80%
    Gift
  • Xzi @ Xzi:
    just like a superstitious thing i guess lol
    Gift
  • kenenthk @ kenenthk:
    Just upgraded a 2tb in my ps4 that will probably get filled quick
    Gift
  • kenenthk @ kenenthk:
    And got 128gb in my vita and 3ds that will never get filled
    Gift
  • Xzi @ Xzi:
    got a 1TB external drive connected to my PS5 for PS4 games
    Gift
  • Xzi @ Xzi:
    about 120GB left on the internal SSD
    Gift
  • Xzi @ Xzi:
    and just installed a 512GB SSD with nothing on it yet
    Gift
  • kenenthk @ kenenthk:
    So in other words only 4 games got installed
    Gift
  • Xzi @ Xzi:
    lol
    Gift
  • Xzi @ Xzi:
    PS5 games are actually considerably smaller than PS4 games
    +1
    Gift
  • Xzi @ Xzi:
    better compression/optimization i guess
    Gift
  • kenenthk @ kenenthk:
    But it only has like 4 games :tpi:
    Gift
  • Julie_Pilgrim @ Julie_Pilgrim:
    what is something you can say about console homebrew but also in the bedroom
    Gift
  • kenenthk @ kenenthk:
    Time to transfer files
    Gift
  • Julie_Pilgrim @ Julie_Pilgrim:
    "it was so hard the first time"
    +1
    Gift
  • Julie_Pilgrim @ Julie_Pilgrim:
    "Time to transfer files" bro having sex with robots
    +1
    Gift
  • Julie_Pilgrim @ Julie_Pilgrim:
    honestly knowing ken that isn't that unbelievable
    +1
    Gift
  • Xzi @ Xzi:
    arent many ps5 exclusives it's true, but there are a whole lot of ps4 games that got ps5 upgrades
    Gift
  • Xzi @ Xzi:
    and those have to be stored on one of the SSDs
    Gift
  • Xzi @ Xzi:
    "time to smash the stack"
    Gift
  • kenenthk @ kenenthk:
    Uremum does like to call me dadbot
    Gift
    kenenthk @ kenenthk: Uremum does like to call me dadbot