2021-11-04 13:25:58
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
|
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2021/11/04 10:58:16 by gbaconni #+# #+# #
|
# Created: 2021/11/04 10:58:16 by gbaconni #+# #+# #
|
||||||
# Updated: 2021/11/04 13:24:40 by gbaconni ### lausanne.ch #
|
# Updated: 2021/11/04 13:25:57 by gbaconni ### lausanne.ch #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ ft_ufw ()
|
|||||||
{
|
{
|
||||||
user=${1-marvin}
|
user=${1-marvin}
|
||||||
port=${2-4242}
|
port=${2-4242}
|
||||||
ft_rc_local
|
ft_rc_local ${user}
|
||||||
cp /etc/rc.local /etc/rc.local.orig
|
cp /etc/rc.local /etc/rc.local.orig
|
||||||
echo '#!/bin/sh' > /etc/rc.local
|
echo '#!/bin/sh' > /etc/rc.local
|
||||||
echo '/usr/sbin/ufw enable' >> /etc/rc.local
|
echo '/usr/sbin/ufw enable' >> /etc/rc.local
|
||||||
|
|||||||
Reference in New Issue
Block a user