On 10/10/2013 4:47 AM, Nuno Fernandes wrote:
> Hello,
> 
>  
> 
> I'm using shorewall-4.5.16 with centos5. The dhclient stores the lease
> information on the /var/lib/dhclient/dhclient-<DEVICE>.leases file.
> 
>  
> 
> The /var/lib/shorewall/firewall script has the function
> detect_dynamic_gateway that detects the gateway based on the leases
> file. The code in the function is:
> 
>  
> 
> detect_dynamic_gateway() { # $1 = interface
> 
> local interface
> 
> interface=$1
> 
> local GATEWAYS
> 
> GATEWAYS=
> 
> local gateway
> 
>  
> 
> gateway=$(run_findgw_exit $1);
> 

The entire purpose of the findgw extension script is to allow for
different locations and filenames for these files.

-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 \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to