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,236
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
  • K3Nv2 @ K3Nv2:
    Nah pizza hut open at 10:30
  • ZeroT21 @ ZeroT21:
    just buy a stack of pizza and keep the rest you don't need yet frozen
  • K3Nv2 @ K3Nv2:
    Or buy frozen pizza
  • ZeroT21 @ ZeroT21:
    I buy the regular kind, not the frozen stuff
  • ZeroT21 @ ZeroT21:
    supermarket pizza is ass
  • K3Nv2 @ K3Nv2:
    x65 would just yell at me
  • ZeroT21 @ ZeroT21:
    sounds ok, he didn't pull a gun out ,so...
  • K3Nv2 @ K3Nv2:
    $12 large any style pizza deal
  • K3Nv2 @ K3Nv2:
    Each bite is a $1 well spent
  • SylverReZ @ SylverReZ:
    @ZeroT21, Agreed. I hate oven pizza, only from pizza place.
    +1
  • K3Nv2 @ K3Nv2:
    Nah I can still go for totinos
  • RedColoredStars @ RedColoredStars:
    i like totinos party pizzas. lol.
  • RedColoredStars @ RedColoredStars:
    the cracker-like crust is great on those
  • RedColoredStars @ RedColoredStars:
    My neighbor and I are going to make this next month....
  • SylverReZ @ SylverReZ:
    Tiger crust is great.
  • K3Nv2 @ K3Nv2:
    I'm beefing with a neighbor currently each time I ask him for help with something he makes bs excuses then ignores my calls text but seems to randomly speak when I'm done with the project after doing things to help him
  • RedColoredStars @ RedColoredStars:
    DiGiorno Crispy Pan Pizza tasted pretty dang close to Pizza hut pan pizza, but Im not sure if theyve been discontinued or not. Havent seen them locally for a couple of months now.
  • RedColoredStars @ RedColoredStars:
    The croissant crust is still available though, but not quite as good imo.
  • RedColoredStars @ RedColoredStars:
    @SylverReZ Never heard of tiger crust. What is it?
  • SylverReZ @ SylverReZ:
    @RedColoredStars, Its known as tiger bread, also known as dutch crust.
  • Maximumbeans @ Maximumbeans:
    It's fuggin gooooood
    +1
  • RedColoredStars @ RedColoredStars:
    I mean. Whats different about it?
  • RedColoredStars @ RedColoredStars:
    Never even seen a tiger crust pizza in any stores around here. Walmart, Cub, or otherwise.
  • RedColoredStars @ RedColoredStars:
    Must be a regional thing.
    RedColoredStars @ RedColoredStars: Must be a regional thing.