Linux

ZeroTier VPN to work with…

Linux

Mount Ubuntu 16.04 | 17.10 | 18.04 NFS Shares on Windows 10 Client | Website for Students Install NFS Server and Client on Ubuntu 18.04 LTS

sudo apt-get install nfs-kernel-server

nano /etc/exports
   /var/www 192.168.192.240/24(rw,sync,no_root_squash,no_subtree_check)

exportfs -a
service nfs-kernel-server start

ufw allow from 192.168.192.240/24 to any port nfs

Windows

mount 192.168.192.207:/var/www x:\

da bi bio RW mora: https://mjawaid.wordpress.com/2018/07/04/mounting-nfs-share-on-windows-10-with-write-access/ na 0 (kao root)


The modern VPN

Setup ZeroTier

Setup Zerotier for Full Tunnel Mode

PUB_IP=195.201.218.57; iptables -t nat -A POSTROUTING -s 192.168.192.0/16 ! -d 192.168.192.0/16 -j SNAT --to $PUB_IP

# This is not permanent so do you need somehow to make it permanent?

This is working

Getting Started with Software-Defined Networking and Creating a VPN with ZeroTier One | DigitalOcean Helpful: Overriding Default Route / Full Tunnel Mode - ZeroTier Knowledgebase - Confluence Interesting: https://solmu.org/pub/memo/zerotier.txt

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT

# ip link show
# sudo iptables -A FORWARD -i zt0 -o eth0 -j ACCEPT
iptables -A FORWARD -i ztrfyco5cl -o eth0 -j ACCEPT

On Windows

Enable: “Allow Default Route”

date 28. Aug 2019 | modified 17. Jan 2023
filename: Smart Home » ZeroTier VPN