Subversion Repositories ALCASAR

Rev

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

Rev 1364 Rev 1370
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-iptables.sh 1364 2014-05-27 15:56:02Z richard $
2
# $Id: alcasar-iptables.sh 1370 2014-06-03 21:16:25Z richard $
3
# Script de mise en place des regles du parefeu d'Alcasar (mode normal)
3
# Script de mise en place des regles du parefeu d'Alcasar (mode normal)
4
# This script writes the netfilter rules for ALCASAR
4
# This script writes the netfilter rules for ALCASAR
5
# Rexy - 3abtux - CPN
5
# Rexy - 3abtux - CPN
6
#
6
#
7
# Reminders
7
# Reminders
Line 410... Line 410...
410
# Traduction dynamique d'adresse en sortie
410
# Traduction dynamique d'adresse en sortie
411
# Dynamic NAT on EXTIF
411
# Dynamic NAT on EXTIF
412
$IPTABLES -A POSTROUTING -t nat -o $EXTIF -j MASQUERADE
412
$IPTABLES -A POSTROUTING -t nat -o $EXTIF -j MASQUERADE
413
 
413
 
414
# Save all rules
414
# Save all rules
415
/etc/init.d/iptables save
415
/usr/libexec/iptables.init save
416
 
416
 
417
# End of script
417
# End of script
418
 
418