Salut,
Suite à de nombreux post, notament http://forum.debian-fr.org/viewtopic.php?f=3&t=12776 j’ai encore une fois éssayé de configurer mon serveur pour qu’il puisse jouer le rôle de passerelle pour mes PC client or je n’y arrive toujours pas, si quelqu’un pouvait encore une fois m’orienter, merci
Config du serveur:
/etc/network/interfaces
1 # This file describes the network interfaces available on your system
2 # and how to activate them. For more information, see interfaces(5).
3
4 # The loopback network interface
5 auto lo
6 iface lo inet loopback
7
8 # The primary network interface
9 auto eth0
10 allow-hotplug eth0
11 iface eth0 inet static
12 address 192.168.1.2
13 netmask 255.255.255.0
14 # network 192.168.1.0
15 # broadcast 192.168.1.255
16 gateway 192.168.1.1
17 # dns-* options are implemented by the resolvconf package, if installed
18 dns-nameservers 192.168.1.1
19 # dns-search srv_debian.org
20
21 iface eth1 inet static
22 address 192.168.30.1
23 netmask 255.255.255.0
24 auto eth1
ifconfig
[code]eth0 Lien encap:Ethernet HWaddr 00:19:66:63:36:8B
inet adr:192.168.1.2 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::219:66ff:fe63:368b/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:586 errors:0 dropped:0 overruns:0 frame:0
TX packets:603 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:560090 (546.9 KiB) TX bytes:100586 (98.2 KiB)
Interruption:201 Adresse de base:0xb400
eth1 Lien encap:Ethernet HWaddr 00:E0:4C:00:61:81
inet adr:192.168.30.1 Bcast:192.168.30.255 Masque:255.255.255.0
adr inet6: fe80::2e0:4cff:fe00:6181/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:69 errors:0 dropped:0 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:19100 (18.6 KiB) TX bytes:9869 (9.6 KiB)
Interruption:193 Adresse de base:0x4c00
[/code]
/etc/sysctl.conf ==> j’ai décommenté la ligne : # Uncomment the next line to enable packet forwarding for IPv4
23 net.ipv4.conf.default.forwarding=1
/etc/dhcp3/dhcpd.conf
1 #fichier de configuration du serveur DHCP
2 # ----------------------------------------
3
4 # Nom de votre réseau.
5 option domain-name "serveur-local";
6
7 # Serveur de nom (DNS).
8 option domain-name-servers 192.168.1.1;
9
10 # Adresse de la passerelle.
11 option routers 192.168.30.1;
12 # Reseau.
13 subnet 192.168.30.0 netmask 255.255.255.0 {
14 range 192.168.30.10 192.168.30.20;
15 }
16 host chris {
17 hardware ethernet 00:08:a1:6d:4b:dc;
18 fixed-address 192.168.30.11;
19 }
/etc/default/dhcp3-server
INTERFACES="eth1"
Configuration de mon 1°client
4 # The loopback network interface
5 auto lo
6 iface lo inet loopback
7
8 # The primary network interface
9 auto eth1
10 allow-hotplug eth1
11 iface eth1 inet dhcp
16 gateway 192.168.30.1
17 auto eth1
Alors, le serveur attribut bien l’adresse 192.168.30.11 que j’ai demandé dans le fichier de conf du serveur, de mon client je peux pinger sur l’interface eth1 de serveur et son interface eth0, parcontre mon client n’a pas d’accès à internet, en faisant de mon client un : ping -c 2 www.google.fr
j’ai un “host unknow”
Je n’ai pas activé IPTABLES…
Merci de votre aide !!!