Hacking How does the Switch test internet connectivity?

OriginalCopycat

Well-Known Member
OP
Newcomer
Joined
Jun 23, 2020
Messages
97
Trophies
0
Age
43
XP
528
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
326
Trophies
0
Age
27
XP
2,254
Country
United States
  • Like
Reactions: OriginalCopycat

OriginalCopycat

Well-Known Member
OP
Newcomer
Joined
Jun 23, 2020
Messages
97
Trophies
0
Age
43
XP
528
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;
}
}
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
    +1
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
  • BakerMan @ BakerMan:
    Also, no, that was his first time having a seizure, and hopefully the last
    +1
    BakerMan @ BakerMan: Also, no, that was his first time having a seizure, and hopefully the last +1