tai271828 / lxd-forward

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"

About

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

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%