From 64fd558c76edf7a9f3005bcd6aeb15d797aaf6db Mon Sep 17 00:00:00 2001 From: Ken Barber <ken@bob.sh> Date: Mon, 20 Jun 2011 23:30:01 +0100 Subject: [PATCH] Small example for MASQUERADE. --- README.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.markdown b/README.markdown index 15c640c..bb390a6 100644 --- a/README.markdown +++ b/README.markdown @@ -37,6 +37,17 @@ Deny all: jump => "DENY", } +Source NAT example (perfect for a virtualization host): + + firewall { '100 snat for network foo2': + chain => 'POSTROUTING', + jump => 'MASQUERADE', + proto => 'all', + outiface => "eth0", + source => ['10.1.2.0/24'], + table => 'nat', + } + ### Supported firewalls Currently we support: -- 2.45.2