- Play up to 10 Dreamcast consoles on the same internet link when the game requires port opening, like a Lan Party/Events/Expo.
- Get ports open if you are on an ISP or a place that limits this access.
Service Provider of this this tutorial: PureVPN + port fowarding add-on subscription
PureVPN allows opening all ports or a list of 20. It must be chosen on the website after login. They allow 10 simultaneous connections.
Understand VPN Connection Protocols:
https://www.purevpn.com/what-is-vpn/protocols
Configuring Connection Methods:
Choose one:
A) OPENVPN for RaspberryPi
It means the RaspberryPi you use for DC will be connect to the VPN independently. It's not permanent, you choose when to turn it on, that means, only for games that require opening ports.
1- Installing Openvpn ClientXiden wrote:
Ok found the solution. Looks like the repository 'http://raspbian.raspberrypi.org/raspbian stretch Release' got changed.
its now deb http://legacy.raspbian.org/raspbian/ stretch main contrib non-free rpi
Login to your Dreampi:, then type this and hit enter.
Then change the first line toCode: Select all
sudo nano /etc/apt/sources.list
press CTRL + X and then Type Y to saveCode: Select all
deb http://legacy.raspbian.org/raspbian/ stretch main contrib non-free rpi
Update command:Code: Select all
sudo apt update
Code: Select all
sudo apt-get install openvpn
Code: Select all
a) wget https://github.com/scrivanidc/purevpn-portfowarding-for-dreampi/raw/main/home/pi/openvpn/openvpn_purevpn_pf.zip
b) unzip openvpn_purevpn_pf.zip
c) sudo chmod +x *
Code: Select all
sudo nano pass
4- Check the openvpn.sh file, to apply your IP Addressing pattern
Code: Select all
sudo nano openvpn.sh
5- Every time you want to activate the VPN, just run the script below, do it after the RaspberryPi has started to the point of turning on the usb modem lights.
There is 5 openvpn files, so you choose from 1 to 5, they are alternatives:
1 - US Seattle UDP, 2 - US New York UDP, 3 - Canada Toronto TCP, 4 - Belgium Brussel UDP, 5 - Belgium Brussel TCP
Code: Select all
sudo bash openvpn.sh 1
If everything went well you will see results like these:
5- Just go online and check a game that require port opening, like AFO.
B- Alternative method using Windows or modern OpenVPN Client compatible Routers
It means you will install VPN Service Provider windows application and share this connection with your RaspberryPi.
This method opens the possibility to easily use the other connection protocols like TCP, UDP, iKev2, WireGuard as these can be chosen in the Windows application. For example, Starlink don't support PPTP, so you'll need other protocol.
1- Decide how to share the windows connection with your RaspberryPi:
i) Laptop connected to wi-fi and sharing the connection via network cable to the RaspberryPi.
ii) Laptop connected to wi-fi and sharing the connection via wi-fi to RaspberryPi (HotSpot)
iii) Laptop connected using network cable and sharing the connection via network cable to the RaspberryPi. Two ethernet devices required.
2- Let's see option i)
- Install PureVPN Windows software, then connect to a Port Forwarding compatible server. I recommend determining UDP protocol - Now let's see how the VPN connection made looks like [TAP-Windows Adapter V9]: - Now we can share TAP-Windows Adapter V9 (there are other adapters according to the protocol you want), like these: Above you see AFO port opening, so yes, this method demand opening individual ports.
- Then you plug a CAT5e ethernet cable between PC/Laptop and RaspberryPi
- Go online and check it works. I've replicated this scenario as well and it's functional.
3- About the option ii) , the only difference will be that you will enable a completely new wifi network as if your computer were a wireless router (HotSpot), only old machines tend not to support this functionality. This Wi-Fi network created should be used on the RaspberryPi.
There is a ready-made guide for this, please check the attached PDF file.
4- The option iii) are the same instructions as the first i) , with the difference that you need to have two network cards, one to establish a connection to the computer and the other to share with the RaspberryPi. This one will be for hardcore users.
Mango GL-MT300N-V2 Portable Mini Travel Wireless Pocket VPN Router:
This is an example of Router support OpenVPN Client, that means you can configure your VPN with PureVPN OpenVPN files, a modern method compared to PPTP. The other concepts are the same as PPTP Router method.
Each VPN Service Provider will have their own OpenVPN configuration files to be downloaded.
UPDATE 2024/02/21
# PPTP Deprecated - does not have Port Fowarding anymore#
A) PPTP for RaspberryPi
It means the RaspberryPi you use for DC will be connect to the VPN independently. It's not permanent, you choose when to turn it on, that means, only for games that require opening ports.
1- Installing pptp-client
Code: Select all
sudo apt-get install pptp-linux
Code: Select all
sudo nano /etc/ppp/peers/purevpn
$VPNHOSTNAME > change to your server address/country, like us.pointtoserver.com or ukl1.pointtoserver.com
$USERNAME > change to your VPN Service Provider username
$PASSWORD > change to your VPN Service Provider password
Code: Select all
pty "pptp $VPNHOSTNAME --nolaunchpppd --debug"
name $USERNAME
password $PASSWORD
remotename PPTP
require-mppe-128
require-mschap-v2
refuse-eap
refuse-pap
refuse-chap
refuse-mschap
noauth
debug
persist
maxfail 0
defaultroute
replacedefaultroute
usepeerdns
Code: Select all
sudo nano pptp.sh
Code: Select all
#!/bin/bash
sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
sleep 2
sudo pon purevpn
sleep 10
sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
sleep 3
sudo iptables -t nat -A PREROUTING -i ppp0 -j DNAT --to-destination 192.168.15.98
sleep 1
File permission
Code: Select all
sudo chmod +x pptp.sh
Code: Select all
sudo ./pptp.sh
If everything went well you will see results like these:
Code: Select all
ifconfig
Code: Select all
sudo curl ipinfo.io
B) PPTP for most regular Routers:
It means every device connected to this Router will be using the VPN and is pretty simple to configure. You also need to put Dremcast IP into DMZ Section.
1- It must receive an RJ45 internet cable on the WAN physical port. This router can be isolated on your network without impacting other devices.
2- Open your Router configuration page and look for WAN settings, same place where Dynamic IP is normally defined and choose the PPTP connection option: 3- Just need to set the simple fields:
-Your VPN Service Provider username, password, server address, then Save and you should be connected. 4- Connect the RaspberryPi to this Router and go online normally.