Hello,
Bon j'avance un peu dans mes tests, j'ai installé et configuré fwbuilder, il tourne impec avec iptables.
J'ai quelques ptites questions:
Déjà voila ma config, dites moi ce que vous en pensez:
Est ce que la configuration est sure ou faut que je débranche vite vite mon cable reseau ? 😃
Qlq explications au passage:
sharabox c mon fedora7
192.169.1.0/24 c destiné a etre mon reseau local sur carte reseau eth0
192.168.1.0/24 c le réseau local entre sharabox et ma neufbox sur eth1
Voila et sinon (la je vais faire une ptite pause ^^) quelqun aurait quelques pistes à me donner pour débuter dans le domaine du NAT dans l'optique de partager ma connection de ma neuf box sur mon réseau 192.169.1.0/24 ? (via fwbuilder bien entendu).
NeufBox (192.168.1.1) <=> sharabox (fedora7)(192.168.1.2) <=> sharabox (fedora7)(192.169.1.1) <=> réseau local 192.169.1.0/24
Ah et oui au fait, dernière question, est-ce qu'il est utile de nettoyer(vider) le fichier de conf iptables (vu qu'a priori fwbuilder défini toutes les regles dont j'ai besoin, ca m'embete d'avoir des regles en plus dont je n'ai pas vraiment connaissance).
voila un cat iptables suivi d'un petit ./iptables -L pour vous donner une idée.
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT 0 -- anywhere anywhere state RELATED,ESTABLISHED
DROP tcp -- anywhere anywhere tcp flags:!SYN,RST,ACK/SYN state NEW
DROP 0 -- anywhere anywhere state INVALID
ACCEPT 0 -- anywhere anywhere state NEW
Cid46B46B8B3132.0 0 -- 192.169.1.0/24 anywhere state NEW
ACCEPT 0 -- 192.168.1.2 anywhere state NEW
ACCEPT 0 -- 192.169.1.1 anywhere state NEW
DROP 0 -- anywhere anywhere
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT 0 -- anywhere anywhere state RELATED,ESTABLISHED
DROP tcp -- anywhere anywhere tcp flags:!SYN,RST,ACK/SYN state NEW
DROP 0 -- anywhere anywhere state INVALID
ACCEPT 0 -- 192.168.1.2 anywhere state NEW
ACCEPT 0 -- 192.169.1.1 anywhere state NEW
DROP 0 -- anywhere anywhere
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT 0 -- anywhere anywhere state RELATED,ESTABLISHED
DROP tcp -- anywhere anywhere tcp flags:!SYN,RST,ACK/SYN state NEW
DROP 0 -- anywhere anywhere state INVALID
ACCEPT 0 -- anywhere anywhere state NEW
ACCEPT 0 -- anywhere 192.169.1.0/24 state NEW
ACCEPT 0 -- anywhere anywhere state NEW
DROP 0 -- anywhere anywhere
Chain Cid46B46B8B3132.0 (1 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere icmp ttl-zero-during-transit
ACCEPT icmp -- anywhere anywhere icmp ttl-zero-during-reassembly
ACCEPT icmp -- anywhere anywhere icmp type 0 code 0
ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
ACCEPT tcp -- anywhere anywhere tcp multiport dports http,ssh,microsoft-ds
Merci =)