PiVPN on the same RPi as klipper and mainsailos (3d printer)

Basic Information:

Printer Model: Ender 3
MCU / Printerboard: SKR Mini e3 v2.0

Hello all,

First of all, i am newbie in this type of installation.

I wanted to install PiVPN to access remotely my 3D printer. My hardware setup is one raspberrypi 4 8gb connected via usb to printer, and rpi is connected via WiFi to my router Tp-Link TL-WR940N (router is connected to my modem (bridge) from my ISP because modem is locked by them, and i cant access to do anything).

PiVPN has been installed many, many times by me, with some changes in installation procces, but everytime i cant access my vpn to connect my printer. I wanted to install vpn because when i am away home, i can check if printer prints correctly by my webcam. One or two years ago i just did port forwarding, but it is not good and safe solution.

When I turn on my VPN on my phone (Wireguard), I have no internet connection.

I did :

pivpn -d

everything is OK…

Only 2 things are not correct (imo). When i type:

cat /etc/pivpn/wireguard/setupVars.conf

my IPv4dev is IPv4dev=wlan0 (or wlan1, i do not remember), there should be IPv4dev=eth0 ?

And second thing. When i did “Packet capture”( by this pivpn troubleshooting site ), no packets reach my Rpi:

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes

At the end, all the time i installed this pivpn ON pi@mainsailos:~ $, should i install this in elsewhere ?

I do not want Octoewerywhere, tailscale etc.

Most likely this is the wrong place to ask, unless someone here is familiar with PiVPN.

Further, it seems that piVPN is not trivial WRT general admin knowledge on network interfaces, IP addresses, port forwarding etc.

Maybe also FAQ - docs.pivpn.io could be applicable, but this then would rather be a question for GitHub - mainsail-crew/MainsailOS: This Raspberry Pi distribution for managing Klipper 3D printers with Mainsail provides all you need.