Subversion Repositories ALCASAR

Rev

Rev 1362 | Rev 1365 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1362 Rev 1363
Line 1... Line 1...
1
 
1
 
2
#!/bin/bash
2
#!/bin/bash
3
#  $Id: alcasar.sh 1362 2014-05-26 17:12:54Z richard $ 
3
#  $Id: alcasar.sh 1363 2014-05-26 22:07:44Z richard $ 
4
 
4
 
5
# alcasar.sh
5
# alcasar.sh
6
 
6
 
7
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
8
# Ce programme est un logiciel libre ; This software is free and open source
8
# Ce programme est un logiciel libre ; This software is free and open source
Line 1558... Line 1558...
1558
# ignore source routing
1558
# ignore source routing
1559
	echo "net.ipv4.conf.all.accept_source_route = 0" >> /etc/sysctl.d/alcasar.conf
1559
	echo "net.ipv4.conf.all.accept_source_route = 0" >> /etc/sysctl.d/alcasar.conf
1560
# set conntrack timer to 1h (3600s) instead of 5 weeks
1560
# set conntrack timer to 1h (3600s) instead of 5 weeks
1561
	echo "net.netfilter.nf_conntrack_tcp_timeout_established = 3600" >> /etc/sysctl.d/alcasar.conf
1561
	echo "net.netfilter.nf_conntrack_tcp_timeout_established = 3600" >> /etc/sysctl.d/alcasar.conf
1562
# disable log_martians (ALCASAR is often installed between two private network addresses) 
1562
# disable log_martians (ALCASAR is often installed between two private network addresses) 
1563
	echo "net.ipv4.conf.all.log_martians = 0" >> etc/sysctl.d/alcasar.conf
1563
	echo "net.ipv4.conf.all.log_martians = 0" >> /etc/sysctl.d/alcasar.conf
1564
# remove Magic SysReq Keys
1564
# remove Magic SysReq Keys
1565
	[ -e /etc/sysctl.d/51-alt-sysrq.conf ] && rm /etc/sysctl.d/51-alt-sysrq.con
1565
	[ -e /etc/sysctl.d/51-alt-sysrq.conf ] && rm /etc/sysctl.d/51-alt-sysrq.conf
1566
# switch to multi-users runlevel (instead of x11)
1566
# switch to multi-users runlevel (instead of x11)
1567
	ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
1567
	ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
1568
#	GRUB modifications
1568
#	GRUB modifications
1569
# limit wait time to 3s
1569
# limit wait time to 3s
1570
# create an alcasar entry instead of linux-nonfb
1570
# create an alcasar entry instead of linux-nonfb