Yes, the -c works for me (also file inclusion with ". $(find_file 
params-dns) "  is ok).

Thanks Roberto!


PS: Perhaps one of the shorewall developer could correct the usage line  
1280 in
https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk/Shorewall-common/shorewall
 
to include the -c option, currently

    echo "Usage: $(basename $0) [debug|trace] [nolock] [ -q ] [ -v ] [ 
-t ] <command>"

It seems that this option is applicable to all commands but I'm not sure 
about that.

Apart from that "shorewall version" does not want to show the version 
when /etc/shorewall does not exist, which is a little unexpected. You 
have to use
# /sbin/shorewall -c /etc/shorewall/passive version
3.2.6


> On Wed, Aug 29, 2007 at 09:34:51AM +0200, DI Roman Fiedler wrote:
>   
>> Hi everyone,
>>
>> I'm trying to setup a host with two shorewall configs,
>> /etc/shorewall/active and /etc/shorewall/passive
>>
>> When I call
>>   /sbin/shorewall check /etc/shorewall/active
>> I get
>>   /etc/shorewall/shorewall.conf does not exist!
>>
>> The same for:
>>   /sbin/shorewall -vv restart /etc/shorewall/active
>>   /etc/shorewall/shorewall.conf does not exist!
>>
>> When I do a
>>   export CONFIG_PATH=/etc/shorewall/active
>> before invoking  /sbin/shorewall check /etc/shorewall/active it works.
>> [EMAIL PROTECTED]
>> Did I make some kind of operating error? Has someone already used this,
>> tested this?
>>
>>     
> shorewall(8) says:
>   -c directory
>
>      Look for configuration files in directory instead of /etc/shorewall.
>
> Regards,
>
> -Roberto
>
>   
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Shorewall-users mailing list
> Shorewall-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/shorewall-users
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to