lxc-nat-py:用于设置 iptables 以转发到 LXC 容器的 Python 脚本

时间:2021-06-08 00:22:17
【文件属性】:
文件名称:lxc-nat-py:用于设置 iptables 以转发到 LXC 容器的 Python 脚本
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-08 00:22:17
Python lxc-nat-py 用于根据 YAML 文件中的转发器配置设置 iptables 以转发到 LXC 容器的 Python 脚本。 基于引用的以下 ruby​​ 脚本 我拿了那些并制作了一个python版本,我喜欢python。 当没有文件名传递给--conf ,使用./nat-conf.yml 。 用法 usage: lxc-nat.py [-h] [-v] [-F] [--dry-run] [-c CONF] optional arguments: -h, --help show this help message and exit -v, --verbose show the iptables commands that are run -F, --flush flush and dele
【文件预览】:
lxc-nat-py-master
----lxc_nat()
--------__init__.py(6KB)
--------__main__.py(1KB)
----scripts()
--------lxc-nat.py(1KB)
----requirements.txt(13B)
----doc()
--------nat-conf.yml.example(402B)
----LICENSE(1KB)
----setup.py(642B)
----README.md(1KB)
----.gitignore(762B)

网友评论