[Toulibre] Serveur LTSP navigateur en local

JMP jmptel at emails.be
Mar 24 Sep 12:28:12 CEST 2013


Bonjour,

J'ai toujours pas résolu mon problème
J'espère que vous pourrez me venir en aide avec les renseignements 
ci-après de la configuration

D'avance merci


Voici la configuration des cartes
eth0 192.168.0.1
eth1 10.201.1.1

ifconfig

eth0      Link encap:Ethernet  HWaddr 88:51:fb:51:f2:92 
          inet adr:192.168.0.158  Bcast:192.168.0.255  Masque:255.255.255.0
          adr inet6: fe80::8a51:fbff:fe51:f292/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13510 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12722 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:10435629 (9.9 MiB)  TX bytes:1764743 (1.6 MiB)
          Interruption:51 Adresse de base:0x8000

eth1      Link encap:Ethernet  HWaddr 64:66:b3:03:61:12 
          inet adr:10.201.1.1  Bcast:10.201.1.255  Masque:255.255.255.0
          adr inet6: fe80::6666:b3ff:fe03:6112/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:413778 errors:0 dropped:0 overruns:0 frame:0
          TX packets:735260 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:111691307 (106.5 MiB)  TX bytes:820130704 (782.1 MiB)
          Interruption:50 Adresse de base:0x6000

lo        Link encap:Boucle locale 
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:358936 errors:0 dropped:0 overruns:0 frame:0
          TX packets:358936 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          RX bytes:686509808 (654.7 MiB)  TX bytes:686509808 (654.7 MiB)

resolv.conf

domain home
search home
nameserver 192.168.1.1
nameserver 192.168.0.1

les 2 fichiers sont identiques

resolvconfrpi

#!/bin/bash
# Configuration Réseau rpinet

echo "search rpinet.lan" > /etc/resolv.conf
echo "nameserver 10.201.1.1 " >> /etc/resolv.conf


rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/home/modele/resolvconfrpi

exit 0




isc-dhcp-server

# Defaults for isc-dhcp-server initscript
# sourced by /etc/init.d/isc-dhcp-server
# installed at /etc/default/isc-dhcp-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPD_CONF=/etc/dhcp/dhcpd.conf

# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPD_PID=/var/run/dhcpd.pid

# Additional options to start dhcpd with.
#    Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#    Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1"


/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp


# Interface Réseau Local
# /etc/ltsp/nat: Règles iptables pour accès à Internet des Postes 
Clients à Partir du Réseau Local
auto eth1
iface eth1 inet static
address 10.201.1.1
netmask 255.255.255.0
network 10.201.1.0
up iptables-restore < /etc/ltsp-nat


dhcpd.conf

#
# Default LTSP dhcpd.conf config file.
#

authoritative;

subnet 10.201.1.0 netmask 255.255.255.0 {
    range 10.201.1.101 10.201.1.200;
#   option domain-name "rpinet.lan";
#   option domain-name-servers 10.201.1.1;
    option broadcast-address 10.201.1.255;
    option routers 10.201.1.1;
    next-server 10.201.1.1;
#   get-lease-hostnames true;
    use-host-decl-names true;
    option subnet-mask 255.255.255.0;
    option root-path "/opt/ltsp/i386";
    if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
        filename "/ltsp/i386/pxelinux.0";
    } else {
        filename "/ltsp/i386/nbi.img";
    }
}


ltsp-nat

# Generated by iptables-save v1.4.14 on Mon Sep 23 11:26:29 2013
*nat
:PREROUTING ACCEPT [2:307]
:INPUT ACCEPT [2:307]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
COMMIT
# Completed on Mon Sep 23 11:26:29 2013



lts.conf

# This is the default lts.conf file for ltsp 5.  For more information about
# valid options please see lts.conf(5) man page, available in the ltsp-docs
# package.
#
# Note that things like sound and local device support are auto-enabled 
if the
# corresponding packages are installed, there is no need to manually set 
these
# options anymore.

[default]
    LTSP_CONFIG=True
    LOCAL_APPS=True
    LOCAL_APPS_MENU=True
    LOCAL_APPS_MENU_ITEMS=iceweasel, chromium, vlc
    SOUND=True
    VOLUME=100
    HEADPHONE_VOLUME=100
    PCM_VOLUME=100
    LOCALDEV=True
    #CONFIGURE_X=False







Xavier a écrit :
> Salut
>
>
> On Fri, 20 Sep 2013 14:55:52 +0200
> JMP <jmptel at emails.be> wrote:
>
>   
>> Bonjour,
>>
>> Merci pour les réponses à mes précédentes questions
>> J'étais absent
>>
>> Sur un client-léger si je démarre le navigateur
>> - sur le serveur accès à internet sans problème
>> - sur le client-léger le navigateur se lance correctement en local
>> mais accès à aucune page internet
>>     
>
> Est ce que le dns du client est bien parametré (/etc/resolv.conf) ?
>
>  -> Met la meme chose que sur le serveur et balance ltsp-update-image
>  ki vas bien  
>
> Et est-ce que le fichier du serveur dhcpd (sur le serveur) est donne la
> passerelle aux client ? (/etc/ltsp/dhcpd.conf
>
>  -> la ligne "option routers" qui doit pointer vers ta passerelle de
> sortie. (La box internet en general).
>
> Cordialement
>
>
> Xavier
>
> PS LTSP c'est trop bien ! Mangez-en !!!
> _______________________________________________
> Toulouse-ll mailing list
> Toulouse-ll at toulibre.org
> http://toulibre.org/cgi-bin/mailman/listinfo/toulouse-ll
>
>   




Plus d'informations sur la liste de diffusion Toulouse-ll