I have proxmox running on a root server. Server has 2 public IPs. First IP is the proxmox host. Second IP is CT wit OPENvpn running.
Now i want two create one LAMP-CT. It should be reached by public Domain. For That i created one MASQUERADE vmbr1.
So far everything is working. Now I want to get the LAMP-CT reached py public.
I am totally lost how to do that and can't find any clue on the internet. Do I need resolve DNS like BIND9? ... Anyone a hint, so that I can go on searching?
Here is my /etc/network/interfaces to show my network setup
Now i want two create one LAMP-CT. It should be reached by public Domain. For That i created one MASQUERADE vmbr1.
So far everything is working. Now I want to get the LAMP-CT reached py public.
I am totally lost how to do that and can't find any clue on the internet. Do I need resolve DNS like BIND9? ... Anyone a hint, so that I can go on searching?
Here is my /etc/network/interfaces to show my network setup
Bash:
auto lo
iface lo inet loopback
auto ens3
iface ens3 inet static
address PUPLICIP_1
netmask 255.255.252.0
gateway GATEWAY
pointopoint GATEWAY
auto vmbr0
iface vmbr0 inet static
address PUPLICIP_1
netmask 255.255.252.0
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_maxwait 0
up ip route add PUPLICIP_2/32 dev vmbr0
auto vmbr1
iface vmbr1 inet static
address 10.1.7.1
netmask 255.255.255.0
network 10.1.7.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.1.7.0/24' -o ens3 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.1.7.0/24' -o ens3 -j MASQUERADE
Last edited: