[arm-allstar] UFW start on boot
Jim Darrough
jim at ki7ay.com
Sat May 12 13:11:04 EST 2018
Hello.
Rory and I figured out how to start UFW when the RPi boots.
add the following two lines to /etc/rc.local BEFORE exit 0:
#!/bin/sh
/usr/sbin/ufw enable
We also added
/usr/sbin/ufw logging off
This solved our problem. UFW automatically starts after a reboot,
including a power-down restart.
73 Jim KI7AY
On 05/12/2018 10:25 AM, Rory Bowers wrote:
> That takes me back to my original question. I would like to run UFW;
> it is easily manageable, seems to work good and is user friendly. The
> problem is, when I reboot the Pi UFW doesn't restart. There must be a
> way in configuration to tell UFW to "enable" on startup. Anybody know
> how?
> Thanks Guys!!
> Rory, K5CKS
>
> On Sat, May 12, 2018 at 8:30 AM, Jim Darrough <jim at ki7ay.com
> <mailto:jim at ki7ay.com>> wrote:
>
> Doug and Rory.
>
> UFW is not the pre-installed firewall in the asterisk system, and
> I think when Rory changed the allstar.env file, the caused the RPi
> to load the asterisk firewall, which was never configured, and
> which locked down the system.
>
> That make any sense, Doug/
>
> 73 Jim KI7AY
>
> On 05/11/2018 06:48 PM, Rory Bowers wrote:
>> This didn't work... what it did do was lock me out of the Pi.
>> ---------- Forwarded message ----------
>> From: *"Doug Crompton via arm-allstar"* <arm-allstar at hamvoip.org
>> <mailto:arm-allstar at hamvoip.org>>
>> Date: Fri, May 11, 2018 at 3:28 PM
>> Subject: Re: [arm-allstar] UFW start on boot
>> To: ARM Allstar <arm-allstar at hamvoip.org
>> <mailto:arm-allstar at hamvoip.org>>
>> Cc: Doug Crompton <wa3dsp at gmail.com <mailto:wa3dsp at gmail.com>>
>>
>>
>> In /usr/local/etc/allstar.env change the firewall setting from
>> disabled to
>> enabled. This is NOT necessary if you are on a private LAN and
>> using a
>> router.
>>
>>
>> *73 Doug*
>>
>> *WA3DSP*
>>
>> *http://www.crompton.com/hamradio
>> <http://www.crompton.com/hamradio>
>> <http://www.crompton.com/hamradio
>> <http://www.crompton.com/hamradio>>*
>>
>>
>> On Fri, May 11, 2018 at 4:24 PM, "Rory Bowers via arm-allstar" <
>> arm-allstar at hamvoip.org <mailto:arm-allstar at hamvoip.org>> wrote:
>>
>> > I just noticed that when my Pi is started cold UFW is disabled
>> and has to
>> > be enabled from the command line. How can I make it self
>> starting at boot
>> > up? Thank you all for bearing with me, I will be less of a
>> pain once I get
>> > through this "newbie" phase :-)
>> > Thanks!
>> > Rory, K5CKS
>> > _______________________________________________
>> >
>> > arm-allstar mailing list
>> > arm-allstar at hamvoip.org <mailto:arm-allstar at hamvoip.org>
>> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>> <http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar>
>> >
>> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
>> >
>> _______________________________________________
>>
>> arm-allstar mailing list
>> arm-allstar at hamvoip.org <mailto:arm-allstar at hamvoip.org>
>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>> <http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar>
>>
>> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>>
>
> --
> 73 Jim
> La ciruela de Panamá
>
>
--
73 Jim
La ciruela de Panamá
More information about the arm-allstar
mailing list