On 8/8/2014 7:43 AM, PGNd wrote: > On Fri, Aug 8, 2014, at 07:35 AM, Tom Eastep wrote: >> With what you posted as your original config that worked (after the >> EXT_IF thingy was corrected), compilation actually fails as well because >> you specify tun0 in the interfaces file and tun1 in providers. > > Typos again. Sloppy cut and paste on my part from working notes rather than > actual conifgs. Apologies. > >> I will create a fix for Perl diagnostic. >
The attached patch allows a physical interface name to be specified in the INTERFACE column of the providers file. -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 \________________________________________________
diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm
index 4ad8d85..49d81e4 100644
--- a/Shorewall/Perl/Shorewall/Providers.pm
+++ b/Shorewall/Perl/Shorewall/Providers.pm
@@ -454,7 +454,14 @@ sub process_a_provider( $ ) {
require_capability 'REALM_MATCH', "Configuring multiple providers through one interface", "s";
}
- fatal_error "Unknown Interface ($interface)" unless known_interface( $interface );
+ my $interfaceref = known_interface( $interface );
+
+ fatal_error "Unknown Interface ($interface)" unless $interfaceref;
+ #
+ # Switch to the logical name if a physical name was passed
+ #
+ $interface = $interfaceref->{name};
+
fatal_error "A bridge port ($interface) may not be configured as a provider interface" if port_to_bridge $interface;
my $physical = get_physical $interface;
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
