Hi. I hope there's someone who can spot something probably obvious to them, but which I keep missing for days and is keeping me from even getting to the actual task at hand.
We use LXC containers for our Jira system. In order to test updates to it, I set out to duplicate the container and create a testing environment. I used Backup + Restore features of Proxmox to restore a copy of the original Jira container into a new one (with an ID one more than the current highest). Before booting up the container, I changed only two things:
The original Jira instance responds to SSH and HTTP connections, but I can't seem to reach this one with anything. Eventually I figured out I can login to it with "/usr/sbin/pct enter <containerID>", but all looks in order. Here's the output of a few commands ran on that newly spun up container:
ifconfig
netstat -atpn
ip route
SSH works just fine locally, but it can't be connected to externally, even from the server hosting Proxmox itself:
nc -nv 5.196.200.97 22
ping 5.196.200.97 -c 5 -w 30
So after everything seeming in order, why can I not connect to the container whatsoever, with it behaving as if it's not even there/fully filtered?
Hope the information I provided was enough and thanks in advance
We use LXC containers for our Jira system. In order to test updates to it, I set out to duplicate the container and create a testing environment. I used Backup + Restore features of Proxmox to restore a copy of the original Jira container into a new one (with an ID one more than the current highest). Before booting up the container, I changed only two things:
- Modified the MAC address to end in different (arbitrary decided) characters, such as xx:xx:xx:b0:f3:49
- Incremented the IP address by one, resulting in an IP of 5.196.200.97/32
The original Jira instance responds to SSH and HTTP connections, but I can't seem to reach this one with anything. Eventually I figured out I can login to it with "/usr/sbin/pct enter <containerID>", but all looks in order. Here's the output of a few commands ran on that newly spun up container:
ifconfig
Code:
eth0 Link encap:Ethernet HWaddr 02:00:00:b0:f3:49
inet addr:5.196.200.97 Bcast:5.196.200.97 Mask:255.255.255.255
inet6 addr: fe80::ff:feb0:f349/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5445792 errors:0 dropped:0 overruns:0 frame:0
TX packets:158765 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:344426991 (344.4 MB) TX bytes:6668442 (6.6 MB)
netstat -atpn
Code:
tcp 0 0 127.0.0.1:17123 0.0.0.0:* LISTEN 528/python
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 89/rpcbind
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 263/nginx -g daemon
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 11071/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 507/master
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 263/nginx -g daemon
tcp 0 0 127.0.0.1:8126 0.0.0.0:* LISTEN 527/trace-agent
tcp 0 0 127.0.0.1:55942 127.0.0.1:17123 TIME_WAIT -
tcp 0 0 127.0.0.1:17123 127.0.0.1:56044 ESTABLISHED 528/python
tcp 0 0 127.0.0.1:54992 127.0.0.1:17123 TIME_WAIT -
tcp 0 0 127.0.0.1:55558 127.0.0.1:17123 TIME_WAIT -
tcp 0 0 127.0.0.1:55600 127.0.0.1:17123 TIME_WAIT -
tcp 0 0 127.0.0.1:55602 127.0.0.1:17123 TIME_WAIT -
tcp 0 0 127.0.0.1:17123 127.0.0.1:56078 ESTABLISHED 528/python
tcp 0 0 127.0.0.1:55382 127.0.0.1:17123 TIME_WAIT -
tcp 0 0 127.0.0.1:55842 127.0.0.1:17123 TIME_WAIT -
tcp 0 0 127.0.0.1:54792 127.0.0.1:17123 TIME_WAIT -
tcp 0 0 127.0.0.1:56078 127.0.0.1:17123 ESTABLISHED 529/python
tcp 0 0 127.0.0.1:56044 127.0.0.1:17123 ESTABLISHED 532/python
tcp 0 0 127.0.0.1:54970 127.0.0.1:17123 TIME_WAIT -
tcp 0 0 127.0.0.1:54910 127.0.0.1:17123 TIME_WAIT -
tcp6 0 0 ::1:17123 :::* LISTEN 528/python
tcp6 0 0 127.0.0.1:8005 :::* LISTEN 380/java
tcp6 0 0 :::111 :::* LISTEN 89/rpcbind
tcp6 0 0 :::8080 :::* LISTEN 380/java
tcp6 0 0 :::22 :::* LISTEN 11071/sshd
tcp6 0 0 :::25 :::* LISTEN 507/master
ip route
Code:
default via 37.187.173.254 dev eth0
37.187.173.254 dev eth0 scope link
SSH works just fine locally, but it can't be connected to externally, even from the server hosting Proxmox itself:
nc -nv 5.196.200.97 22
Code:
nc: timeout while connecting to 5.196.200.97 22
nc: unable to connect to address 5.196.200.97, service 22
ping 5.196.200.97 -c 5 -w 30
Code:
PING 5.196.200.97 (5.196.200.97) 56(84) bytes of data.
--- 5.196.200.97 ping statistics ---
30 packets transmitted, 0 received, 100% packet loss, time 29231ms
So after everything seeming in order, why can I not connect to the container whatsoever, with it behaving as if it's not even there/fully filtered?
Hope the information I provided was enough and thanks in advance