From e1de1f052729cc8c213dbceb587688c0fa7aad09 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 15 Oct 2016 12:43:42 -0700 Subject: [PATCH] Convert Sample masq files to equivalent snat files Signed-off-by: Tom Eastep --- Shorewall/Samples/three-interfaces/masq | 19 ------------------- Shorewall/Samples/three-interfaces/snat | 21 +++++++++++++++++++++ Shorewall/Samples/two-interfaces/masq | 19 ------------------- Shorewall/Samples/two-interfaces/snat | 21 +++++++++++++++++++++ 4 files changed, 42 insertions(+), 38 deletions(-) delete mode 100644 Shorewall/Samples/three-interfaces/masq create mode 100644 Shorewall/Samples/three-interfaces/snat delete mode 100644 Shorewall/Samples/two-interfaces/masq create mode 100644 Shorewall/Samples/two-interfaces/snat diff --git a/Shorewall/Samples/three-interfaces/masq b/Shorewall/Samples/three-interfaces/masq deleted file mode 100644 index a015b4f40..000000000 --- a/Shorewall/Samples/three-interfaces/masq +++ /dev/null @@ -1,19 +0,0 @@ -# -# Shorewall - Sample Masq file for three-interface configuration. -# Copyright (C) 2006-2015 by the Shorewall Team -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# See the file README.txt for further details. -#------------------------------------------------------------------------------ -# For information about entries in this file, type "man shorewall-masq" -################################################################################################################ -#INTERFACE:DEST SOURCE ADDRESS PROTO PORT(S) IPSEC MARK USER/ SWITCH ORIGINAL -# GROUP DEST -eth0 10.0.0.0/8,\ - 169.254.0.0/16,\ - 172.16.0.0/12,\ - 192.168.0.0/16 diff --git a/Shorewall/Samples/three-interfaces/snat b/Shorewall/Samples/three-interfaces/snat new file mode 100644 index 000000000..12d2b524c --- /dev/null +++ b/Shorewall/Samples/three-interfaces/snat @@ -0,0 +1,21 @@ +# +# Shorewall - Sample SNAT/Masqueradee File for three-interface configuration. +# Copyright (C) 2006-2016 by the Shorewall Team +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# See the file README.txt for further details. +#------------------------------------------------------------------------------ +# For information about entries in this file, type "man shorewall-snat" +################################################################################################################### +#ACTION SOURCE DEST PROTO PORT IPSEC MARK USER SWITCH ORIGDEST PROBABILITY +# +# Rules generated from masq file /home/teastep/shorewall/trunk/Shorewall/Samples/three-interfaces/masq by Shorewall 5.0.13-RC1 - Sat Oct 15 11:43:47 PDT 2016 +# +MASQUERADE 10.0.0.0/8,\ + 169.254.0.0/16,\ + 172.16.0.0/12,\ + 192.168.0.0/16 eth0 diff --git a/Shorewall/Samples/two-interfaces/masq b/Shorewall/Samples/two-interfaces/masq deleted file mode 100644 index c9fb0b774..000000000 --- a/Shorewall/Samples/two-interfaces/masq +++ /dev/null @@ -1,19 +0,0 @@ -# -# Shorewall - Sample Masq file for two-interface configuration. -# Copyright (C) 2006-2015 by the Shorewall Team -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# See the file README.txt for further details. -#------------------------------------------------------------------------------ -# For information about entries in this file, type "man shorewall-masq" -################################################################################################################ -#INTERFACE:DEST SOURCE ADDRESS PROTO PORT(S) IPSEC MARK USER/ SWITCH ORIGINAL -# GROUP DEST -eth0 10.0.0.0/8,\ - 169.254.0.0/16,\ - 172.16.0.0/12,\ - 192.168.0.0/16 diff --git a/Shorewall/Samples/two-interfaces/snat b/Shorewall/Samples/two-interfaces/snat new file mode 100644 index 000000000..d11827570 --- /dev/null +++ b/Shorewall/Samples/two-interfaces/snat @@ -0,0 +1,21 @@ +# +# Shorewall - Sample SNAT/Masqueradee File for two-interface configuration. +# Copyright (C) 2006-2016 by the Shorewall Team +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# See the file README.txt for further details. +#------------------------------------------------------------------------------ +# For information about entries in this file, type "man shorewall-snat" +################################################################################################################### +#ACTION SOURCE DEST PROTO PORT IPSEC MARK USER SWITCH ORIGDEST PROBABILITY +# +# Rules generated from masq file /home/teastep/shorewall/trunk/Shorewall/Samples/two-interfaces/masq by Shorewall 5.0.13-RC1 - Sat Oct 15 11:41:40 PDT 2016 +# +MASQUERADE 10.0.0.0/8,\ + 169.254.0.0/16,\ + 172.16.0.0/12,\ + 192.168.0.0/16 eth0