From d17940bf4d2f7502d78b18eac380865c77e0444d Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 20 Dec 2021 14:56:53 +0100 Subject: Add an (optional) basic firewall configuration to setup2hd The firewall will be configured and installed only when you use setup2hd to install the Live OS to your hard drive. The scripts are not particular to Slackware Live; you can easily copy the resulting files /usr/sbin/myfwconfig, /etc/rc.d/rc.firewall and /var/lib/pkgtools/setup/setup.firewall out of the installed system and use them anywhere on a Slackware-compatible OS. - The 'myfwconfig' script will ask a few simple questions and generate the ipv4 and ipv6 configuration in /etc/firewall/. - The 'rc.firewall' script will load/save its iptables/ip6tables configuration from /etc/firewall/ files. - The 'setup.firewall' script is a convenient way to call the firewall configurator from pkgtools or during Slackware's installation to harddisk. --- make_slackware_live.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 8a1eacc..ce1aea3 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -2166,7 +2166,7 @@ if [ -f ${DEF_SL_PKGROOT}/../isolinux/initrd.img ]; then -e '/.\/var\/log\/setup\/$SCRIPT $T_PX $ROOT_DEVICE/i # Skip stuff that was taken care of by liveslak\nif [ -f $TMP/SeTlive ] && echo $SCRIPT |grep -qE "(make-bootdisk|mouse|setconsolefont|xwmconfig)"; then true; else' \ -e '/.\/var\/log\/setup\/$SCRIPT $T_PX $ROOT_DEVICE/a fi' # Add the Slackware Live HD installer scripts: - for USCRIPT in SeTuacct SeTudiskpart SeTumedia SeTupass SeTpasswd setup.liveslak setup.slackware ; do + for USCRIPT in SeTuacct SeTudiskpart SeTumedia SeTupass SeTpasswd SeTfirewall rc.firewall setup.liveslak setup.slackware ; do cat ${LIVE_TOOLDIR}/setup2hd/${USCRIPT}.tpl | sed \ -e "s/@DIRSUFFIX@/$DIRSUFFIX/g" \ -e "s/@DISTRO@/$DISTRO/g" \ -- cgit v1.2.3