Setup Proxmox With Wireless Interface - My Homelab
This is my documentation on setting up a home lab server with the aim of learning how to provision a server for my learning needs and it will use wireless interface card and use VPN.
Disable Enterprise Subscription Repository
Add pve-no-subscription
repository on /etc/apt/sources.list
|
|
Comment ceph
enterprise repository on /etc/apt/sources.list.d/ceph.list
|
|
Comment pve
enterprise repository on /etc/apt/sources.list.d/pve-enterprice.list
|
|
Do update and upgrade apt
|
|
Wireless Interface Configuration
Go to your router and set static private IP for wifi network go to Network -> LAN Settings
. In my case, I will set started DHCP from 192.168.1.21
so I can set static private IP in range from 192.168.1.2
to 192.168.1.20
. I planned to configure IP list like this:
192.168.1.2
PC192.168.1.3
Laptop192.168.1.4
Homeserver
Then remote your proxmox server and install wireless-tools
|
|
Do a backup of the network interface first
|
|
Configure network interface for wlan on /etc/network/interfaces
|
|
Note:
vmbr0
is VM bridge network interface, so this interface will be use for internal networking between proxmox server and VM. We can assume this interface as a gateway for VM- It will be configure to enable ipv4 forwarding using
wlp3s0
interface to get access on the internet. Please see Proxmox Network Configuration for masquerading (NAT) with ip tables enp0s31f6
is ethernet lan interface, adjust with actual interfacewlp3s0
is wlan interface, adjust with actual interface- Set SSID and PSK security inside the network interface to automatically connect to the WiFi
Configure DNS server on /etc/resolv.conf
|
|
Finally, restart networking with this command systemctl restart networking
and try to ping google.com
to makesure our proxmox server have internet access using WiFi.
You can try to create new VM, I use Ubuntu Server 22.04.4 LTS
iso. And configure network like this:
|
|
Or if you still not have internet access, you can follow the /etc/netplan/00-installer-config.yaml
below.
|
|
VPN Configuration
Before use VPN we can’t access VM directly from our PC / LAPTOP because it have different network. Our device using router network and our VM using VMBridge
network.
I use VPN because I want using WiFi network instead of ethernet LAN cable. VM network is using vmbr0
as their gateway, so it can’t connect to VM directly from PC or LAPTOP outside internal network Proxmox VE. Thats why we need to using VPN to cover the network.
First step, we will register free DDNS (Dynamic Domain Name System). Because I don’t have public IP so to handle that I use DDNS and using the NoIP. Then create a hostname that will be use for VPN later. Makesure the IP/Target is current your IP public.
I recommend using WireGuard
for VPN provider because it is simple installation. We need to install and configure WireGuard VPN on Proxmox Host. You can follow the instruction from this documentation or you can follow this step below. Note: On the client side (PC / LAPTOP) must install the WireGuard
client.
Run this script and follow the assistant.
|
|
Select default gateway ipv4 address using wlan ip 192.168.1.4
|
|
If see this prompt below, you can fill in using registered hostname.
|
|
And select DNS server for the client, I will use Google 8.8.8.8
or 8.8.4.4
.
|
|
Then we will have generated <client_name>.conf
configuration file. The file should be like this. Then copy into a new file on client side and import into WireGuard
client.
|
|
Note: We will configure DDNS and port forwarding on our router first before connecting into VPN.
Go to your router Application -> DDNS
and configure DDNS like this. Fill the username
, password
and hostname
according your NoIP
account.
Then go to Application -> Port Mapping
or it can be Port Forwarding
and configure like this. Public IP is the WireGuard
IP which is on config file, usually if default will be use 10.7.0.2
and default port 51820
. And will be route into our private IP at 192.168.1.4
with the same port.
Because I don’t want allow any traffic outside my port forwarding configuration, I will set range only 51820 to 51820
that means only allow port 51820
from 10.7.0.2
.
Finally, we can connect into our VPN using WireGuard
client. Once connected, we can access our Proxmox server using vmbr0
local VM IP at 192.168.56.1
or directly access our VM via VM bridge at 192.168.56.X
|
|
References
- Proxmox Network Configuration
- [WORKAROUND FOUND] Routing issues probably self-inflicted. Amateur needs help. Only for patient users.
- Proxmox WIFI interface in bridge
- Port forwarding from external to internal isolated LAN
- OpenVPN install on Proxmox LXC - VPN tutorial
- Easiest VPN on Proxmox with WireGuard
- WireGuard Install