Posting link to document, will edit post to contain full guide with screenshots later on.
Latest document can be found here: https://zaggy.nl/nextcloud/s/yGW9SinMCoWcNZN
Document copy pasted:
Setting up Wireguard on the Steam Deck - 2022-08-23 – by zaggynl
Why:
For use when you’re on an untrusted network (open wifi network) or if you want to connect to your home network for other reasons such as adblocking and access to private devices.
Requirements:
-A working knowledge of how to use Wireguard
-A Wireguard VPN server set up for use with all firewall rules set up
-Another PC with Linux (to generate keys)
-Preferably a USB-C dock or way to view and control the screen of the steam deck with keyboard and mouse, I used the nomachine software to remotely control the Steam deck.
See this document on how I install and use the nomachine software.
-I recommend setting a PIN on your Steam deck, so others cannot use your VPN connection after powering on your Steam Deck
0.
On the Steam deck, boot into Desktop mode by pressing the STEAM button, Power, ‘Switch to Desktop’.
1.
Once in desktop mode,
press the wireless icon to the left of the date and then the red circled button.
2.
Press the red circled cross.
3.
Fill in a name for the connection at the field marked with a 1, do not use spaces.
On the other PC, generate a private and public key for use in wireguard on the steam deck:
Install the wireguard-tools package through your Linux distribution’s package manager
Run the below commands, note that the shown keys are examples and should not be copy pasted.
mkdir steamdeck_wireguard
cd steamdeck_wireguard
wg genkey | tee privatekey | wg pubkey > publickey
chmod 600 privatekey
cat privatekey
abcdefghijklmnopqrstuvwxyz0123456789=
cat publickey
9876543210zyxwvutsrqponmlkjihgfedcba=
Save the above generated keys in your password manager or elsewhere safely.
Fill in the generated private key in the private key field marked with a 2.
On your Wireguard VPN server, fill in the generated public key for the Steam Deck entry.
Press Peers to continue.
4.
Fill in the public key field with the public key of your Wireguard VPN server.
Set allowed IPs to 0.0.0.0/0
Fill in the WAN IP address or hostname of your Wireguard VPN server
Fill in the port used on your Wireguard VPN server
Press OK
5.
Switch to the IPv4 tab
Change the Method dropdown to Manual
Fill in the DNS server(s) for your Wireguard server
Press Add
Fill in the IP address, Netmask and Gateway settings
Address is an address in the VPN range, Netmask 255.255.255.0, Gateway: 0.0.0.0
Press Save
6.
On the desktop, press the Wireless icon again, the home VPN should be in the list, press Connect, if all is well the Deck should be connected to your Wireguard server.
Verify if the connection is working by opening a browser and visiting a website or pinging an IP address.
Note that after connecting the VPN connection from Desktop Mode and then switching back to Game mode the VPN connection will remain connected.
Note that when powering off your Steam Deck you will have to go back to Desktop Mode to reconnect the VPN connection.
Latest document can be found here: https://zaggy.nl/nextcloud/s/yGW9SinMCoWcNZN
Document copy pasted:
Setting up Wireguard on the Steam Deck - 2022-08-23 – by zaggynl
Why:
For use when you’re on an untrusted network (open wifi network) or if you want to connect to your home network for other reasons such as adblocking and access to private devices.
Requirements:
-A working knowledge of how to use Wireguard
-A Wireguard VPN server set up for use with all firewall rules set up
-Another PC with Linux (to generate keys)
-Preferably a USB-C dock or way to view and control the screen of the steam deck with keyboard and mouse, I used the nomachine software to remotely control the Steam deck.
See this document on how I install and use the nomachine software.
-I recommend setting a PIN on your Steam deck, so others cannot use your VPN connection after powering on your Steam Deck
0.
On the Steam deck, boot into Desktop mode by pressing the STEAM button, Power, ‘Switch to Desktop’.
1.
Once in desktop mode,
press the wireless icon to the left of the date and then the red circled button.
2.
Press the red circled cross.
3.
Fill in a name for the connection at the field marked with a 1, do not use spaces.
On the other PC, generate a private and public key for use in wireguard on the steam deck:
Install the wireguard-tools package through your Linux distribution’s package manager
Run the below commands, note that the shown keys are examples and should not be copy pasted.
mkdir steamdeck_wireguard
cd steamdeck_wireguard
wg genkey | tee privatekey | wg pubkey > publickey
chmod 600 privatekey
cat privatekey
abcdefghijklmnopqrstuvwxyz0123456789=
cat publickey
9876543210zyxwvutsrqponmlkjihgfedcba=
Save the above generated keys in your password manager or elsewhere safely.
Fill in the generated private key in the private key field marked with a 2.
On your Wireguard VPN server, fill in the generated public key for the Steam Deck entry.
Press Peers to continue.
4.
Fill in the public key field with the public key of your Wireguard VPN server.
Set allowed IPs to 0.0.0.0/0
Fill in the WAN IP address or hostname of your Wireguard VPN server
Fill in the port used on your Wireguard VPN server
Press OK
5.
Switch to the IPv4 tab
Change the Method dropdown to Manual
Fill in the DNS server(s) for your Wireguard server
Press Add
Fill in the IP address, Netmask and Gateway settings
Address is an address in the VPN range, Netmask 255.255.255.0, Gateway: 0.0.0.0
Press Save
6.
On the desktop, press the Wireless icon again, the home VPN should be in the list, press Connect, if all is well the Deck should be connected to your Wireguard server.
Verify if the connection is working by opening a browser and visiting a website or pinging an IP address.
Note that after connecting the VPN connection from Desktop Mode and then switching back to Game mode the VPN connection will remain connected.
Note that when powering off your Steam Deck you will have to go back to Desktop Mode to reconnect the VPN connection.
Last edited: