IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Réseau Discussion :

Apache et Owncloud. Vers qui me tourner ?


Sujet :

Réseau

  1. #41
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    Salut Bvsud,
    Configuration réseau :
    Là, j'ai cherché à forcer le port 80. Il étais spécifié port 22 . Et aussi les deux protocoles (ssh1 et ssh2). Dès fois que cela ait une incidence sur l'ipv6 ?
    Je te conseil de laisser sur le port 22 , déconseiller pour la sécurité de ton serveur, et SSH n'as rien a voir avec le SSL.

    Pour l'ipv6 as-tu essayer de faire d'après la doc de Apache:
    L'option --enable-v4-mapped est utilisée par défaut sur toutes les plateformes sauf FreeBSD, NetBSD, et OpenBSD; votre Apache a donc probablement été construit avec cette option.

    Si vous souhaitez qu'Apache ne gère que des connexions IPv4, sans se soucier de ce que vos plateforme et APR supportent, spécifiez une adresse IPv4 dans toutes les directives Listen, comme dans l'exemple suivant :

    Listen 0.0.0.0:80
    Listen 192.0.2.1:80

    Si votre plateforme le supporte et si vous souhaitez qu'Apache gère des connexions IPv4 et IPv6 sur des points de connexion séparés (c'est à dire désactiver la traduction des adresses IPv6 au format IPv4), utilisez l'option --disable-v4-mapped du script configure. --disable-v4-mapped est utilisé par défaut sur FreeBSD, NetBSD, et OpenBSD.
    Faudrait voir avec la commande:
    Ou essaye en modifiant ton etc/apache2/ports.conf:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    # If you just change the port or add more ports here, you will likely also
    # have to change the VirtualHost statement in
    # /etc/apache2/sites-enabled/000-default.conf
     
    Listen 0.0.0.0:80
     
     
    <IfModule ssl_module>
    	Listen 443
    </IfModule>
     
    <IfModule mod_gnutls.c>
    	Listen 443
    </IfModule>
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    pour le message d'erreur:
    Nom : 58fd3338f059c41d3b5327c1287cc2477f5d5ea9.png
