Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtopjian/lxc-nat
Script to handle port forwarding with LXC and NAT
https://github.com/jtopjian/lxc-nat
Last synced: 4 days ago
JSON representation
Script to handle port forwarding with LXC and NAT
- Host: GitHub
- URL: https://github.com/jtopjian/lxc-nat
- Owner: jtopjian
- Created: 2013-12-09T02:53:52.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-09T02:54:16.000Z (almost 11 years ago)
- Last Synced: 2023-03-23T03:01:30.931Z (over 1 year ago)
- Language: Ruby
- Size: 97.7 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## lxc-nat.rb
Simple ruby script to create port-forwarding rules based on a static table.
## Configuration
Create `/etc/lxc/lxc-nat.conf` with rules such as the following:
```
src_ip:port -> lxc_container:port
10.0.0.1:80 -> www:80
10.0.0.1:3306 -> mysql_server:3306
```## TODO
* better cli arg handling
* daemon/event mode