which IP do I use for apps?

Nanja

New Member
Feb 6, 2023
17
0
1
This is my current setup in /etc/network/interfaces
Code:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto enp130s0f1
iface enp130s0f1 inet static
        address 170.39.***.***/23
        gateway 170.39.***.1
        dns-nameservers 1.1.1.1
        dns-search ****.com
# dns-* options are implemented by the resolvconf package, if installed

auto eno1

iface eno1 inet manual

iface eno2 inet manual

iface eno3 inet manual

iface eno4 inet manual

iface enp130s0f0 inet manual

auto vmbr0
#private sub network
iface vmbr0 inet static
        address  10.10.10.1/24
        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.10.10.0/24' -o enp130s0f1 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o enp130s0f1 -j MASQUERADE

I have this network setup on a container for a Plex Server

Code:
    IP: 10.10.10.2
    Subnet: 255.255.255.0
    Gateway: 10.10.10.1
    DNS: 8.8.8.8
Which ip am I supposed to assign to a server for web, plex, game, etc..
Would it be 10.10.10.2 for my current container for plex or would it be my public ip address on this container?
Whichever one it is, I am confused as to what to do next, because I have tried both IP's?
I have checked and debian firewall is not on, does proxmox firewall have something to do with it?
 
Hello,

all your VMs and container should get an IP address in your private network 10.10.10.0/24 with gateway 10.10.10.1 - so any IP between 10.10.10.2 and 10.10.10.254 should work. I guess you don't have a local DNS server, so you can stick to public DNS servers like 8.8.8.8, 8.8.4.4, 1.1.1.1 or anything that you prefer. Then your machines can access the internet.

Kind regards,
Benedikt