Affichages : 336
Taille : 45,8 Ko
    voir ce lien:
    https://doc.owncloud.org/server/late..._warnings.html
    la documentation en français mais plus ancienne:
    http://docs.ccorazza.fr/9.1/doc_web_admin/html/configuration_server/caching_configuration.html

  2. #42
    Responsable Systèmes


    Homme Profil pro
    Gestion de parcs informatique
    Inscrit en
    Août 2011
    Messages
    17 453
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Gestion de parcs informatique
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Août 2011
    Messages : 17 453
    Points : 43 106
    Points
    43 106
    Par défaut
    Ce dernier message n'empêche pas le fonctionnement. Ne pars pas dans tous les sens, sinon tu n'y arriveras pas. fais déjà marcher le truc tel quel et tu optimiseras après.
    Ma page sur developpez.com : http://chrtophe.developpez.com/ (avec mes articles)
    Mon article sur le P2V, mon article sur le cloud
    Consultez nos FAQ : Windows, Linux, Virtualisation

  3. #43
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Bonjour .

    Je commence à me demander si j'ai correctement installé... Debian lui-même.
    Je suis revenu à l'image Clonezilla réalisée juste avant l'install de Mysql.
    J'ai modifié les fichiers de configuration ci-dessous, suivant vos conseils.
    Je ne peux plus me loguer à l'IP 192.168.0.13 (celle du serveur) pour effectuer le setup de owncloud.

    J'ai consulté ce post : https://www.howtoforge.com/community...calhost.13108/

    Or, je n'ai aucun fichier httpd.conf nulle part ! Pourtant, la documentation d'Apache y fait bien référence.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    root@deb-srv:~# apache2ctl --enable-v4-mapped
    (98)Address already in use: AH00072: make_sock: could not bind to address 192.168.0.13:80
    no listening sockets available, shutting down
    AH00015: Unable to open logs
    Action '--enable-v4-mapped' failed.
    The Apache error log may have more information.  ==>> aucune trace d'erreur ds /var/log/apache2/error.log ! la dernière remonte à 9 H 25
    La dernière erreur d'Apache :
    [Sat Jan 06 09:25:21.834651 2018] [mpm_prefork:notice] [pid 858] AH00169: caught SIGTERM, shutting down

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    netstat -ntlp | grep ":80 "
    =>> Rien. L'OS ne répond strictement plus rien.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    apache2ctl configtest
    Syntax OK

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    root@deb-srv:~# apache2ctl -S
    VirtualHost configuration:
    *:80                   is a NameVirtualHost
             default server localhost (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost localhost (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost localhost (/etc/apache2/sites-enabled/owncloud.conf:1)
    ServerRoot: "/etc/apache2"
    Main DocumentRoot: "/var/www/html"
    Main ErrorLog: "/var/log/apache2/error.log"
    Mutex rewrite-map: using_defaults
    Mutex default: dir="/var/lock/apache2" mechanism=fcntl 
    Mutex mpm-accept: using_defaults
    Mutex watchdog-callback: using_defaults
    PidFile: "/var/run/apache2/apache2.pid"
    Define: DUMP_VHOSTS
    Define: DUMP_RUN_CFG
    User: name="www-data" id=33
    Group: name="www-data" id=33
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    root@deb-srv:~# apache2ctl status
    w3m: Can't load http://localhost:80/server-status.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
     
    root@deb-srv:~# service apache2 status
     
    ● apache2.service - LSB: Apache2 web server
       Loaded: loaded (/etc/init.d/apache2)
      Drop-In: /lib/systemd/system/apache2.service.d
               └─forking.conf
       Active: inactive (dead) since sam. 2018-01-06 09:25:22 CET; 4min 42s ago
      Process: 2118 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
      Process: 2101 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
     
    janv. 06 09:25:22 deb-srv systemd[1]: Starting LSB: Apache2 web server...
    janv. 06 09:25:22 deb-srv apache2[2101]: Starting web server: apache2(98)Address already in use: AH00072: make_sock: could not bind to address 192.168.0.13:80
    janv. 06 09:25:22 deb-srv apache2[2101]: no listening sockets available, shutting down
    janv. 06 09:25:22 deb-srv apache2[2101]: AH00015: Unable to open logs
    janv. 06 09:25:22 deb-srv apache2[2101]: Action 'start' failed.
    janv. 06 09:25:22 deb-srv apache2[2101]: The Apache error log may have more information.
    janv. 06 09:25:22 deb-srv apache2[2101]: .
    janv. 06 09:25:22 deb-srv apache2[2118]: Stopping web server: apache2.
    janv. 06 09:25:22 deb-srv systemd[1]: Started LSB: Apache2 web server.
    Le point n'est plus vert, mais blanc, ds le terminal.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    root@deb-srv:~# ip a s eth0
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether f4:6d:04:20:f9:90 brd ff:ff:ff:ff:ff:ff
        inet 192.168.0.13/24 brd 192.168.0.255 scope global dynamic eth0
           valid_lft 38946sec preferred_lft 38946sec
        inet6 fe80::f66d:4ff:fe20:f990/64 scope link 
           valid_lft forever preferred_lft forever
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
     
    root@deb-srv:# netstat -tap
    Connexions Internet actives (serveurs et établies)
    Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat        PID/Program name
    tcp        0      0 localhost:mysql         *:*                     LISTEN      829/mysqld      
    tcp        0      0 *:sunrpc                *:*                     LISTEN      453/rpcbind     
    tcp        0      0 *:webmin                *:*                     LISTEN      1223/perl       
    tcp        0      0 *:40565                 *:*                     LISTEN      500/rpc.statd   
    tcp        0      0 *:ssh                   *:*                     LISTEN      601/sshd        
    tcp        0      0 localhost:ipp           *:*                     LISTEN      594/cupsd       
    tcp        0      0 localhost:smtp          *:*                     LISTEN      1203/exim4      
    tcp        0      0 deb-srv.localnet:57061  fra02s18-in-f14.1e:http ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:44778  par21s12-in-f2.1e:https ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:44774  par21s07-in-f8.1e:https ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:58286  94.31.29.16.IPYX-:https ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:39764  dub08s02-in-f4.1e:https ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:60560  xx-fbcdn-shv-01-c:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:51633  fra02s18-in-f13.1:https ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:58544  edge-star-mini-sh:https ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:37640  104.24.1.68:https       ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:53837  104.19.196.102:https    ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:42180  fra02s18-in-f2.1e:https ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:37954  fra02s18-in-f14.1:https ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:41872  fra02s18-in-f3.1e:https ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:57064  fra02s18-in-f14.1e:http ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:42422  dub08s02-in-f67.1:https ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:37982  fra02s18-in-f14.1:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:60558  xx-fbcdn-shv-01-c:https ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:57063  fra02s18-in-f14.1e:http ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:34380  192.229.233.25:https    ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:34381  192.229.233.25:https    ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:57060  fra02s18-in-f14.1e:http ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:58296  94.31.29.16.IPYX-:https ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:57071  fra02s18-in-f14.1e:http ESTABLISHED 3220/firefox-esr
    tcp        0      0 deb-srv.localnet:42192  fra02s18-in-f2.1e:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:52417  93.184.220.29:http      ESTABLISHED 3220/firefox-esr
    tcp6       0      0 [::]:sunrpc             [::]:*                  LISTEN      453/rpcbind     
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      601/sshd        
    tcp6       0      0 localhost:ipp           [::]:*                  LISTEN      594/cupsd       
    tcp6       0      0 localhost:smtp          [::]:*                  LISTEN      1203/exim4      
    tcp6       0      0 [::]:55648              [::]:*                  LISTEN      500/rpc.statd   
    tcp6       1      0 localhost:53821         localhost:ipp           CLOSE_WAIT  595/cups-browsed
    Fichiers de configuration :

    /etc/apache2/ports.conf :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    # If you just change the port or add more ports here, you will likely also
    # have to change the VirtualHost statement in
    # /etc/apache2/sites-enabled/000-default.conf
     
    #Listen 80
     
    Listen 0.0.0.0:80
    Listen 192.168.0.13:80
     
    <IfModule ssl_module>
    	Listen 443
    </IfModule>
     
    <IfModule mod_gnutls.c>
    	Listen 443
    </IfModule>
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    000-default.conf :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
     
    <VirtualHost *:80>
    	# The ServerName directive sets the request scheme, hostname and port that
    	# the server uses to identify itself. This is used when creating
    	# redirection URLs. In the context of virtual hosts, the ServerName
    	# specifies what hostname must appear in the request's Host: header to
    	# match this virtual host. For the default virtual host (this file) this
    	# value is not decisive as it is used as a last resort host regardless.
    	# However, you must set it for any further virtual host explicitly.
    	#ServerName www.example.com
     
    	ServerAdmin webmaster@localhost
    	DocumentRoot /var/www/html
     
    	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    	# error, crit, alert, emerg.
    	# It is also possible to configure the loglevel for particular
    	# modules, e.g.
    	#LogLevel info ssl:warn
     
    	ErrorLog ${APACHE_LOG_DIR}/error.log
    	CustomLog ${APACHE_LOG_DIR}/access.log combined
     
    	# For most configuration files from conf-available/, which are
    	# enabled or disabled at a global level, it is possible to
    	# include a line for only one particular virtual host. For example the
    	# following line enables the CGI configuration for this host only
    	# after it has been globally disabled with "a2disconf".
    	#Include conf-available/serve-cgi-bin.conf
    </VirtualHost>
    <Directory /var/www/html>
        AllowOverride all
    </Directory>
    apache2.conf :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
     
     
    # This is the main Apache server configuration file.  It contains the
    # configuration directives that give the server its instructions.
    # See http://httpd.apache.org/docs/2.4/ for detailed information about
    # the directives and /usr/share/doc/apache2/README.Debian about Debian specific
    # hints.
    #
    #
    # Summary of how the Apache 2 configuration works in Debian:
    # The Apache 2 web server configuration in Debian is quite different to
    # upstream's suggested way to configure the web server. This is because Debian's
    # default Apache2 installation attempts to make adding and removing modules,
    # virtual hosts, and extra configuration directives as flexible as possible, in
    # order to make automating the changes and administering the server as easy as
    # possible.
     
    # It is split into several files forming the configuration hierarchy outlined
    # below, all located in the /etc/apache2/ directory:
    #
    #	/etc/apache2/
    #	|-- apache2.conf
    #	|	`--  ports.conf
    #	|-- mods-enabled
    #	|	|-- *.load
    #	|	`-- *.conf
    #	|-- conf-enabled
    #	|	`-- *.conf
    # 	`-- sites-enabled
    #	 	`-- *.conf
    #
    #
    # * apache2.conf is the main configuration file (this file). It puts the pieces
    #   together by including all remaining configuration files when starting up the
    #   web server.
    #
    # * ports.conf is always included from the main configuration file. It is
    #   supposed to determine listening ports for incoming connections which can be
    #   customized anytime.
    #
    # * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
    #   directories contain particular configuration snippets which manage modules,
    #   global configuration fragments, or virtual host configurations,
    #   respectively.
    #
    #   They are activated by symlinking available configuration files from their
    #   respective *-available/ counterparts. These should be managed by using our
    #   helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
    #   their respective man pages for detailed information.
    #
    # * The binary is called apache2. Due to the use of environment variables, in
    #   the default configuration, apache2 needs to be started/stopped with
    #   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
    #   work with the default configuration.
     
     
    # Global configuration
    #
     
    #
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    #
    # NOTE!  If you intend to place this on an NFS (or otherwise network)
    # mounted filesystem then please read the Mutex documentation (available
    # at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
    # you will save yourself a lot of trouble.
    #
    # Do NOT add a slash at the end of the directory path.
    #
    #ServerRoot "/etc/apache2"
    ServerName localhost
     
    #ExtendedStatus On
    #<Location /server-status>
    #     SetHandler server-status
    #     Order deny,allow
    #     Deny from all
    #     Allow from 192.168.0.13
    #</Location>
     
    #
    # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
    #
    Mutex file:${APACHE_LOCK_DIR} default
     
    #
    # PidFile: The file in which the server should record its process
    # identification number when it starts.
    # This needs to be set in /etc/apache2/envvars
    #
    PidFile ${APACHE_PID_FILE}
     
    #
    # Timeout: The number of seconds before receives and sends time out.
    #
    Timeout 300
     
    #
    # KeepAlive: Whether or not to allow persistent connections (more than
    # one request per connection). Set to "Off" to deactivate.
    #
    KeepAlive On
     
    #
    # MaxKeepAliveRequests: The maximum number of requests to allow
    # during a persistent connection. Set to 0 to allow an unlimited amount.
    # We recommend you leave this number high, for maximum performance.
    #
    MaxKeepAliveRequests 100
     
    #
    # KeepAliveTimeout: Number of seconds to wait for the next request from the
    # same client on the same connection.
    #
    KeepAliveTimeout 5
     
     
    # These need to be set in /etc/apache2/envvars
    User ${APACHE_RUN_USER}
    Group ${APACHE_RUN_GROUP}
     
    #
    # HostnameLookups: Log the names of clients or just their IP addresses
    # e.g., www.apache.org (on) or 204.62.129.132 (off).
    # The default is off because it'd be overall better for the net if people
    # had to knowingly turn this feature on, since enabling it means that
    # each client request will result in AT LEAST one lookup request to the
    # nameserver.
    #
    HostnameLookups Off
     
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here.  If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    #
    ErrorLog ${APACHE_LOG_DIR}/error.log
     
    #
    # LogLevel: Control the severity of messages logged to the error_log.
    # Available values: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the log level for particular modules, e.g.
    # "LogLevel info ssl:warn"
    #
    LogLevel warn
     
    # Include module configuration:
    IncludeOptional mods-enabled/*.load
    IncludeOptional mods-enabled/*.conf
     
    # Include list of ports to listen on
    Include ports.conf
     
     
    # Sets the default security model of the Apache2 HTTPD server. It does
    # not allow access to the root filesystem outside of /usr/share and /var/www.
    # The former is used by web applications packaged in Debian,
    # the latter may be used for local directories served by the web server. If
    # your system is serving content from a sub-directory in /srv you must allow
    # access here, or in any related virtual host.
    <Directory />
    	Options FollowSymLinks
    	AllowOverride None
    	Require all denied
    </Directory>
     
    <Directory /usr/share>
    	AllowOverride None
    	Require all granted
    </Directory>
     
    <Directory /var/www/>
    	Options Indexes FollowSymLinks
    	AllowOverride all
    	Require all granted
    </Directory>
     
    #<Directory /srv/>
    #	Options Indexes FollowSymLinks
    #	AllowOverride None
    #	Require all granted
    #</Directory>
     
     
    # AccessFileName: The name of the file to look for in each directory
    # for additional configuration directives.  See also the AllowOverride
    # directive.
    #
    AccessFileName .htaccess
     
    #
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    #
    <FilesMatch "^\.ht">
    	Require all denied
    </FilesMatch>
     
     
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive.
    #
    # These deviate from the Common Log Format definitions in that they use %O
    # (the actual bytes sent including headers) instead of %b (the size of the
    # requested file), because the latter makes it impossible to detect partial
    # requests.
    #
    # Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
    # Use mod_remoteip instead.
    #
    LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
    LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %O" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
     
    # Include of directories ignores editors' and dpkg's backup files,
    # see README.Debian for details.
     
    # Include generic snippets of statements
    IncludeOptional conf-enabled/*.conf
     
    # Include the virtual host configurations:
    IncludeOptional sites-enabled/*.conf
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    owncloud.conf :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
     
    <VirtualHost *:80>
    	# The ServerName directive sets the request scheme, hostname and port that
    	# the server uses to identify itself. This is used when creating
    	# redirection URLs. In the context of virtual hosts, the ServerName
    	# specifies what hostname must appear in the request's Host: header to
    	# match this virtual host. For the default virtual host (this file) this
    	# value is not decisive as it is used as a last resort host regardless.
    	# However, you must set it for any further virtual host explicitly.
    	#ServerName www.example.com
     
    	ServerAdmin webmaster@localhost
    	DocumentRoot /var/www/html
     
    	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    	# error, crit, alert, emerg.
    	# It is also possible to configure the loglevel for particular
    	# modules, e.g.
    	#LogLevel info ssl:warn
     
    	ErrorLog ${APACHE_LOG_DIR}/error.log
    	CustomLog ${APACHE_LOG_DIR}/access.log combined
     
    	# For most configuration files from conf-available/, which are
    	# enabled or disabled at a global level, it is possible to
    	# include a line for only one particular virtual host. For example the
    	# following line enables the CGI configuration for this host only
    	# after it has been globally disabled with "a2disconf".
    	#Include conf-available/serve-cgi-bin.conf
    </VirtualHost>
    <Directory /var/www/html>
        AllowOverride all
    </Directory>
    Fichier /etc/hosts :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    127.0.0.1	localhost
    192.168.0.13	deb-srv.localnet dev-srv
     
    # The following lines are desirable for IPv6 capable hosts
    ::1     localhost ip6-localhost ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    Et si j'avais tout simplement mal installé Debian ?

  4. #44
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    Bonjour,
    Or, je n'ai aucun fichier httpd.conf nulle part ! Pourtant, la documentation d'Apache y fait bien référence.
    Souvent j'ai vu httpd.conf = apache2.conf cela dépend de l'installation.
    Quel version Debian utilises-tu?
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    janv. 06 09:25:22 deb-srv systemd[1]: Starting LSB: Apache2 web server...
    janv. 06 09:25:22 deb-srv apache2[2101]: Starting web server: apache2(98)Address already in use: AH00072: make_sock: could not bind to address 192.168.0.13:80
    Ceci me rappel une erreur que j'avais déja , le serveur Apache ne peut pas démarrer vu qu'il est déja utiliser , quel est ton installation Debian , un installation -chroot ?

  5. #45
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Debian 8, Jessie.
    Le Stretch n'est pas mûr, pour les réseaux. Enfin : en automne, il ne l'était pas. Je ne pouvais pas même mapper le réseau, alors pour les partages Samba :/

    Je l'ai installé en graphique, et j'ai coché Serveur SSH.

    Dans la salle informatique de l'association dont je suis membre, les types étaient ces cadors !! Ils ont monté ça en ligne de commande... et en deux jours ! Respect...

    Et si je créais ce fichier .conf ?

    15 H 10.
    Oh ! là là !!
    J'ai parcouru la documentation sur l'installation en chroot,
    et je m'aperçois de ceci : fichier /etc/resolv.conf :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    # Generated by NetworkManager
    nameserver 192.168.0.254
    C'est l'IP du routeur, ça : qu'estce-que ça vient faire ici ? C'est normal ?


    Et dans /etc/netconfig je vois ça : (RIEN sur l'ipv4)
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    # The network configuration file. This file is currently only used in
    # conjunction with the TI-RPC code in the libtirpc library.
    #
    # Entries consist of:
    #
    #       <network_id> <semantics> <flags> <protofamily> <protoname> \
    #               <device> <nametoaddr_libs>
    #
    # The <device> and <nametoaddr_libs> fields are always empty in this
    # implementation.
    #
    udp        tpi_clts      v     inet     udp     -       -
    tcp        tpi_cots_ord  v     inet     tcp     -       -
    udp6       tpi_clts      v     inet6    udp     -       -
    tcp6       tpi_cots_ord  v     inet6    tcp     -       -
    rawip      tpi_raw       -     inet      -      -       -
    local      tpi_cots_ord  -     loopback  -      -       -
    unix       tpi_cots_ord  -     loopback  -      -       -
    Je vais voir ce que je peux modifier.

  6. #46
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    # Generated by NetworkManager
    nameserver 192.168.0.254
    tout a fait normal , s'est la passerelle de ton routeur , la freebox

    Je l'ai installé en graphique, et j'ai coché Serveur SSH.
    Je ne connais pas?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    udp        tpi_clts      v     inet     udp <- ceci devrait être IPV4 
    udp6       tpi_clts      v     inet6    udp <- l'iPV6

    Donc s'est bien une installation debian -chroot :
    -Tu accède en SSH depuis un pc mise en reseau avec Putty en ligne de commande?
    -Tu y accède aussi par Filezilla ou autre?
    Faut savoir qu'une installation chroot est installer par-dessus ou en parallèle d'une autre installation , genre en image virtuel.
    Alors si l'installation de base occupe le port 80 , il faut le déplacer sur le port 8080 , pour libérer ton installation chrooter,
    S'est ce que j'ai fait avec mon installation , je suis également sous Debian 8 Jessie chrooter
    tu peux voir comment ça s'installe:
    https://www.debian.org/releases/jess...apds03.html.fr

  7. #47
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Il y a du nouveau !

    Tu as installé Debian dans un Hyperviseur, c'est ça ? Moi pas : en dur. Faute de savoir encore comment le faire en MV.

    Nouveaux test : c'est déjà mieux !
    D'abord, m'étant inspiré des fichiers de configuration de la salle informatique, j'ai lu leur fichiers sur les réseaux. Et, après les modifs suivantes, comme dans la salle, il démarre plus lentement (même si j'ai posé un SSD sur mon serveur) et affiche des messages similaires. au boot.
    La commande reboot, par contre, fait gueuler Apache - pas dans la salle.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    service apache2 restart # plus de drame
    Là, l'OS répond. Mais il regarde toujours du côté de l'ipv6
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    root@deb-srv:~# netstat -ntlp | grep ":80 "
    tcp6       0      0 :::80                   :::*                    LISTEN      2231/apache2

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    root@deb-srv:~# apache2ctl -S
    VirtualHost configuration:
    *:80                   is a NameVirtualHost
             default server localhost (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost localhost (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost localhost (/etc/apache2/sites-enabled/owncloud.conf:1)
    ServerRoot: "/etc/apache2"
    Main DocumentRoot: "/var/www/html"
    Main ErrorLog: "/var/log/apache2/error.log"
    Mutex mpm-accept: using_defaults
    Mutex watchdog-callback: using_defaults
    Mutex rewrite-map: using_defaults
    Mutex default: dir="/var/lock/apache2" mechanism=fcntl 
    PidFile: "/var/run/apache2/apache2.pid"
    Define: DUMP_VHOSTS
    Define: DUMP_RUN_CFG
    User: name="www-data" id=33
    Group: name="www-data" id=33

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    root@deb-srv:~# apache2ctl configtest
    Syntax OK
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
     
    root@deb-srv:~# apache2ctl status
    Apache Server Status for localhost (via ::1)
     
    Server Version: Apache/2.4.10 (Debian)
    Server MPM: prefork
    Server Built: Sep 20 2017 04:37:43
     
    -------------------------------------------------------------------------------
     
    Current Time: Saturday, 06-Jan-2018 16:04:35 CET
    Restart Time: Saturday, 06-Jan-2018 16:01:53 CET
    Parent Server Config. Generation: 1
    Parent Server MPM Generation: 0
    Server uptime: 2 minutes 42 seconds
    Server load: 0.35 0.36 0.19
    Total accesses: 1 - Total Traffic: 1 kB
    CPU Usage: u0 s0 cu0 cs0
    .00617 requests/sec - 6 B/second - 1024 B/request
    1 requests currently being processed, 4 idle workers
     
    _W___...........................................................
    ................................................................
    ......................
     
    Scoreboard Key:
    "_" Waiting for Connection, "S" Starting up, "R" Reading Request,
    "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
    "C" Closing connection, "L" Logging, "G" Gracefully finishing,
    "I" Idle cleanup of worker, "." Open slot with no current process
    service apache2 status
    Repassé au vert !

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    root@deb-srv:~# service apache2 status
    ● apache2.service - LSB: Apache2 web server
       Loaded: loaded (/etc/init.d/apache2)
      Drop-In: /lib/systemd/system/apache2.service.d
               └─forking.conf
       Active: active (running) since sam. 2018-01-06 16:01:54 CET; 3min 15s ago
      Process: 2194 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
      Process: 2217 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
       CGroup: /system.slice/apache2.service
               ├─2231 /usr/sbin/apache2 -k start
               ├─2235 /usr/sbin/apache2 -k start
               ├─2236 /usr/sbin/apache2 -k start
               ├─2237 /usr/sbin/apache2 -k start
               ├─2238 /usr/sbin/apache2 -k start
               └─2239 /usr/sbin/apache2 -k start
     
    janv. 06 16:01:54 deb-srv apache2[2217]: Starting web server: apache2.
    janv. 06 16:01:54 deb-srv systemd[1]: Started LSB: Apache2 web server.
    Et la meilleure :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    root@deb-srv:~# apache2ctl --enable-v4-mapped
    httpd (pid 2231) already running
    Apparemment, il accepte l'ipv4, maintenant.

    Fichier /etc/apache2/ports.conf :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
     
    # If you just change the port or add more ports here, you will likely also
    # have to change the VirtualHost statement in
    # /etc/apache2/sites-enabled/000-default.conf
     
    # Rédactivé ceci :
    Listen 80
     
     
    Listen 0.0.0.0:80
     
    <IfModule ssl_module>
    	Listen 443
    </IfModule>
     
    <IfModule mod_gnutls.c>
    	Listen 443
    </IfModule>
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    /etc/network/interfaces :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
     
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
     
     
    #source /etc/network/interfaces/*
     
    # The loopback network interface
    auto lo
    iface lo inet loopback
     
    # The primary network interface
    auto eth0
    allow-hotplug eth0
    iface eth0 inet dhcp
     
    #iface eth0 inet static
    #address 192.168.1.137
    #netmask 255.255.255.0
    #gateway 192.168.1.1
    #network 192.168.1.0
    #brodcast 192.168.1.255
    Je vais tenter le setup de Ownclou, et je reviens à tombeau ouvert.

  8. #48
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    Bravo, Apache démarre enfin
    Quel a été le problème?
    Donc avec la commande:
    Tu devrait voir Apache a présent?

    pour ton fichiers etc/network/interfaces :
    Moi j'avais du mettre la configuration sur Static , le dhcp ne fonctionnais pas:
    Juste au cas ou
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
     
     
    #source /etc/network/interfaces/*
     
    # The loopback network interface
    auto lo
    iface lo inet loopback
     
    # The primary network interface
    auto eth0
    iface eth0 inet static
      address 192.168.0.13
      netmask 255.255.255.0
      broadcast 192.168.0.255
      mtu 1500
      gateway 192.168.0.254
    ça devrais être juste pour ta configuration

  9. #49
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Oui !

    Je le vois :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
     
    Connexions Internet actives (serveurs et établies)
    Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat        PID/Program name
    tcp        0      0 localhost:mysql         *:*                     LISTEN      898/mysqld      
    tcp        0      0 *:sunrpc                *:*                     LISTEN      596/rpcbind     
    tcp        0      0 *:webmin                *:*                     LISTEN      1290/perl       
    tcp        0      0 *:ssh                   *:*                     LISTEN      694/sshd        
    tcp        0      0 localhost:ipp           *:*                     LISTEN      690/cupsd       
    tcp        0      0 localhost:smtp          *:*                     LISTEN      1286/exim4      
    tcp        0      0 *:40256                 *:*                     LISTEN      605/rpc.statd   
    tcp        0      0 deb-srv.localnet:35821  a2-16-117-57.deplo:http ESTABLISHED 1766/firefox-esr
    tcp        0      0 deb-srv.localnet:35823  a2-16-117-57.deplo:http ESTABLISHED 1766/firefox-esr
    tcp        0      0 deb-srv.localnet:37224  par10s33-in-f14.1e:http ESTABLISHED 1766/firefox-esr
    tcp        0      0 deb-srv.localnet:37209  par10s33-in-f14.1e:http ESTABLISHED 1766/firefox-esr
    tcp        0      0 deb-srv.localnet:34347  40.100.174.194:imaps    ESTABLISHED 1576/thunderbird
    tcp        0      0 deb-srv.localnet:59264  par10s27-in-f8.1e:https ESTABLISHED 1766/firefox-esr
    tcp        0      0 deb-srv.localnet:37223  par10s33-in-f14.1e:http ESTABLISHED 1766/firefox-esr
    tcp        0      0 deb-srv.localnet:41787  par21s11-in-f10.1:https ESTABLISHED 1766/firefox-esr
    tcp        0      0 deb-srv.localnet:51435  ec2-52-10-153-199:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:34348  40.100.174.194:imaps    ESTABLISHED 1576/thunderbird
    tcp        0      0 deb-srv.localnet:51402  93.184.220.29:http      ESTABLISHED 1766/firefox-esr
    tcp        0      0 deb-srv.localnet:35822  a2-16-117-57.deplo:http ESTABLISHED 1766/firefox-esr
    tcp        0      0 deb-srv.localnet:51401  93.184.220.29:http      ESTABLISHED 1766/firefox-esr
    tcp        0      0 deb-srv.localnet:37357  a88-221-83-154.dep:http ESTABLISHED 1766/firefox-esr
    tcp        0      0 deb-srv.localnet:34339  40.100.174.194:imaps    ESTABLISHED 1576/thunderbird
    tcp        0      0 deb-srv.localnet:40800  104.27.180.181:https    ESTABLISHED 1576/thunderbird
    tcp        0      0 deb-srv.localnet:34338  40.100.174.194:imaps    ESTABLISHED 1576/thunderbird
    tcp        0      0 deb-srv.localnet:38397  104.27.163.196:https    ESTABLISHED 1576/thunderbird
    tcp        0      0 deb-srv.localnet:43135  imap.1und1.de:imaps     ESTABLISHED 1576/thunderbird
    tcp        0      0 deb-srv.localnet:35808  a2-16-117-57.deplo:http ESTABLISHED 1766/firefox-esr
    tcp        0      0 deb-srv.localnet:43145  imap.1und1.de:imaps     ESTABLISHED 1576/thunderbird
    tcp6       0      0 [::]:sunrpc             [::]:*                  LISTEN      596/rpcbind     
    tcp6       0      0 [::]:http               [::]:*                  LISTEN      900/apache2     
    tcp6       0      0 [::]:44722              [::]:*                  LISTEN      605/rpc.statd   
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      694/sshd        
    tcp6       0      0 localhost:ipp           [::]:*                  LISTEN      690/cupsd       
    tcp6       0      0 localhost:smtp          [::]:*                  LISTEN      1286/exim4      
    tcp6       1      0 localhost:46165         localhost:ipp           CLOSE_WAIT  691/cups-browsed
    Et j'ai pu lancer le setup de owncloud en me loguant, sur le serveur, à l'IP 192.168.0.13
    Mais... owncloud client, sur la bécane Windows réagit exactement pareil : même message : "delai d'attente... status.php".
    On n'y est pas encore.
    Je vais voir tes fichiers, et tenter de comprendre pourquoi le serveur ne fonctionne pas.
    De toute façon, tout cela confirme ce que toi et moi savons déjà : l'informatique, une science exacte ? Hum ! Sans la bidouille ? Hum !

  10. #50
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    oui mais toujours pas de IPV4 pour Apache , je pense que s'est le problème:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    tcp6       0      0 [::]:http               [::]:*                  LISTEN      900/apache2
    il te manque la ligne:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    tcp       0      0 [::]:http               [::]:*                  LISTEN      900/apache2
    essaye de modifier le fichiers interfaces , défois qu'il ne reçoit pas l'ip par le dhcp , on ne sais jamais..

    Une science exact? lol pas sur non plus

    A essayer également :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    127.0.0.1	localhost
    192.168.0.13	deb-srv.localnet dev-srv
     
    # The following lines are desirable for IPv6 capable hosts  <----   supprime ou déactive ses lignes ,il ne sont pas présente chez moi
    #::1     localhost ip6-localhost ip6-loopback
    #ff02::1 ip6-allnodes
    #ff02::2 ip6-allrouters

  11. #51
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Salut, Allan :hello:

    J'ai fait une image Clonezilla de mon serveur, avant les manips en question.
    Là, je suis dans la salle informatique de l'assos. Et, sans vergogne, je puise des infos sur les fichiers de configuration réseau du serveur qui fonctionne déjà. Mais en HTTPS, puisque c'est moi qui l'ai fait passer en HTTPS. Le tuto est ici : https://foxty.io/passer-owncloud-https/

    Quel dommage que le même type n'ait pas réalisé un tuto pour le HTTP

    Après tout, on apprend aussi comme ça

    Je donne le retour des manips une fois chez moi.
    A plus

  12. #52
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Je reviens vers vous, bredouille.
    Désolé pour hier : ne regardant pas la TV en direct, j'ai eu un choc en lançant Firefox qui démarre sur la page du Monde.
    France Gall nous a quittés : tout un pan de ma jeunesse... Pouvais plus travailler.
    J'ai repris aujourd'hui. Dès potron-minet.

    Je peux à nouveau me loguer ds owncloud sur le serveur, mais pas depuis la bécane Windows,
    que ce soit via owncloud ou en WebDav htptp://192.168.0.13/index.php/login , ni en http://192.168.0.13

    J'ai cherché comment désactiver l'ipv6.
    J'ai suivi ces deux tutos :
    https://www.memoinfo.fr/tutoriels-li...v6-sur-debian/
    et
    https://www.admin-linux.fr/desactiver-lipv6/

    Fichier /etc/hosts modifié comme suit :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
     
    127.0.0.1	localhost
    192.168.0.13	deb-srv.localnet dev-srv
     
    # The following lines are desirable for IPv6 capable hosts
    #::1     localhost ip6-localhost ip6-loopback
    #ff02::1 ip6-allnodes
    #ff02::2 ip6-allrouters
     
    ::1     localhost ip4-localhost ip4-loopback
    ff02::1 ip4-allnodes
    ff02::2 ip4-allrouters
    Commande :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
     
    root@deb-srv:~# service networking status
    ● networking.service - LSB: Raise network interfaces.
       Loaded: loaded (/etc/init.d/networking)
      Drop-In: /run/systemd/generator/networking.service.d
               └─50-insserv.conf-$network.conf
            /lib/systemd/system/networking.service.d
               └─network-pre.conf
       Active: active (running) since lun. 2018-01-08 19:46:35 CET; 2min 39s ago
      Process: 1656 ExecStop=/etc/init.d/networking stop (code=exited, status=0/SUCCESS)
      Process: 1724 ExecStart=/etc/init.d/networking start (code=exited, status=0/SUCCESS)
       CGroup: /system.slice/networking.service
               └─1829 dhclient -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
     
    janv. 08 19:46:35 deb-srv dhclient[1815]: DHCPREQUEST on eth0 to 255.255.255.255 port 67
    janv. 08 19:46:35 deb-srv dhclient[1815]: DHCPOFFER from 192.168.0.254
    janv. 08 19:46:35 deb-srv dhclient[1815]: DHCPACK from 192.168.0.254
    janv. 08 19:46:35 deb-srv networking[1724]: DHCPREQUEST on eth0 to 255.255.255.255 port 67
    janv. 08 19:46:35 deb-srv networking[1724]: DHCPOFFER from 192.168.0.254
    janv. 08 19:46:35 deb-srv networking[1724]: DHCPACK from 192.168.0.254
    janv. 08 19:46:35 deb-srv networking[1724]: RTNETLINK answers: File exists
    janv. 08 19:46:35 deb-srv dhclient[1815]: bound to 192.168.0.13 -- renewal in 19132 seconds.
    janv. 08 19:46:35 deb-srv networking[1724]: bound to 192.168.0.13 -- renewal in 19132 seconds.
    janv. 08 19:46:35 deb-srv networking[1724]: done.
    janv. 08 19:46:35 deb-srv systemd[1]: Started LSB: Raise network interfaces..
    Les tests d'Apache donnent ça :


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    root@deb-srv:~# netstat -ntlp | grep ":80 "
    tcp6       0      0 :::80                   :::*                    LISTEN      1601/apache2
    Sur l'IP :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    root@deb-srv:~# ip a s eth0
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether f4:6d:04:20:f9:90 brd ff:ff:ff:ff:ff:ff
        inet 192.168.0.13/24 brd 192.168.0.255 scope global eth0
           valid_lft forever preferred_lft forever
        inet6 fe80::f66d:4ff:fe20:f990/64 scope link 
           valid_lft forever preferred_lft forever
    Et, là encore, ipv6 !!! :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    root@deb-srv:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr f4:6d:04:20:f9:90  
              inet adr:192.168.0.13  Bcast:192.168.0.255  Masque:255.255.255.0
              adr inet6: fe80::f66d:4ff:fe20:f990/64 Scope:Lien
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:40 errors:0 dropped:0 overruns:0 frame:0
              TX packets:127 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 lg file transmission:1000 
              RX bytes:6869 (6.7 KiB)  TX bytes:17694 (17.2 KiB)
     
    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:65536  Metric:1
              RX packets:57 errors:0 dropped:0 overruns:0 frame:0
              TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 lg file transmission:0 
              RX bytes:20926 (20.4 KiB)  TX bytes:20926 (20.4 KiB)
    apache2ctl -S :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    root@deb-srv:~# apache2ctl -S
    VirtualHost configuration:
    *:80                   is a NameVirtualHost
             default server localhost (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost localhost (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost localhost (/etc/apache2/sites-enabled/owncloud.conf:1)
    ServerRoot: "/etc/apache2"
    Main DocumentRoot: "/var/www/html"
    Main ErrorLog: "/var/log/apache2/error.log"
    Mutex default: dir="/var/lock/apache2" mechanism=fcntl 
    Mutex mpm-accept: using_defaults
    Mutex watchdog-callback: using_defaults
    Mutex rewrite-map: using_defaults
    PidFile: "/var/run/apache2/apache2.pid"
    Define: DUMP_VHOSTS
    Define: DUMP_RUN_CFG
    User: name="www-data" id=33
    Group: name="www-data" id=33
    apache2ctl configtest : Syntax OK

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
     
    apache2ctl status :
     
    root@deb-srv:~# apache2ctl status
    Apache Server Status for localhost (via ::1)
     
    Server Version: Apache/2.4.10 (Debian)
    Server MPM: prefork
    Server Built: Sep 20 2017 04:37:43
     
    -------------------------------------------------------------------------------
     
    Current Time: Monday, 08-Jan-2018 19:51:39 CET
    Restart Time: Monday, 08-Jan-2018 19:45:12 CET
    Parent Server Config. Generation: 1
    Parent Server MPM Generation: 0
    Server uptime: 6 minutes 27 seconds
    Server load: 0.08 0.09 0.06
    Total accesses: 0 - Total Traffic: 0 kB
    CPU Usage: u0 s0 cu0 cs0
    0 requests/sec - 0 B/second -
    1 requests currently being processed, 4 idle workers
     
    W____...........................................................
    ................................................................
    ......................
     
    Scoreboard Key:
    "_" Waiting for Connection, "S" Starting up, "R" Reading Request,
    "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
    "C" Closing connection, "L" Logging, "G" Gracefully finishing,
    "I" Idle cleanup of worker, "." Open slot with no current process
    Et alors là, c'est le meilleur !!

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    root@deb-srv:~# service httpd status
    ● httpd.service
       Loaded: not-found (Reason: No such file or directory)
       Active: inactive (dead)
    root@deb-srv:~# service httpd restart
    Failed to restart httpd.service: Unit httpd.service failed to load: No such file or directory.
    ET POURTANT (c'est fou !!)

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    root@deb-srv:~# apache2ctl --enable-v4-mapped
    httpd (pid 1601) already running ====>>>> Ah, oui ? Déjà running... mais il n'existe nulle part selon 'service httpd status' !


    Euh...

    Il n'y aurait pas un outil graphique de config réseau, comme on a pour Samba GAdminSamba ?

    Fichier /etc/NetworkManage/system-connections/Wired connection 1 (avec les espaces, ce qui est rare sous Linux :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    # Fichier /etc/NetworkManage/system-connections/Wired connection 1
    
    [connection]
    id=Wired connection 1
    uuid=5aebce84-6a59-4015-ae9f-92affc5e7999
    type=802-3-ethernet
    
    [802-3-ethernet]
    
    [ipv4]
    method=auto
    
    [ipv6]
    method=auto
    #ip6-privacy=2   ==>> désactivé par moi
    ip4-privacy=2     ==>> rajouté par moi. Pourquoi 2 ?
    Et ce n'est pas tout : regardez ces répertoires remplis de fichiers vides. Même en root, je ne peux même pas les modifier (ce qui est peut-être réservé à l'OS) :

    ipv6 :



    ipv4 :


  13. #53
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    hello Bvsud ,
    Oui sacré coup pour France Gall
    Pour la bidouille Linux :
    As tu essaye comme je t'avais proposer? de supprimer les ligne des IPV6 dans le fichier hosts?
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    127.0.0.1	localhost
    192.168.0.13	deb-srv.localnet dev-srv
     
    # The following lines are desirable for IPv6 capable hosts  <----   supprime ou désactive ses lignes 
    #::1     localhost ip6-localhost ip6-loopback
    #ff02::1 ip6-allnodes
    #ff02::2 ip6-allrouters
    et de mettre les ip dans le fichier interfaces:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    #source /etc/network/interfaces/*
     
    # The loopback network interface
    auto lo
    iface lo inet loopback
     
    # The primary network interface
    auto eth0
    iface eth0 inet static
      address 192.168.0.13
      netmask 255.255.255.0
      broadcast 192.168.0.255
      mtu 1500
      gateway 192.168.0.254

  14. #54
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Salut, Allan :hello:

    Oui. Voici le fichier interfaces :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
     
    #/etc/network/interfaces
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
     
     
    #source /etc/network/interfaces/*
     
    # The loopback network interface
    auto lo
    iface lo inet loopback
     
    # The primary network interface
      auto eth0
      iface eth0 inet static
      address 192.168.0.13
      netmask 255.255.255.0
      broadcast 192.168.0.255
      mtu 1500
      gateway 192.168.0.254
     
    # Rajouté par moi (ligne présente ds la salle) :
      iface eth0 inet dhcp
     
     
    # Coonseillé par Allan : 
    # The following lines are desirable for IPv6 capable hosts  <----   supprime ou déactive ses lignes ,il ne sont pas présente chez moi
    #::1     localhost ip6-localhost ip6-loopback
    #ff02::1 ip6-allnodes
    #ff02::2 ip6-allrouters
     
    # Conseillé par tuto https://www.memoinfo.fr/tutoriels-linux/desactiver-ipv6-sur-debian/
    #iface eth0 inet6 static
    # address 2001:41D0:1:CD6b::1
    # netmask 128
    # post-up /sbin/ip -f inet6 route add 2001:41D0:1:CDef:ff:ff:ff:ff dev eth0
    # post-up /sbin/ip -f inet6 route add default via 2001:41D0:1:Ceff:ff:ff:ff:ff
    # pre-down /sbin/ip -f inet6 route del default via 2001:41D0:1:Ceff:ff:ff:ff:ff
    # pre-down /sbin/ip -f inet6 route del 2001:41D0:1:Ceff:ff:ff:ff:ff dev eth0
    Fichier /etc/sysctl/99--sysctl :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
     
    # FICHIER /etc/sysctl/99-sysctl : c'est un lien symbolique. Apparemment vers /etc/sysctl/sysctl.conf. 
    # J'ai suivi le lien avec Doublecommander,
    # et voici ce qu'il contient.
    # J'ai modifié certaines lignes. Elles sont signalées.
     
    #
    # /etc/sysctl.conf - Configuration file for setting system variables
    # See /etc/sysctl.d/ for additional system variables.
    # See sysctl.conf (5) for information.
    #
     
    #kernel.domainname = example.com
     
    # Uncomment the following to stop low-level messages on console
    #kernel.printk = 3 4 1 3
     
    ##############################################################3
    # Functions previously found in netbase
    #
     
    # Uncomment the next two lines to enable Spoof protection (reverse-path filter)
    # Turn on Source Address Verification in all interfaces to
    # prevent some spoofing attacks
    #net.ipv4.conf.default.rp_filter=1
    #net.ipv4.conf.all.rp_filter=1
     
    # Uncomment the next line to enable TCP/IP SYN cookies
    # See http://lwn.net/Articles/277146/
    # Note: This may impact IPv6 TCP sessions too
    net.ipv4.tcp_syncookies=1  #==>> modifiée par moi
     
    # Uncomment the next line to enable packet forwarding for IPv4
    net.ipv4.ip_forward=1 #==>> modifiée par moi
     
    # Uncomment the next line to enable packet forwarding for IPv6
    #  Enabling this option disables Stateless Address Autoconfiguration
    #  based on Router Advertisements for this host
    #net.ipv6.conf.all.forwarding=1
     
     
    ###################################################################
    # Additional settings - these settings can improve the network
    # security of the host and prevent against some network attacks
    # including spoofing attacks and man in the middle attacks through
    # redirection. Some network environments, however, require that these
    # settings are disabled so review and enable them as needed.
    #
    # Do not accept ICMP redirects (prevent MITM attacks)
    #net.ipv4.conf.all.accept_redirects = 0
    #net.ipv6.conf.all.accept_redirects = 0
    # _or_
    # Accept ICMP redirects only for gateways listed in our default
    # gateway list (enabled by default)
    net.ipv4.conf.all.secure_redirects = 1 #==>> modifiée par moi
    #
    # Do not send ICMP redirects (we are not a router)
    #net.ipv4.conf.all.send_redirects = 0
    #
    # Do not accept IP source route packets (we are not a router)
    net.ipv4.conf.all.accept_source_route = 0
    #net.ipv6.conf.all.accept_source_route = 0
    #
    # Log Martian Packets
    #net.ipv4.conf.all.log_martians = 1
    #
     
    ############# LIGNES RAJOUTEES PAR MOI ####################"
     
    # désactivation du support pour les interfaces actuelles
    sysctl -w net.ipv6.conf.all.disable_ipv6=1
     
    # désactivation du support de l’autoconfiguration
    sysctl -w net.ipv6.conf.all.autoconf=0
     
    # désactivation du support par défaut pour les nouvelles interfaces
    sysctl -w net.ipv6.conf.default.disable_ipv6=1
     
    # et de l'autoconfiguration 
    sysctl -w net.ipv6.conf.default.autoconf=0
    /etc/sysctl/sysctl.conf :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
     
     
    # Fichier /etc/sysctl.conf
    #
    # /etc/sysctl.conf - Configuration file for setting system variables
    # See /etc/sysctl.d/ for additional system variables.
    # See sysctl.conf (5) for information.
    #
     
    #kernel.domainname = example.com
     
    # Uncomment the following to stop low-level messages on console
    #kernel.printk = 3 4 1 3
     
    ##############################################################3
    # Functions previously found in netbase
    #
     
    # Uncomment the next two lines to enable Spoof protection (reverse-path filter)
    # Turn on Source Address Verification in all interfaces to
    # prevent some spoofing attacks
    #net.ipv4.conf.default.rp_filter=1
    #net.ipv4.conf.all.rp_filter=1
     
    # Uncomment the next line to enable TCP/IP SYN cookies
    # See http://lwn.net/Articles/277146/
    # Note: This may impact IPv6 TCP sessions too
    #net.ipv4.tcp_syncookies=1
     
    # Uncomment the next line to enable packet forwarding for IPv4
    #net.ipv4.ip_forward=1
     
    # Uncomment the next line to enable packet forwarding for IPv6
    #  Enabling this option disables Stateless Address Autoconfiguration
    #  based on Router Advertisements for this host
    #net.ipv6.conf.all.forwarding=1
     
     
    ###################################################################
    # Additional settings - these settings can improve the network
    # security of the host and prevent against some network attacks
    # including spoofing attacks and man in the middle attacks through
    # redirection. Some network environments, however, require that these
    # settings are disabled so review and enable them as needed.
    #
    # Do not accept ICMP redirects (prevent MITM attacks)
    #net.ipv4.conf.all.accept_redirects = 0
    #net.ipv6.conf.all.accept_redirects = 0
    # _or_
    # Accept ICMP redirects only for gateways listed in our default
    # gateway list (enabled by default)
    # net.ipv4.conf.all.secure_redirects = 1
    #
    # Do not send ICMP redirects (we are not a router)
    #net.ipv4.conf.all.send_redirects = 0
    #
    # Do not accept IP source route packets (we are not a router)
    #net.ipv4.conf.all.accept_source_route = 0
    #net.ipv6.conf.all.accept_source_route = 0
    #
    # Log Martian Packets
    #net.ipv4.conf.all.log_martians = 1
    #
     
    ############# LIGNES RAJOUTEES PAR MOI ####################"
     
    # désactivation du support pour les interfaces actuelles
    sysctl -w net.ipv6.conf.all.disable_ipv6=1
     
    # désactivation du support de l’autoconfiguration
    sysctl -w net.ipv6.conf.all.autoconf=0
     
    # désactivation du support par défaut pour les nouvelles interfaces
    sysctl -w net.ipv6.conf.default.disable_ipv6=1
     
    # et de l'autoconfiguration 
    sysctl -w net.ipv6.conf.default.autoconf=0
    Procédure suivie pour l'activation de l'ipv4 :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
     
    #Impossible d'avoir accès en écriture  au dossier /proc/sys/net/ipv4/conf/all 
     
    sysctl -w /proc/sys/net/ipv4/conf/all/enable_ipv4=1
    sysctl: cannot stat /proc/sys/net/ipv4/conf/all/enable_ipv4: Aucun fichier ou dossier de ce type
     
    root@deb-srv:~# sysctl -w /proc/sys/net/ipv4/conf/all/enable_ipv4=1
    sysctl: cannot stat /proc/sys//proc/sys/net/ipv4/conf/all/enable_ipv4: Aucun fichier ou dossier de ce type
     
     
    # activation de l’auto configuration pour toutes les interfaces
    sysctl -w net.ipv4.conf.all.autoconf=1
     
    root@deb-srv:~# sysctl -w net.ipv4.conf.all.autoconf=1
    sysctl: cannot stat /proc/sys/net/ipv4/conf/all/autoconf: Aucun fichier ou dossier de ce type
     
    # activation de ipv4 pour les nouvelles interfaces (ex:si ajout de carte réseau)
    sysctl -w net.ipv4.conf.default.enable_ipv4=1
    root@deb-srv:~# sysctl -w net.ipv4.conf.default.enable_ipv4=1
    sysctl: cannot stat /proc/sys/net/ipv4/conf/default/enable_ipv4: Aucun fichier ou dossier de ce type
     
    # activation de l’auto configuration pour les nouvelles interfaces
    sysctl -w net.ipv4.conf.default.autoconf=1
     
    root@deb-srv:~# sysctl -w net.ipv4.conf.default.autoconf=1
    sysctl: cannot stat /proc/sys/net/ipv4/conf/default/autoconf: Aucun fichier ou dossier de ce type
    Par contre, l'OS me répond OK pour les commandes de désactivation de l'ipv6 :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
     
     
    root@deb-srv:~# sysctl -w net.ipv6.conf.all.disable_ipv6=1
    net.ipv6.conf.all.disable_ipv6 = 1
     
    root@deb-srv:~# sysctl -w net.ipv6.conf.default.disable_ipv6=1
    net.ipv6.conf.default.disable_ipv6 = 1
     
    root@deb-srv:~# sysctl -w net.ipv6.conf.default.autoconf=0
    net.ipv6.conf.default.autoconf = 0
    Résultat :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    root@deb-srv:~# netstat -ntlp | grep ":80 "
    tcp6       0      0 :::80                   :::*                    LISTEN      957/apache2
    Il s'en fout.
    Il y tient, à son ipv-6 !

    Tu y comprends quelque chose ?

  15. #55
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    Salut Bvsud,

    Franchement non , je comprend pas pourquoi , J'éspère qu'un expert passera par la
    Je me demande si ça pas a voir avec ton Debian chroot qui a été mal installer , ayant aucun problème de mon coté , j'ai même pas de IPV6 dans ma configuration :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    root@monserveur:/# netstat -ntlp | grep ":80 "
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2916/apache2
    C'est vraiment bizarre , ça devrait être simple lol

  16. #56
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Bonsoir, Allan.

    Je pense effectivement qu'il me faut réinstaller. Et configurer sans doute configurer manuellement ses paramètres réseau; là, j'avais laissé faire le programme d'installation.
    Mais lorsque tu dis "chroot" : tu réfères à un hyperviseur ? Je répète que je l'ai installé en dur, pas dans une MV sous un hyperviseur...
    Une install classique, et même en graphique.

    Je vais quand-même refaire une install minimale : là, je saurai bien si, oui ou non, je trouve trace d'ipv6...
    Je le saurai ce soir.
    A +

  17. #57
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    PIGE !!

    Je réinstalle. Et là, je m'aperçois que, par défaut, l'installateur de Debian (Jessie) configure automatiquement le réseau... en ipv6 !!
    J'ai configuré manuellement :
    l'IP du serveur, déjà attribuée ds le routeur : 192.168.0.13
    L'IP du routeur pour la passerelle.

    Ca venait de là, dis !

  18. #58
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    Citation Envoyé par bvsud Voir le message
    Bonsoir, Allan.
    Mais lorsque tu dis "chroot" : tu réfères à un hyperviseur ? Je répète que je l'ai installé en dur, pas dans une MV sous un hyperviseur...
    je n'es pas fait ce genre d'installation étant donner que mon installation est sur un serveur nas ,
    j'ai suivie une partie de mon installation sur ce tuto :
    http://debian-facile.org/doc:install:debootstrap-chroot
    Comme dis le lien "debian facile lol" pas si facile.. n'est ce pas?


    PIGE !!

    Je réinstalle. Et là, je m'aperçois que, par défaut, l'installateur de Debian (Jessie) configure automatiquement le réseau... en ipv6 !!
    J'ai configuré manuellement :
    l'IP du serveur, déjà attribuée ds le routeur : 192.168.0.13
    L'IP du routeur pour la passerelle.

    Ca venait de là, dis !
    Je ne comprend pas trop ton mode d'installation , peux tu me faire quelques screenshoot?
    et donc après réinstallation? l'IPV4 tout bon?

  19. #59
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Oui, bien sûr, c'est facile

    Pour l'instant, il me sort encore un inet6, mais je n'ai pas terminé. Pas encore touché aux principaux fichiers de configuration. C'est quand-même mieux. Et pas encore non plus désactivé l'ipv6 . Une install, c'est un peu long... et j'ai faim, les enfants de la patrie !

    Je donne le retour demain.
    A plus

  20. #60
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Salut, Allan !

    Je pense y être.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
     
    root@deb-srv2:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr f4:6d:04:20:f9:90  
              inet adr:192.168.0.13  Bcast:192.168.0.255  Masque:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:23417 errors:0 dropped:0 overruns:0 frame:0
              TX packets:14036 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 lg file transmission:1000 
              RX bytes:34822368 (33.2 MiB)  TX bytes:964313 (941.7 KiB)
     
    lo        Link encap:Boucle locale  
              inet adr:127.0.0.1  Masque:255.0.0.0
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:41 errors:0 dropped:0 overruns:0 frame:0
              TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 lg file transmission:0 
              RX bytes:17279 (16.8 KiB)  TX bytes:17279 (16.8 KiB)
    MAIS : dernière ligne :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    root@deb-srv2:~# netstat -tap
    Connexions Internet actives (serveurs et établies)
    Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat        PID/Program name
    tcp        0      0 *:webmin                *:*                     LISTEN      968/perl        
    tcp        0      0 *:ssh                   *:*                     LISTEN      631/sshd        
    tcp        0      0 localhost:ipp           *:*                     LISTEN      624/cupsd       
    tcp        0      0 deb-srv.localnet:51804  imap.1und1.de:imaps     ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:51801  imap.1und1.de:imaps     ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:51806  imap.1und1.de:imaps     ESTABLISHED 1321/thunderbird
    tcp        1      0 localhost:32867         localhost:ipp           CLOSE_WAIT  626/cups-browsed
    tcp        0      0 deb-srv.localnet:48989  40.101.76.114:imaps     ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:35356  par10s28-in-f102.:https ESTABLISHED 1402/firefox-esr
    tcp        0      0 deb-srv.localnet:33129  par21s12-in-f8.1e:https ESTABLISHED 1402/firefox-esr
    tcp        0      0 deb-srv.localnet:48990  40.101.76.114:imaps     ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:47814  93.184.220.29:http      TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:51802  imap.1und1.de:imaps     ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:39043  ec2-54-69-184-117:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:55788  a88-221-83-88.depl:http ESTABLISHED 1402/firefox-esr
    tcp        0      0 deb-srv.localnet:59502  104.27.180.181:https    ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:53363  par10s28-in-f110.1:http TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:53342  par10s28-in-f110.1:http TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:48992  40.101.76.114:imaps     ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:48929  40.101.76.114:imaps     ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:37948  par10s28-in-f110.:https ESTABLISHED 1402/firefox-esr
    tcp        0      0 deb-srv.localnet:51794  imap.1und1.de:imaps     ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:48930  40.101.76.114:imaps     ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:32938  a2-16-117-72.deplo:http TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:53386  par10s28-in-f110.1:http ESTABLISHED 1402/firefox-esr
    tcp        0      0 deb-srv.localnet:32939  a2-16-117-72.deplo:http TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:48993  40.101.76.114:imaps     ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:47776  93.184.220.29:http      TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:48991  40.101.76.114:imaps     ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:53374  par10s28-in-f110.1:http TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:53375  par10s28-in-f110.1:http TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:35229  104.27.163.196:https    ESTABLISHED 1321/thunderbird
    tcp        0      0 deb-srv.localnet:32920  a2-16-117-72.deplo:http TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:43517  par10s34-in-f10.1:https ESTABLISHED 1402/firefox-esr
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      631/sshd
    Fichier /etc/sysctl.conf :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
     
    #
    # /etc/sysctl.conf - Configuration file for setting system variables
    # See /etc/sysctl.d/ for additional system variables.
    # See sysctl.conf (5) for information.
    #
     
    #kernel.domainname = example.com
     
    # Uncomment the following to stop low-level messages on console
    #kernel.printk = 3 4 1 3
     
    ##############################################################3
    # Functions previously found in netbase
    #
     
    # Uncomment the next two lines to enable Spoof protection (reverse-path filter)
    # Turn on Source Address Verification in all interfaces to
    # prevent some spoofing attacks
    #net.ipv4.conf.default.rp_filter=1
    #net.ipv4.conf.all.rp_filter=1
     
    # Uncomment the next line to enable TCP/IP SYN cookies
    # See http://lwn.net/Articles/277146/
    # Note: This may impact IPv6 TCP sessions too
    #net.ipv4.tcp_syncookies=1
     
    # Uncomment the next line to enable packet forwarding for IPv4
    #net.ipv4.ip_forward=1
     
    # Uncomment the next line to enable packet forwarding for IPv6
    #  Enabling this option disables Stateless Address Autoconfiguration
    #  based on Router Advertisements for this host
    #net.ipv6.conf.all.forwarding=1
     
     
    ###################################################################
    # Additional settings - these settings can improve the network
    # security of the host and prevent against some network attacks
    # including spoofing attacks and man in the middle attacks through
    # redirection. Some network environments, however, require that these
    # settings are disabled so review and enable them as needed.
    #
    # Do not accept ICMP redirects (prevent MITM attacks)
    #net.ipv4.conf.all.accept_redirects = 0
    #net.ipv6.conf.all.accept_redirects = 0
    # _or_
    # Accept ICMP redirects only for gateways listed in our default
    # gateway list (enabled by default)
    # net.ipv4.conf.all.secure_redirects = 1
    #
    # Do not send ICMP redirects (we are not a router)
    #net.ipv4.conf.all.send_redirects = 0
    #
    # Do not accept IP source route packets (we are not a router)
    #net.ipv4.conf.all.accept_source_route = 0
    #net.ipv6.conf.all.accept_source_route = 0
    #
    # Log Martian Packets
    #net.ipv4.conf.all.log_martians = 1
    #
     
     
    ########## DESACTIVATION DE L'ipv6 ########################################################
     
    # désactivation de ipv6 pour toutes les interfaces
    net.ipv6.conf.all.disable_ipv6 = 1
     
    # désactivation de l’auto configuration pour toutes les interfaces
    net.ipv6.conf.all.autoconf = 0
     
    # désactivation de ipv6 pour les nouvelles interfaces (ex:si ajout de carte réseau)
    net.ipv6.conf.default.disable_ipv6 = 1
     
    # désactivation de l’auto configuration pour les nouvelles interfaces
    net.ipv6.conf.default.autoconf = 0
     
     
    ###########################################################################################


    Fichier /etc/netconfig :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
     
    #
    # The network configuration file. This file is currently only used in
    # conjunction with the TI-RPC code in the libtirpc library.
    #
    # Entries consist of:
    #
    #       <network_id> <semantics> <flags> <protofamily> <protoname> \
    #               <device> <nametoaddr_libs>
    #
    # The <device> and <nametoaddr_libs> fields are always empty in this
    # implementation.
    #
     
    udp        tpi_clts      v     inet     udp     -       -
    tcp        tpi_cots_ord  v     inet     tcp     -       -
     
    #udp6       tpi_clts      v     inet6    udp     -       -
    #tcp6       tpi_cots_ord  v     inet6    tcp     -       -
     
    udp4       tpi_clts      v     inet4    udp     -       -
    tcp4       tpi_cots_ord  v     inet4    tcp     -       -
    rawip      tpi_raw       -     inet      -      -       -
    local      tpi_cots_ord  -     loopback  -      -       -
    unix       tpi_cots_ord  -     loopback  -      -       -
    Fichier /etc/network/interfaces :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
     
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
     
    #source /etc/network/interfaces/*
     
    # The loopback network interface
      auto lo
      iface lo inet loopback
     
    # The primary network interface
      auto eth0
      iface eth0 inet static
      address 192.168.0.13
      netmask 255.255.255.0
      broadcast 192.168.0.255
      mtu 1500
      gateway 192.168.0.254
    Fichier /etc/hosts :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    127.0.0.1	localhost
    192.168.0.13	deb-srv.localnet dev-srv
     
    # The following lines are desirable for IPv6 capable hosts
    #::1     localhost ip6-localhost ip6-loopback
    #ff02::1 ip6-allnodes
    #ff02::2 ip6-allrouters
    Fichier /etc/sysctl.conf :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
     
    #
    # /etc/sysctl.conf - Configuration file for setting system variables
    # See /etc/sysctl.d/ for additional system variables.
    # See sysctl.conf (5) for information.
    #
     
    #kernel.domainname = example.com
     
    # Uncomment the following to stop low-level messages on console
    #kernel.printk = 3 4 1 3
     
    ##############################################################3
    # Functions previously found in netbase
    #
     
    # Uncomment the next two lines to enable Spoof protection (reverse-path filter)
    # Turn on Source Address Verification in all interfaces to
    # prevent some spoofing attacks
    #net.ipv4.conf.default.rp_filter=1
    #net.ipv4.conf.all.rp_filter=1
     
    # Uncomment the next line to enable TCP/IP SYN cookies
    # See http://lwn.net/Articles/277146/
    # Note: This may impact IPv6 TCP sessions too
    #net.ipv4.tcp_syncookies=1
     
    # Uncomment the next line to enable packet forwarding for IPv4
    #net.ipv4.ip_forward=1
     
    # Uncomment the next line to enable packet forwarding for IPv6
    #  Enabling this option disables Stateless Address Autoconfiguration
    #  based on Router Advertisements for this host
    #net.ipv6.conf.all.forwarding=1
     
     
    ###################################################################
    # Additional settings - these settings can improve the network
    # security of the host and prevent against some network attacks
    # including spoofing attacks and man in the middle attacks through
    # redirection. Some network environments, however, require that these
    # settings are disabled so review and enable them as needed.
    #
    # Do not accept ICMP redirects (prevent MITM attacks)
    #net.ipv4.conf.all.accept_redirects = 0
    #net.ipv6.conf.all.accept_redirects = 0
    # _or_
    # Accept ICMP redirects only for gateways listed in our default
    # gateway list (enabled by default)
    # net.ipv4.conf.all.secure_redirects = 1
    #
    # Do not send ICMP redirects (we are not a router)
    #net.ipv4.conf.all.send_redirects = 0
    #
    # Do not accept IP source route packets (we are not a router)
    #net.ipv4.conf.all.accept_source_route = 0
    #net.ipv6.conf.all.accept_source_route = 0
    #
    # Log Martian Packets
    #net.ipv4.conf.all.log_martians = 1
    #
     
     
    ########## DESACTIVATION DE L'ipv6 ########################################################
     
    # désactivation de ipv6 pour toutes les interfaces
    net.ipv6.conf.all.disable_ipv6 = 1
     
    # désactivation de l’auto configuration pour toutes les interfaces
    net.ipv6.conf.all.autoconf = 0
     
    # désactivation de ipv6 pour les nouvelles interfaces (ex:si ajout de carte réseau)
    net.ipv6.conf.default.disable_ipv6 = 1
     
    # désactivation de l’auto configuration pour les nouvelles interfaces
    net.ipv6.conf.default.autoconf = 0
     
     
    ###########################################################################################
    Fichier /etc/NetworkManager/Wired connection 1 :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
     
     
    # Fichier /etc/NetworkManager/Wired connection 1  
     
    [connection]
    id=Wired connection 1
    uuid=33fb5cba-16fe-4ebb-8683-a953a552cc04
    type=802-3-ethernet
     
    [802-3-ethernet]
    mac=F4:6D:04:20:F9:90
     
    [ipv4]
    method=manual
    dns=192.168.0.254;
    addresses1=192.168.0.13;24;192.168.0.254;
     
     
    Je vais corriger ça, et rebooter :
     
    [ipv6]
    method=auto
    ip6-privacy=2

    Apache et tout le toutim non encore installés. On va voir ce que ça donne.

    "Je ne comprend pas trop ton mode d'installation" : je suis parti d'un support USB (carte flash sur Digitus ) :


    Sur la carte, une ISO de Debian Jessie. Tu as plusieurs options : notamment l'installation en graphique. Deux dd sur la bécane : un SSD pour l'OS, un WD 1 To 7.200 tours, partitionné en deux : DATA et IMAGES. Partition IMAGES pour Clonezilla. Partition DATA pour les sauvegardes, stockage de paquets, voire logiciels portables (Tor, par exemple, mais aussi Double Commander, etc.) . Quoique j'installe doublecommander-gtk .

Discussions similaires

  1. Réponses: 13
    Dernier message: 04/01/2010, 18h26
  2. Réponses: 1
    Dernier message: 26/11/2006, 10h57
  3. Redirection de apache sur :80 vers iis sur :81
    Par lecter dans le forum Apache
    Réponses: 2
    Dernier message: 26/04/2006, 09h27
  4. IIS + Apache + mysql...pour ceux qui ont déjà installé
    Par ludophil dans le forum Autres Logiciels
    Réponses: 1
    Dernier message: 15/10/2005, 02h21

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo