Subversion Repositories ALCASAR

Rev

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

Rev 1914 Rev 1917
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1914 2016-05-29 15:36:09Z richard $ 
2
#  $Id: alcasar.sh 1917 2016-06-01 09:35:09Z franck $ 
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 1924... Line 1924...
1924
	echo "net.ipv4.conf.all.log_martians = 0" >> /etc/sysctl.d/alcasar.conf
1924
	echo "net.ipv4.conf.all.log_martians = 0" >> /etc/sysctl.d/alcasar.conf
1925
# disable iptables_helpers
1925
# disable iptables_helpers
1926
	echo "net.netfilter.nf_conntrack_helper = 0" >> /etc/sysctl.d/alcasar.conf
1926
	echo "net.netfilter.nf_conntrack_helper = 0" >> /etc/sysctl.d/alcasar.conf
1927
# Switch to the router mode
1927
# Switch to the router mode
1928
	echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.d/alcasar.conf
1928
	echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.d/alcasar.conf
-
 
1929
# Remove unused service ipv6
-
 
1930
     echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.d/alcasar.conf
-
 
1931
     echo "net.ipv6.conf.all.autoconf = 0" >> /etc/sysctl.d/alcasar.conf
-
 
1932
     echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.d/alcasar.conf
-
 
1933
     echo "net.ipv6.conf.default.autoconf = 0" >> /etc/sysctl.d/alcasar.conf
-
 
1934
 
1929
# remove Magic SysReq Keys
1935
# remove Magic SysReq Keys
1930
	[ -e /etc/sysctl.d/51-alt-sysrq.conf ] && rm /etc/sysctl.d/51-alt-sysrq.conf
1936
	[ -e /etc/sysctl.d/51-alt-sysrq.conf ] && rm /etc/sysctl.d/51-alt-sysrq.conf
1931
# switch to multi-users runlevel (instead of x11)
1937
# switch to multi-users runlevel (instead of x11)
1932
	ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
1938
	ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
1933
#	GRUB modifications (only one time)
1939
#	GRUB modifications (only one time)