Subversion Repositories ALCASAR

Rev

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

Rev 1785 Rev 1788
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1785 2016-01-22 19:56:39Z richard $ 
2
#  $Id: alcasar.sh 1788 2016-01-31 20:50:19Z 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 1951... Line 1951...
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
1954
# disable iptables_helpers
1955
	echo "net.netfilter.nf_conntrack_helper = 0" >> /etc/sysctl.d/alcasar.conf
1955
	echo "net.netfilter.nf_conntrack_helper = 0" >> /etc/sysctl.d/alcasar.conf
-
 
1956
# Switch to the router mode
-
 
1957
	echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.d/alcasar.conf
1956
# remove Magic SysReq Keys
1958
# remove Magic SysReq Keys
1957
	[ -e /etc/sysctl.d/51-alt-sysrq.conf ] && rm /etc/sysctl.d/51-alt-sysrq.conf
1959
	[ -e /etc/sysctl.d/51-alt-sysrq.conf ] && rm /etc/sysctl.d/51-alt-sysrq.conf
1958
# switch to multi-users runlevel (instead of x11)
1960
# switch to multi-users runlevel (instead of x11)
1959
	ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
1961
	ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
1960
#	GRUB modifications (only one time)
1962
#	GRUB modifications (only one time)