Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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