Raspberry Pi 3b+ can't connect to outside internet

When I try and use my Raspberry Pi 3b+ as an exit node I don’t see an error or anything on the pi. But the second I try and connect to it from my phone or laptop it doesn’t allow me to connect to the internet. I checked that the pi is connected to the internet as well as my laptop and phone.