Skip to content

lxc port forwarding doesn't work #1292

Answered by AkihiroSuda
onsails asked this question in Q&A
Discussion options

You must be logged in to vote

Unsupported, as the port forward detection is currently hardcoded for CNI

// This regex can detect a line in the iptables added by portmap to do the
// forwarding. The following two are examples of lines (notice that one has the
// destination IP and the other does not):
//
// -A CNI-DN-2e2f8d5b91929ef9fc152 -d 127.0.0.1/32 -p tcp -m tcp --dport 8081 -j DNAT --to-destination 10.4.0.7:80
// -A CNI-DN-04579c7bb67f4c3f6cca0 -p tcp -m tcp --dport 8082 -j DNAT --to-destination 10.4.0.10:80
//
// The -A on the front is to amend the rule that was already created. portmap
// ensu…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by onsails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants