Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2988 → Rev 2989

/conf/etc/alcasar-iptables-local.sh
7,10 → 7,10
# Examples:
# - Local MAC addresses filtering (MAC are in '/usr/local/etc/alcasar-iptables-local-mac-filtered'. Format : aa:09:23:2f:4d:ee)
# - allow ICMP from an Internet IP address (Admin_from) to EXTIF
# - allow SMTP from aLCASAR to an Internet server (SMTP_IP)
# - PAT rules from Internet
# - Deny access to protected networks from internal LAN
# - allow SMTP from ALCASAR to an Internet server (SMTP_IP)
# - Allow managers to access ACC from the external network
# - Ports Address Translation (PAT) from Internet (one & multiple)
# This script inherit of alcasar-iptables.sh variables : $INTIF, $EXTIF, $IPTABLES, etc
# !!Beware, run the script "alcasar-iptables.sh" after changing this file.
 
58,17 → 58,22
#$IPTABLES -t nat -A PREROUTING -i $EXTIF -s $managerIPs -p tcp -d $PUBLIC_IP --dport $externalPort -j DNAT --to $PRIVATE_IP:443
#$IPTABLES -A INPUT -i $EXTIF -s $managerIPs -p tcp --dport 443 -m mark --mark 100 -j ACCEPT
 
# On autorise l'accès depuis Internet (port 11222) vers un equipement du LAN (port 22). L'équipement sur le LAN doit être en IP fixe
# Allow access from Internet (port 11222) to an LAN equipment (port 22). The equipment must be in static IP
# On autorise l'accès depuis Internet (ex: port 11222) vers un equipement du LAN (ex: port 22). L'équipement sur le LAN doit être en IP fixe
# Access is allowed from Internet (ie: port 11222) to a LAN equipment (ie: port 22). The equipment must be in static IP
#$IPTABLES -A PREROUTING -i $EXTIF -t nat -p tcp -d $PUBLIC_IP --dport 11222 -j DNAT --to 192.168.182.10:22
#$IPTABLES -A PREROUTING -i $EXTIF -t nat -p udp -d $PUBLIC_IP --dport 11222 -j DNAT --to 192.168.182.10:22
#$IPTABLES -A FORWARD -p tcp -d 192.168.182.10 --dport 22 -j ACCEPT
#$IPTABLES -A FORWARD -p udp -d 192.168.182.10 --dport 22 -j ACCEPT
 
# On autorise l'accès depuis Internet (multiports) vers un équipement du LAN (par exemple pour un VPN). L'équipement doit être en IP fixe
# Allow access from Internet (multiports) to an LAN equipment (VPN for example). The equipment must be in static IP
#ext_ports=55022,31194; int_ports=44022,31194
# On autorise l'accès depuis Internet (multiports) vers un équipement du LAN (qui doit être en IP fixe)
# Access is allowed from Internet (multiports) to a LAN equipment (which must be in static IP)
#ext_ports=11223:11323; int_ports=11223:11323
#to_ip=192.168.182.7
#$IPTABLES -A PREROUTING -i $EXTIF -t nat -p tcp -d $PUBLIC_IP -m multiport --dports $ext_ports -j DNAT --to $to_ip
#int_ports_dnat=`echo $int_ports|tr : -`
#$IPTABLES -A PREROUTING -i $EXTIF -t nat -p tcp -d $PUBLIC_IP -m multiport --dports $ext_ports -j DNAT --to $to_ip:$int_ports_dnat
#$IPTABLES -A FORWARD -i $EXTIF -p tcp -d $to_ip -m multiport --dports $ext_ports -j ACCEPT
#$IPTABLES -A FORWARD -o $EXTIF -p tcp -s $to_ip -m multiport --sports $int_ports -j ACCEPT
#$IPTABLES -A FORWARD -o $EXTIF -p tcp -s $to_ip -m multiport --sports $int_ports -j ACCEPT
#$IPTABLES -A PREROUTING -i $EXTIF -t nat -p udp -d $PUBLIC_IP -m multiport --dports $ext_ports -j DNAT --to $to_ip:$int_ports_dnat
#$IPTABLES -A FORWARD -i $EXTIF -p udp -d $to_ip -m multiport --dports $ext_ports -j ACCEPT
#$IPTABLES -A FORWARD -o $EXTIF -p udp -s $to_ip -m multiport --sports $int_ports -j ACCEPT