0

I am trying to figure out how to list ports forwarded by LXD through lxc network forward.

I have 2 NIC configured as :

ip a result

I configured network forward ports that way :

lxc network commands

My configuration works quite well and I can access my webserver from the outside :

curl success result

The problem is here : I want to know what ports are opened using this method without using lxd commande (I'm looking for a linux way to list them).

I already tried with netstat, lsof and iptables but nothing seem to let me see the port 8080 that is actually giving me the content I'm looking for :

netstat -ltnuop result

iptables -t nat -L -n result

lsof -i result

0 Answers0