Subversion Repositories ALCASAR

Rev

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

Rev 1963 Rev 1964
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1963 2016-06-24 22:38:53Z richard $ 
2
#  $Id: alcasar.sh 1964 2016-06-25 12:09:55Z 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 1940... Line 1940...
1940
# disable iptables_helpers
1940
# disable iptables_helpers
1941
	echo "net.netfilter.nf_conntrack_helper = 0" >> /etc/sysctl.d/alcasar.conf
1941
	echo "net.netfilter.nf_conntrack_helper = 0" >> /etc/sysctl.d/alcasar.conf
1942
# Switch to the router mode
1942
# Switch to the router mode
1943
	echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.d/alcasar.conf
1943
	echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.d/alcasar.conf
1944
# Remove unused service ipv6
1944
# Remove unused service ipv6
1945
     echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.d/alcasar.conf
1945
	echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.d/alcasar.conf
1946
     echo "net.ipv6.conf.all.autoconf = 0" >> /etc/sysctl.d/alcasar.conf
1946
	echo "net.ipv6.conf.all.autoconf = 0" >> /etc/sysctl.d/alcasar.conf
1947
     echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.d/alcasar.conf
1947
	echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.d/alcasar.conf
1948
     echo "net.ipv6.conf.default.autoconf = 0" >> /etc/sysctl.d/alcasar.conf
1948
	echo "net.ipv6.conf.default.autoconf = 0" >> /etc/sysctl.d/alcasar.conf
1949
 
-
 
1950
# remove Magic SysReq Keys
1949
# remove Magic SysReq Keys
1951
	[ -e /etc/sysctl.d/51-alt-sysrq.conf ] && rm /etc/sysctl.d/51-alt-sysrq.conf
1950
	[ -e /etc/sysctl.d/51-alt-sysrq.conf ] && rm /etc/sysctl.d/51-alt-sysrq.conf
1952
# switch to multi-users runlevel (instead of x11)
1951
# switch to multi-users runlevel (instead of x11)
1953
	ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
1952
	ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
1954
#	GRUB modifications (only one time)
1953
#	GRUB modifications (only one time)