Different scenarios I know affect this your question:
a) Container has public IP assigned
b) Container has own LAN IP
c) Container has no own NIC and IP (shares host one)
d) ?

In scenarios A and B the answer is no.
In scenario B take care ports are forwarded through gw/wan router to
that IP.


Narcis Garcia

__________
I'm using this dedicated address because personal addresses aren't
masked enough at this mail public archive. Public archive administrator
should fix this against automated addresses collectors.
El 20/3/20 a les 14:08, Ray Jender ha escrit:
> No.  I access the container using a subdomain (amsc1.mydomain.us).  The host
> VPS is doing port forwarding of ports 80/443, forwarding to another
> container
> that is hosting HAproxy.  HAproxy redirects to the container hosting the
> application based on the subdomain portion of the URL (amsc1).
> 
> My app basically works,  but disconnects after 10-15 secs.  This has been a
> known issue of the app having access to udp ports 5000-65000 which I have
> opened, but it
> has not resolved the disconnect issue.  That's why I am wondering if these
> ports need to be opened on the host VPS also? 
> Thanks,
> 
> Ray
> -----Original Message-----
> From: Tomasz Chmielewski [mailto:man...@wpkg.org] 
> Sent: Friday, March 20, 2020 8:17 AM
> To: LXC users mailing-list <lxc-users@lists.linuxcontainers.org>
> Cc: Ray Jender <ray...@yahoo.com>
> Subject: Re: [lxc-users] Quick Question
> 
> On 2020-03-20 21:07, Ray Jender wrote:
>> So if I have an LXD container hosting an application that requires 
>> some specific ports be open,  must those same ports be opened on the 
>> host OS?
>>
>> For example, I need udp ports 5000-65000 open in the container.  Must 
>> I also open these ports on the host?
> 
> Does the container have a dedicated, public IP?
> 
> Tomasz Chmielewski
> https://lxadm.com
> 
> _______________________________________________
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> 
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to