diff -Nur --no-dereference e-smith-packetfilter-2.6.0.old/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90local_chk50networks e-smith-packetfilter-2.6.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90local_chk50networks --- e-smith-packetfilter-2.6.0.old/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90local_chk50networks 2006-03-15 21:38:35.000000000 -0500 +++ e-smith-packetfilter-2.6.0/root/etc/e-smith/templates/etc/rc.d/init.d/masq/90local_chk50networks 2021-11-15 22:16:10.453000000 -0500 @@ -6,16 +6,13 @@ # Make a new local_chk chain and add any networks found in networks db foreach my $local (@locals) { - # If the network is a remote vpn subnet, restrict it to the ipsec0 + # If the network is a remote vpn subnet, restrict it to the VPN # interface. my ($net, $msk) = split /\//, $local; my $netrec = $nets->get($net); die "Can't find network $net in networks db!\n" unless $netrec; $OUT .= "/sbin/iptables -A \$NEW_local_chk -s $local"; - if (($netrec->prop('remoteVPNSubnet') || 'no') eq 'yes') - { - $OUT .= " --in-interface ipsec0"; - } + $OUT .= " --in-interface " . $netrec->prop('VPNif') if ( $netrec->prop('VPNif') ); $OUT .= " -j ACCEPT\n"; } }