Subversion Repositories ALCASAR

Rev

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

Rev 1769 Rev 1778
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1769 2016-01-17 20:39:23Z richard $ 
2
#  $Id: alcasar.sh 1778 2016-01-19 22:40:43Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 1949... Line 1949...
1949
	echo "net.ipv4.conf.all.accept_source_route = 0" >> /etc/sysctl.d/alcasar.conf
1949
	echo "net.ipv4.conf.all.accept_source_route = 0" >> /etc/sysctl.d/alcasar.conf
1950
# set conntrack timer to 1h (3600s) instead of 5 weeks
1950
# set conntrack timer to 1h (3600s) instead of 5 weeks
1951
	echo "net.netfilter.nf_conntrack_tcp_timeout_established = 3600" >> /etc/sysctl.d/alcasar.conf
1951
	echo "net.netfilter.nf_conntrack_tcp_timeout_established = 3600" >> /etc/sysctl.d/alcasar.conf
1952
# disable log_martians (ALCASAR is often installed between two private network addresses) 
1952
# disable log_martians (ALCASAR is often installed between two private network addresses) 
1953
	echo "net.ipv4.conf.all.log_martians = 0" >> /etc/sysctl.d/alcasar.conf
1953
	echo "net.ipv4.conf.all.log_martians = 0" >> /etc/sysctl.d/alcasar.conf
-
 
1954
# disable iptables_helpers
-
 
1955
	echo "net.netfilter.nf_conntrack_helper = 0" >> /etc/sysctl.d/alcasar.conf
1954
# remove Magic SysReq Keys
1956
# remove Magic SysReq Keys
1955
	[ -e /etc/sysctl.d/51-alt-sysrq.conf ] && rm /etc/sysctl.d/51-alt-sysrq.conf
1957
	[ -e /etc/sysctl.d/51-alt-sysrq.conf ] && rm /etc/sysctl.d/51-alt-sysrq.conf
1956
# switch to multi-users runlevel (instead of x11)
1958
# switch to multi-users runlevel (instead of x11)
1957
	ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
1959
	ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
1958
#	GRUB modifications (only one time)
1960
#	GRUB modifications (only one time)