[email protected] wrote:
> While troubleshooting my MultiISP box, I suspect I might have found  
> either a bug or an incompatibility with CentOS 5.2.
> 
> In prog.header (function detect_dynamic_gateway), Shorewall tries to look for:
> 
> /var/lib/dhcp/dhclient-${1}.lease
> 
> However (at least under CentOS 5 - unknown about other OSes), this should be:
> 
> /var/lib/dhclient/dhclient-${1}.leases
> 
> (different path, and "leases" should be plural.)
> 
> 
> After manually correcting this in prog.header, I was now having the  
> following error message:
> 
> Error: an inet prefix is expected rather than "10.0.0.1;".
> ERROR: Command "ip -4 route replace 10.0.0.1; src 10.0.0.239 dev eth2
> table 2" Failed
> 
> Could the issue be the trailing ";" that didn't get stripped?
> 
> Relevant software versions:
> CentOS 5.2
> dhclient-3.0.5-13.el5
> shorewall-4.2.8-2
> shorewall-perl-4.2.8-2
> iproute-2.6.18-7.el5
> 
> dhclient is a default out-of-the-box configuration, hooked to a cablemodem.
> 
> Let me know if you'd like me to also provide you with a copy of the  
> leases file generated by dhclient.

I've given up trying to support dhclient directly from Shorewall --
there are just too many combinations of file/directory names being used
by the various distributions.

4.2.10 will support a findgw extension script which you can customize to
fit whatever your distribution is deciding to do this week.

And you need to pipe gateway through "sed 's/;//'" to get rid of the
extra semicolon.

-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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to