ouvre.firewall.diff
/usr/sbin/ouvre.firewall 2012-02-09 18:32:19.773361153 +0100 | ||
---|---|---|
1 | 1 |
#!/bin/sh |
2 | 2 | |
3 |
#------------------------------------------------------------------------------------------------------ |
|
4 |
## ouvre.firewall pour Eole |
|
5 |
## revue le 20/09/2001 par samuel morin samuel.morin@ac-dijon.fr |
|
6 |
# $Id: ouvre.firewall,v 1.2 2004/05/04 08:09:26 sam Exp $ |
|
7 |
#------------------------------------------------------------------------------------------------------ |
|
3 |
#------------------------------------------------------------------------------- |
|
4 |
## ouvre.firewall pour EOLE |
|
5 |
#------------------------------------------------------------------------------- |
|
8 | 6 | |
9 | 7 | |
10 | 8 |
### politique par defaut |
... | ... | |
26 | 24 |
/sbin/iptables -P OUTPUT ACCEPT |
27 | 25 |
/sbin/iptables -P FORWARD ACCEPT |
28 | 26 | |
27 |
#tcpwrapper |
|
28 |
echo "ALL: ALL" > /etc/hosts.allow |
|
29 | ||
30 |
#nat tout le traffic |
|
31 |
iptables -t nat -A POSTROUTING -j MASQUERADE |
|
32 | ||
29 | 33 |
#------------------------------------------------------------------------------------------------------ |
30 | 34 | |
31 | 35 |