Securing / Hardening The PinePhone
#1
I'd love to know what people are doing as far as security tweaks for the pinephone. Not that I need anything like CalyxOS or Graphene type of phone, but I'd like to put a little VPN on it as it can only be used for a pocket linux. I don't have the skill set to really work on the phone like others, but maybe one day I will.
#2
I haven't done much, but I put some iptables rules on mine as a bare minimum.
#3
(11-24-2020, 06:59 PM)NobodyNew1 Wrote: I'd love to know what people are doing as far as security tweaks for the pinephone. Not that I need anything like CalyxOS or Graphene type of phone, but I'd like to put a little VPN on it as it can only be used for a pocket linux. I don't have the skill set to really work on the phone like others, but maybe one day I will.


You could take a look at Firejail, application sandboxing (in case of vulnerability prevents access outside program need).
On Mobian I have Firetools, Firejail configuration Wizard and it loads for easy configuration of programs you want to safely sandbox.

I use ssh to make Pinephone administration/commandline tasks from the computer quick/convenient. To make it more secure/inaccessible to outsiders I made my Pinephone ssh server Tor hidden service .onion access only https://forum.pine64.org/showthread.php?tid=11925
- RTP

"In the beginner's mind there are many possibilities, in the expert's mind there are few." -Shunryu Suzuki


[ Pinephone Original | Pinetab v1 / v2 Enjoyer ]


Linux Device Privacy / Security Playlist



#4
The Mobian wiki has a security page that covers most of the above and more. No mention of Wireguard on there yet - I suppose I should try it and see if it works.
https://wiki.mobian-project.org/doku.php?id=security
#5
@wibble Wireguard works perfectly out of the box. You can enable a systemd service using configuration files.
#6
The most important thing to me is to have full disk encryption. As of today IIRC only PostmarketOS includes it out of the box and Mobian using some scripting as well.
My two cents.

Enviado desde mi ONEPLUS A5010 mediante Tapatalk
#7
(11-26-2020, 02:19 PM)RTP Wrote:
(11-24-2020, 06:59 PM)NobodyNew1 Wrote: I'd love to know what people are doing as far as security tweaks for the pinephone. Not that I need anything like CalyxOS or Graphene type of phone, but I'd like to put a little VPN on it as it can only be used for a pocket linux. I don't have the skill set to really work on the phone like others, but maybe one day I will.


You could take a look at Firejail, application sandboxing (in case of vulnerability prevents access outside program need).
On Mobian I have Firetools, Firejail configuration Wizard and it loads for easy configuration of programs you want to safely sandbox.

I use ssh to make Pinephone administration/commandline tasks from the computer quick/convenient. To make it more secure/inaccessible to outsiders I made my Pinephone ssh server Tor hidden service .onion access only https://forum.pine64.org/showthread.php?tid=11925
That's amazing !! I'll look into all of that.
#8
Another good thing to do is set your ssh port to something nonstandard and only permit key-based logins. In /etc/ssh/sshd_config:

Code:
Port 12345
PasswordAuthentication no
PubkeyAuthentication yes


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I record video on a Pinephone? kk22 23 19,077 03-25-2026, 12:55 PM
Last Post: baptx
  Pinephone visibly losing power while plugged in Hiraghm 8 5,887 03-09-2026, 07:51 PM
Last Post: Tia Vaughan
  pinephone-support package not upgradable on Mobian fhireman 5 6,310 02-28-2026, 05:49 PM
Last Post: baptx
  beep - playing PCM samples on PinePhone? WhiteHexagon 0 628 12-04-2025, 08:07 AM
Last Post: WhiteHexagon
Star Selling my Pinephone Pro Explorer Edition zheyon 2 3,683 12-01-2025, 10:25 AM
Last Post: Kevin Kofler
  PinePhone sensors - Gyroscope power WhiteHexagon 3 1,135 11-30-2025, 08:07 AM
Last Post: WhiteHexagon
  Light Sensor / Proximity Sensor on PinePhone? WhiteHexagon 1 906 11-18-2025, 03:07 PM
Last Post: WhiteHexagon
  Pinephone boot. Richy_T 8 5,671 10-21-2025, 12:12 PM
Last Post: Richy_T
  Does PinePhone support long-term battery health optimization? roseblack 5 2,254 10-06-2025, 09:05 PM
Last Post: Kevin Kofler
  iso pinephone for sale (USA) elwoodb25 0 4,245 09-24-2025, 09:25 PM
Last Post: elwoodb25

Forum Jump:


Users browsing this thread: 1 Guest(s)