On 7/3/2015 9:00 AM, Tom Eastep wrote:
> On 7/2/2015 9:54 AM, Eddie wrote:
>> On 7/1/2015 8:47 PM, Tom Eastep wrote:
>>> On 7/1/2015 11:12 AM, Eddie wrote:
>>>> OK, I see now what it's trying to do.  :-(
>>>>
>>>> But this only fails when the script is run by OpenVPN.  Running the same
>>>> script on a command line works.
>>> Okay -- the problem is that the PATH setting when you execute
>>> /usr/sbin/shorewall doesn't include the directory containing lsmod. I
>>> can release a fix that adopts the setting of PATH from
>>> /etc/shorewall/shorewall.conf in the compiler when it isn't being
>>> executed to generate an exported script. But in the meantime, if you
>>> modify your script to set PATH properly, that will work around your issue.
>>>
>>> -Tom
>> I added this ahead of the call to shorewall:
>>
>> PATH=/sbin:$PATH
>>
>> Verified it by echo'ing PATH to a file.  But it still fails with the
>> same error.
> Please apply the attached patch to the Shorewall Config.pm module and
> see if that corrects the problem.
>
>         patch /path/to/Shorewall/Config.pm < PATH.patch
>
> Thanks,
> -Tom

Works perfectly.  Thank you.

Cheers.


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to