Subversion Repositories ALCASAR

Rev

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

Rev 2995 Rev 3016
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $Id: alcasar-iptables-local.sh 2995 2022-03-09 18:35:06Z rexy $
3
# $Id: alcasar-iptables-local.sh 3016 2022-06-03 16:52:06Z 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 45... Line 45...
45
 
45
 
46
# On autorise ALCASAR à contacter un serveur MAIL externe (envoie de rapports, alertes, inscription d'utilisateurs, etc.)
46
# On autorise ALCASAR à contacter un serveur MAIL externe (envoie de rapports, alertes, inscription d'utilisateurs, etc.)
47
# Allow ALCASAR to connect to a mail server (send reports, alerts, users registration, etc.)
47
# Allow ALCASAR to connect to a mail server (send reports, alerts, users registration, etc.)
48
#SMTP_IP='192.168.111.5'
48
#SMTP_IP='192.168.111.5'
49
#SMTP_PORT=25
49
#SMTP_PORT=25
50
#$IPTABLES -A OUTPUT -p tcp -d $SMTP_IP --dport $SMTP_PORT -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
50
#$IPTABLES -A OUTPUT -p tcp --dport $SMTP_PORT -d $SMTP_IP -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
51
#$IPTABLES -A INPUT  -p tcp -s $SMTP_IP --sport $SMTP_PORT -m conntrack --ctstate ESTABLISHED     -j ACCEPT
51
#$IPTABLES -A INPUT  -p tcp --sport $SMTP_PORT -s $SMTP_IP -m conntrack --ctstate ESTABLISHED     -j ACCEPT
52
 
52
 
53
# On autorise un admin à accéder à l'ACC depuis l'extérieur (Internet ou le LAN entre ALCASAR et la BOX)
53
# On autorise un admin à accéder à l'ACC depuis l'extérieur (Internet ou le LAN entre ALCASAR et la BOX)
54
# Allow managerIP to access ACC from the external network (Internet or LAN between ALCASAR and the broadband router)
54
# Allow managerIP to access ACC from the external network (Internet or LAN between ALCASAR and the broadband router)
55
#managerIPs='192.168.0.10'
55
#managerIPs='192.168.0.10'
56
#externalPort='34443'
56
#externalPort='34443'