le echo “1” vers ip_forward je l’ai fait mais au rdémarrage il s’est remi à 0
???
[code]server:~# iptables -L --line-numbers
Chain INPUT (policy DROP)
num target prot opt source destination
1 ACCEPT 0 – anywhere anywhere
2 ACCEPT 0 – anywhere anywhere state RELATED,ESTABLISHED
3 ACCEPT 0 – anywhere anywhere
4 DROP icmp – anywhere anywhere
5 ACCEPT tcp – anywhere anywhere tcp dpt:ftp-data
6 ACCEPT tcp – anywhere anywhere tcp dpt:ftp
7 ACCEPT tcp – anywhere anywhere tcp dpt:ssh
8 ACCEPT tcp – anywhere anywhere tcp dpt:smtp
9 ACCEPT tcp – anywhere anywhere tcp dpt:domain
10 ACCEPT udp – anywhere anywhere udp dpt:domain
11 ACCEPT tcp – anywhere anywhere tcp dpt:www
12 ACCEPT tcp – anywhere anywhere tcp dpt:pop3
13 ACCEPT tcp – anywhere anywhere tcp dpt:imap2
14 ACCEPT tcp – anywhere anywhere tcp dpt:https
15 ACCEPT tcp – anywhere anywhere tcp dpt:ipp
16 ACCEPT tcp – anywhere anywhere tcp dpt:xmpp-client
Chain FORWARD (policy DROP)
num target prot opt source destination
1 ACCEPT 0 – anywhere anywhere state RELATED,ESTABLISHED
2 ACCEPT 0 – anywhere anywhere
3 ACCEPT tcp – anywhere imaps.zone.teledisnet.be tcp dpt:www
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp – anywhere smtp.zone.teledisnet.be tcp dpt:www[/code]
[code]server:~# cat /etc/config_parefeu
Generated by iptables-save v1.3.6 on Sat Mar 3 15:46:02 2007
*filter
:INPUT DROP [89:27793]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [251:80243]
-A INPUT -i eth2 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -j DROP
-A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 110 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 143 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5222 -j ACCEPT
-A FORWARD -i eth1 -o eth2 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -o eth1 -j ACCEPT
-A FORWARD -d 192.168.0.82 -i eth1 -o eth2 -p tcp -m tcp --dport 80 -j ACCEPT
-A OUTPUT -d 192.168.0.82 -o eth2 -p tcp -m tcp --dport 80 -j ACCEPT
COMMIT
Completed on Sat Mar 3 15:46:02 2007
Generated by iptables-save v1.3.6 on Sat Mar 3 15:46:02 2007
*nat
:PREROUTING ACCEPT [111:29953]
:POSTROUTING ACCEPT [7:800]
:OUTPUT ACCEPT [22:2018]
-A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.0.82:80
-A POSTROUTING -o ethy -j MASQUERADE
-A POSTROUTING -o eth1 -j MASQUERADE
COMMIT
Completed on Sat Mar 3 15:46:02 2007
Generated by iptables-save v1.3.6 on Sat Mar 3 15:46:02 2007
*mangle
:PREROUTING ACCEPT [2601:2156908]
:INPUT ACCEPT [310:116441]
:FORWARD ACCEPT [2291:2040467]
:OUTPUT ACCEPT [251:80243]
:POSTROUTING ACCEPT [2557:2122339]
COMMIT
Completed on Sat Mar 3 15:46:02 2007
Generated by iptables-save v1.3.6 on Sat Mar 3 15:46:02 2007
*raw
:PREROUTING ACCEPT [2601:2156908]
:OUTPUT ACCEPT [251:80243]
COMMIT
Completed on Sat Mar 3 15:46:02 2007[/code]