Hello everyone, I know there are already many threads on this topic, but so far nobody has helped me.
My structure looks as follows:
Rented root server at Hetner with fixed ipv4 and an additionally booked ipv4.
On the Proxmox runs an OPNsense firewall. All VMs hang in the LAN behind the OPNsense, this works also so far.
But my goal is to reach the Proxmoxserver and everything behind it only via VPN. From the outside only those devices should be reachable, which I make reachable via reverse proxy from the outside.
I don't want the Proxmox to communicate over the public IP. It should also route all traffic through the firewall.
all VMs are attached to VMBR1, the OPNsense to VMBR0
How can i turn Proxmox to work like any VM in this network behind the OPNSense?
The VPN is already working, but the Proxmox host is not getting the right route into my home network and is trying to route its traffic through the WAN.
Many thanks in advance
My structure looks as follows:
Rented root server at Hetner with fixed ipv4 and an additionally booked ipv4.
On the Proxmox runs an OPNsense firewall. All VMs hang in the LAN behind the OPNsense, this works also so far.
But my goal is to reach the Proxmoxserver and everything behind it only via VPN. From the outside only those devices should be reachable, which I make reachable via reverse proxy from the outside.
I don't want the Proxmox to communicate over the public IP. It should also route all traffic through the firewall.
Code:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp6s0
iface enp6s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 178.XX.XX.10/26
gateway 178.XX.XX.1
bridge-ports enp6s0
bridge-stp off
bridge-fd 0
bridge_maxwait 0
dns-nameservers 8.8.8.8 4.4.4.4
up route add -net 178.XX.XX.0 netmask 255.255.255.192 gw 178.XX.XX.1 dev enp6s0
#Additional IPv4
up route add -host 178.XX.XX.39 dev vmbr0
#LAN Interface for Proxmox / all VMs / Containers
auto vmbr1
iface vmbr1 inet static
address 10.178.1.2/24
gateway 10.178.1.1
bridge-ports none
bridge-stp off
bridge-fd 0
all VMs are attached to VMBR1, the OPNsense to VMBR0
How can i turn Proxmox to work like any VM in this network behind the OPNSense?
The VPN is already working, but the Proxmox host is not getting the right route into my home network and is trying to route its traffic through the WAN.
Many thanks in advance