Subversion Repositories ALCASAR

Rev

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

Rev 2854 Rev 2956
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $Id: alcasar-iptables-local.sh 2854 2020-07-20 22:08:05Z rexy $
3
# $Id: alcasar-iptables-local.sh 2956 2021-05-24 19:57:17Z rexy $
4
#
4
#
5
# Custom rules for ALCASAR firewall
5
# Custom rules for ALCASAR firewall
6
#
6
#
7
# Examples:
7
# Examples:
8
# 	- Local MAC addresses filtering (MAC are in '/usr/local/etc/alcasar-iptables-local-mac-filtered'. Format : aa:09:23:2f:4d:ee)
8
# 	- Local MAC addresses filtering (MAC are in '/usr/local/etc/alcasar-iptables-local-mac-filtered'. Format : aa:09:23:2f:4d:ee)
Line 31... Line 31...
31
	done < /usr/local/etc/alcasar-iptables-local-mac-filtered
31
	done < /usr/local/etc/alcasar-iptables-local-mac-filtered
32
fi
32
fi
33
 
33
 
34
# On autorise le ping (echo & request) (ICMP N°0 & 8) en provenance d'Internet vers ALCASAR
34
# On autorise le ping (echo & request) (ICMP N°0 & 8) en provenance d'Internet vers ALCASAR
35
# Allow ping (echo & request) (ICMP N°0 & 8) from Internet
35
# Allow ping (echo & request) (ICMP N°0 & 8) from Internet
36
#$IPTABLES -A INPUT  -i $EXTIF -s $Admin_from_IP -p icmp --icmp-type 8 -j ACCEPT
36
#$IPTABLES -A INPUT  -i $EXTIF -p icmp --icmp-type 8 -j ACCEPT
37
#$IPTABLES -A OUTPUT -o $EXTIF -d $Admin_from_IP -p icmp --icmp-type 0 -j ACCEPT
37
#$IPTABLES -A OUTPUT -o $EXTIF -p icmp --icmp-type 0 -j ACCEPT
38
 
38
 
39
# On autorise ALCASAR a accéder à un serveur MAIL local (envoie de rapports, alertes, etc.)
39
# On autorise ALCASAR a accéder à un serveur MAIL local (envoie de rapports, alertes, etc.)
40
# Allow ALCASAR to conect to a local mail server (send reports, alerts, etc.)
40
# Allow ALCASAR to conect to a local mail server (send reports, alerts, etc.)
41
#SMTP_IP='192.168.111.5'		# IP of mail server
41
#SMTP_IP='192.168.111.5'		# IP of mail server
42
#SMTP_PORT=587			# port of mail server (25 for SMTP ; 587 for STARTTLS ; 465 for SMTPS)
42
#SMTP_PORT=587			# port of mail server (25 for SMTP ; 587 for STARTTLS ; 465 for SMTPS)