Skip to content
A simple script to simplify port forward for LXC or LXD containers.
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
lxd-forward
lxd.png

README.md

lxd-forward

A simple script to simplify port forward for LXC or LXD containers.

https://www.ubuntu.com/containers/lxd

Download

wget https://raw.githubusercontent.com/jorgeluiztaioque/lxd-forward/master/lxd-forward
chmod +x lxd-forward

Usage

./lxd-forward

Usage: lxd-forward
  list
  add [ip_version v4/v6] [tcp/udp] [container] [port] [host port]
  del [ip_version v4/v6] [rule_number]

  Example:
  list
  add v4 [tcp/udp] ubuntu 80 80
  add v6 [tcp/udp] ubuntu 80 80
  del v4 1
  del v6 1"
You can’t perform that action at this time.