firewall-init: firewall.d/ipv4/nat - kosher masquerade example

baggins baggins at pld-linux.org
Tue Dec 29 22:32:29 CET 2009


Author: baggins                      Date: Tue Dec 29 21:32:29 2009 GMT
Module: firewall-init                 Tag: HEAD
---- Log message:
- kosher masquerade example

---- Files affected:
firewall-init/firewall.d/ipv4:
   nat (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: firewall-init/firewall.d/ipv4/nat
diff -u firewall-init/firewall.d/ipv4/nat:1.7 firewall-init/firewall.d/ipv4/nat:1.8
--- firewall-init/firewall.d/ipv4/nat:1.7	Tue Dec 29 22:19:36 2009
+++ firewall-init/firewall.d/ipv4/nat	Tue Dec 29 22:32:24 2009
@@ -16,10 +16,11 @@
 
 ipv4_nat_POSTROUTING_rules()
 {
-#	Masquerade example
+	# Masquerade examples
 #	$iptables -t nat -A POSTROUTING -o $OUTSIDE_IF -j MASQUERADE
-#
-#	Destination on the same network example
+#	$iptables -t nat -A POSTROUTING -o $OUTSIDE_IF -j SNAT --to-source 192.168.1.1
+
+	# Destination on the same network example
 #	$iptables -t nat -A POSTROUTING -d 192.168.1.1 -s 192.168.1.0/24 \
 #	          -p tcp --dport 80 -j SNAT --to 192.168.1.250
 	return
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/firewall-init/firewall.d/ipv4/nat?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list