VPN für komplettes Heimnetz mit Proxmox, wie?

Cryptic

Member
Feb 7, 2021
15
0
6
39
Hallo zusammen,
ich habe mir auf einem alten Office PC Proxmox installiert, und es laufen auch einige CTs (AdGuard, Jellyfin,Nextcloud) schon auf diesem und auch eine VM(OMV).

Was mich jetzt aber interessiert ist, wie bekomme ich es hin das mein kpl. Traffic aus meinem Heimnetz also jedes Smartphone, Smart TV, Rechner usw. über eine VPN ins Internet gehen. Ich habe einen Account bei Perfect Privacy.

Im Netz habe ich schon gesucht und auch bei Youtube aber leider finde ich nicht das was ich brauche. Alles was ich nur finde sind Tutorials wie ich von außen per VPN auf meine VMs komme aber das brauche ich erstmal nicht.

Wäre super wenn ihr mir bei meinem Problem weiterhelfen könntet.
 
hi.

Was mich jetzt aber interessiert ist, wie bekomme ich es hin das mein kpl. Traffic aus meinem Heimnetz also jedes Smartphone, Smart TV, Rechner usw. über eine VPN ins Internet gehen. Ich habe einen Account bei Perfect Privacy.

du brauchst dann z.b. eine VM die als gateway funktioniert.
koenntest eine linux VM einsetzen, die mit deiner VPN provider verbindung hat. danach mit iptables kannst du deine traffic aus dem netzwerk weiterleiten.

zum beispiel:
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -o tun0 -i eth0 -s 192.168.1.0/24 -m conntrack --ctstate NEW -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE
 
Ist das die IP vom Router oder die von der Linux Maschiene?
das waere die CIDR von deiner heimnetzwerk (-s steht fuer "source", -i input interface und -o output interface bzw. VPN interface in dem fall)
 
  • Like
Reactions: Cryptic
Du könntest dir auch mal Router Betriebssysteme wie OPNsense, pfsense, openwrt und Co angucken. Oft haben die auch Plugins für VPN Clients und können dir dann als Gateway/DHCP/DNS/Proxy/Firewall/... dienen und alles über den VPN Tunnel routen.
 
  • Like
Reactions: Cryptic and oguz

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!