Until recently, I worked with Proxmox VMs on hetzner dedicated server via masquerading, but now I needed direct access to the VM and I ordered an additional ip. And can't set it up
additional ip is 148.*.*.13/27
Here is my config with what I have already tried
used data from these sources:
1. https://community.hetzner.com/tutor...ure-proxmox_ve#step-2---network-configuration
2. https://pve.proxmox.com/wiki/Network_Configuration
additional ip is 148.*.*.13/27
Here is my config with what I have already tried
Code:
***Generated automatically***
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp4s0
iface enp4s0 inet static
address 148.*.*.4/27
gateway 148.*.*.1
post-up echo 1 > /proc/sys/net/ipv4/ip_forward #two strings from guides
post-up echo 1 > /proc/sys/net/ipv4/conf/enp4s0/proxy_arp #
up route add -net 148.*.*.0 netmask 255.255.255.224 gw 148.*.*.1 dev enp4s0
# route 148.*.*.0/27 via 148.*.*.1
iface eth0 inet manual
***Generated automatically***
auto vmbr0
iface vmbr0 inet static
address 192.*.*.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 148.*.*.4/27
bridge-ports none
bridge-stp off
bridge-fd 0
hwaddress 00:50:56:00:A1:49
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.*.*.0/24' -o enp4s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.*.*.0/24' -o enp4s0 -j MASQUERADE
***and a lot of nat rules***
used data from these sources:
1. https://community.hetzner.com/tutor...ure-proxmox_ve#step-2---network-configuration
2. https://pve.proxmox.com/wiki/Network_Configuration
Last edited: