-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 10/27/2016 11:06 AM, Tom Eastep wrote:
> On 10/27/2016 04:06 AM, Steven Jan Springl wrote:
>> Tom
>
>> Masq file entry:
>
>> +INLINE(eth20,vif1) vif1 9.1.9.1
>
>
>> Is converted to snat file entry:
>
>> SNAT+(9.1.9.1) vif1 INLINE(eth20,vif1)
>
>> Which produces the following error message:
>
>> ERROR: Unknown interface (INLINE(eth20) /etc/shorewall200/snat
>> (line 34)
>
>
> Yes -- I was hoping to not have to support INLINE in the snat
> file. I'll work on a fix...
>
Hmmm -- turns out that +INLINE doesn't work correctly in the MASQ
file. This corrects that issue as well as the translation problem.
- -Tom
- --
Tom Eastep \ When I die, I want to go like my Grandfather who
Shoreline, \ died peacefully in his sleep. Not screaming like
Washington, USA \ all of the passengers in his car
http://shorewall.net \________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org
iQIcBAEBCAAGBQJYEkx+AAoJEJbms/JCOk0QzHEP/2bN/vgzYqyG8dlGt4tMPjgA
qNeAAO/mw9OaBEEbcI/Nfp+Zsl88tp1Dl9CQN2T1dDCZAzYRnvdbNId2VRvfbB1W
ajSIB+qlpEMYon/izlbpvxF9CBUMIdEcRUPpPpCcZ0YXe29OCrxosIUTRVOOkzUb
J3G03qgahwfjAiHR3vtrtcnHQtRybcJ204Mi5OATuCFhCWQLhyslij0FuRugCPxj
YwwRp50cW+EyjvAq5Q6Ctt0UjM50Em3hmnXobjmsZc/Q4Dj2XlTnYlqeoYL5yUNw
lHS1fqow+UZvStfTOvZvPpJt8d+PyZBiU3aCDy69/D1C7TmTKrTaSF0oQa91ppd4
fCTVpE5HhVfcqlYcOkE3LL75kij/dW5yD04ya1Wfx6sz4EgtN4yDx+TsDD9KgflS
ZGOUHmf/6KN94JEdU6o8llkH5lp7ZJnJGCAXVOzKZWd4WUqRjC83YpzfFpVOfOno
9akFdOver7w5GSqZkuw58+ykrA8+zdR5gz97Ua9Z9nGxUdhMYylLOtmfNFiNVvGR
iMCnaEi0qP43PwqsJVTj67rMZkwzF8nRsDzC2LvJpQNuQsNbtQc8ZNrlGqiHbFwB
Q3VTKwTs/CQZjbamucmanf/ppKh9ZDDsrfY2/60rpfSjOr88NSqD34O8vEP8Z3YT
i/7jRtGo3waZn3k2lvHt
=C+1F
-----END PGP SIGNATURE-----
diff --git a/Shorewall/Perl/Shorewall/Nat.pm b/Shorewall/Perl/Shorewall/Nat.pm
index c4867ed..11e965a 100644
--- a/Shorewall/Perl/Shorewall/Nat.pm
+++ b/Shorewall/Perl/Shorewall/Nat.pm
@@ -80,8 +80,8 @@ sub process_one_masq1( $$$$$$$$$$$$ )
#
# Check for INLINE
#
- if ( $interfacelist =~ /^INLINE\((.+)\)$/ ) {
- $interfacelist = $1;
+ if ( $interfacelist =~ /^(\+)?INLINE\((.+)\)$/ ) {
+ $interfacelist = ( $1 || '' ) . $2;
$inlinematches = get_inline_matches(0);
} else {
$inlinematches = get_inline_matches(0);
------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel