[Freelan] Besoin d'aide a la configuration

Questions et astuces concernant l'installation et la configuration d'archlinux
Avatar de l’utilisateur
snoogy
archer
Messages : 126
Inscription : mar. 08 nov. 2011, 10:04

[Freelan] Besoin d'aide a la configuration

Message par snoogy »

Bonjour, je viens d'installer "Freelan" en utilisant Yaourt. (http://www.freelan.org/)

J'aimerai mettre en place un réseau privé virtuel pour échanger des données avec un autre ordinateur ce situant a plusieurs km.

Le soucis est que je ne sais pas du tout comment configuré la nouvelle carte réseau crée par freelan :(
Et je ne vois pas de fichier config.

Merci
Image
Avatar de l’utilisateur
Debaru
archer de cavalerie
Messages : 186
Inscription : mar. 11 janv. 2011, 10:22

Re: [Freelan] Besoin d'aide a la configuration

Message par Debaru »

Avatar de l’utilisateur
snoogy
archer
Messages : 126
Inscription : mar. 08 nov. 2011, 10:04

Re: [Freelan] Besoin d'aide a la configuration

Message par snoogy »

oui merci mais le soucis c'est que je ne trouve aucun fichier de config comme sur le wiki :shock:
Image
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [Freelan] Besoin d'aide a la configuration

Message par FoolEcho »

Tu ne trouves rien avec pacman -Ql freelan ?
«The following statement is not true. The previous statement is true.» :nage:
Avatar de l’utilisateur
snoogy
archer
Messages : 126
Inscription : mar. 08 nov. 2011, 10:04

Re: [Freelan] Besoin d'aide a la configuration

Message par snoogy »

juste:

pacman -Ql freelan

freelan /usr/
freelan /usr/bin/
freelan /usr/bin/freelan
Image
Avatar de l’utilisateur
Aikadil
archer
Messages : 113
Inscription : dim. 18 déc. 2011, 20:20
Localisation : Belgique - Liege

Re: [Freelan] Besoin d'aide a la configuration

Message par Aikadil »

J'ai le même problème, pas de fichier de configuration /etc/freelan/freelan.conf, ni même de dossier /etc/freelan/
ASUS Rampage II gene - Intel i7-950 - Corsaire 3*2Go - Samsung SpinPoint F1 300Go
x2 - Nvidia Gtx295 - ArchLinux/Win7 Arium - X86-64.

Je ne suis pas programmeur, je suis tuto dépendant et je le vie bien !
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [Freelan] Besoin d'aide a la configuration

Message par FoolEcho »

J'ai regardé vite fait les différents paquets et effectivement, rien à ce niveau. :|
Option 1: Il vous faudrait essayer en récupérant les fichiers donnés ici: https://github.com/freelan-developers/f ... ter/config.

Option 2: Le mieux serait de recompiler freelan en rajoutant à la fin de la fonction package() du PKGBUILD:

Code : Tout sélectionner

 install -d -m 755 ${pkgdir}/etc/freelan
 install -D -m 644 config/freelan.cfg ${pkgdir}/etc/freelan/freelan.conf
  
 install -d -m 755 ${pkgdir}/etc/freelan/certificates/samples
 install -D -m 644 config/{alice*,bob*} ${pkgdir}/etc/freelan/certificates/samples/
(certificats et clés exemples sont plus là à titre indicatif puisqu'il vous faudra les fabriquer vous-même)

À vous de voir après si vous vous en sortez avec la mise en place (et si vous y arrivez, il pourrait être judicieux de signifier au mainteneur de rajouter les fichiers de configuration, au moins le freelan.conf donc -- profitez-en pour lui demander de rajouter un petit .install avec un lien vers la page de wiki que Debaru a relevé pour la configuration). :wink:
«The following statement is not true. The previous statement is true.» :nage:
Avatar de l’utilisateur
Aikadil
archer
Messages : 113
Inscription : dim. 18 déc. 2011, 20:20
Localisation : Belgique - Liege

Re: [Freelan] Besoin d'aide a la configuration

Message par Aikadil »

Bon, avant de poster sur l'AUR, il faut réussir à le faire fonctionner ^^

Donc:
-Création du répertoire /etc/freelan
-Création du fichier /etc/freelan/freelan.cfg
Contrairement à ce que dit le wiki, à l'exécution de freelan il refuse l'extension .conf et demande explicitement un .cfg

Ensuite je bloque sur les certificats, j'ai à ma disposition une clés privé id-dsa que j'utilise pour me connecter à mon serveur privé avec le quel je veut faire un tunnel SSH pour l'utiliser comme proxy web.

J'ai donc copier ma clés dans /etc/freelan/ et renomé test.key
il n'aime pas du tout.
# This is the FreeLAN configuration file
#

[fscp]

# The protocol to use for hostname resolution.
#
# Possible values are: ipv4, ipv6
hostname_resolution_protocol=ipv4

# The endpoint to listen on.
#
# The endpoint can be in both numeric and hostname format, and must always
# contain a port specification.
#
# Hostnames are resolved using the method specified by
# network.hostname_resolution_protocol.
#
# Using a numeric value is recommended.
#
# Example values: 0.0.0.0:12000, [::]:12000, localhost:12000, 10.0.0.1:12000
# Default: 0.0.0.0:12000
listen_on=IPSERVEUR:PORT SERVEUR

# The timeout for hello messages.
#
# The time to wait for hello responses, in milliseconds.
#
# Default: 3000
hello_timeout=3000

# The contact list.
#
# The list of hosts to connect to.
#
# You may repeat the contact option to add several hosts.
#
# Examples: 192.168.0.1, [fe80::1]:12000, hostname:1234, some.other.host.org:1234
# Default: <none>
#contact=192.168.0.1:12000

[tap_adapter]

# Whether to use the tap adapter.
#
# Possible values: yes, no
#
# Default: yes
enabled=yes

# The tap adapter IPv4 address and prefix length to use.
#
# The network address must be in numeric format with a netmask suffix.
#
# On Windows, the prefix length is ignored (but still must be specified) and
# the netmask is determined according to the IPv4 class. It is recommended that
# you set the network.enable_dhcp_proxy option.
#
# You may specify an empty value.
#
# Default: 9.0.0.1/24
ipv4_address_prefix_length=9.0.0.1/24

# The tap adapter IPv6 address and prefix length to use.
#
# The network address must be in numeric format with a netmask suffix.
#
# You may specify an empty value.
#
# Default: 2aa1::1/8
ipv6_address_prefix_length=2aa1::1/8

# Whether to enable the ARP proxy.
#
# When the ARP proxy is enabled, all ARP requests are silently rerouted to an
# internal ARP server that always replies positively. Remote hosts never
# receive any ARP request.
#
# Warning: Setting this parameter can lead to connectivity issues. It is
# provided solely for debugging and testing purposes.
#
# Default: no
arp_proxy_enabled=no

# The ARP proxy fake ethernet address.
#
# If tap_adapter.arp_proxy_enabled is not set, this option is ignored.
#
# Default: 00:aa:bb:cc:dd:ee
arp_proxy_fake_ethernet_address=00:aa:bb:cc:dd:ee

# Whether to enable the DHCP proxy.
#
# When the DHCP proxy is enabled, all BOOTP/DHCP requests are silently rerouted
# to an internal DHCP server. Remote hosts never receive any DHCP request.
#
# The TAP interface must be ready to issue DHCP requests if this option is set.
#
# The use of this option is recommended on Windows for IPv4 addresses. On
# Windows, if this option is set, no attempt to directly set the IPv4 address
# will be made.
#
# Default: yes
dhcp_proxy_enabled=yes

# The DHCP proxy server IPv4 address and prefix length to use.
#
# This value should be different from
# network.ipv4_address_prefix_length but within the same network.
#
# Note that while this option expects a valid host IPv4 address, providing a
# network address also works on both Windows and POSIX operating systems.
#
# Default: 9.0.0.0/24
dhcp_server_ipv4_address_prefix_length=9.0.0.0/24

# The DHCP proxy server IPv6 address and prefix length to use.
#
# This value should be different from
# network.ipv6_address_prefix_length but within the same network.
#
# Note that while this option expects a valid host IPv6 address, providing a
# network address also works on both Windows and POSIX operating systems.
#
# Default: 2aa1::/8
dhcp_server_ipv6_address_prefix_length=2aa1::/8

# The script to call when the tap adapter is up and running.
#
# The script is called with the tap adapter's name as it's first argument.
#
# The script exit status is ignored.
#
# Default: <empty>
#up_script=

# The script to call when the tap adapter is set down.
#
# The script is called with the tap adapter's name as it's first argument.
#
# The script exit status is ignored.
#
# Default: <empty>
#down_script=

[switch]

# The routing method for messages.
#
# Possible values: switch, hub
#
# - switch: Act like a switch. Messages are only sent to the right host when its
# address is known.
# - hub: Send all messages to everyone on the network. The memory footprint is
# slightly reduced at the cost of much higher bandwitdh usage. Recommended for
# 1-to-1 networks only.
#
# Warning: At any time, if the memory consumption is too high, the
# routing_method may be temporarily switched from "switch" to "hub" to prevent
# DoS attacks.
#
# Default: switch
routing_method=switch

# Whether to enable the relay mode.
#
# Possible values: no, yes
#
# - no: Not relaying frames from one remote host to the other.
# - yes: Transmits frames from one host to the other.
#
# If you enable relay mode, it is recommended that routing_method is set to
# switch.
#
# Default: no
relay_mode_enabled=no

[security]

# The X509 certificate file to use for signing.
#
# Default: <none>
#signature_certificate_file=

# The private key file to use for signing.
#
# This private key must match with the specified signing certificate file.
#
# Default: <none>
signature_private_key_file=/etc/freelan/test.key

# The X509 certificate file to use for encryption.
#
# If none is specified, the signature certificate is used instead.
#
# The encryption certificate MUST have the same subject as the signature
# certificate.
#
# Default: <none>
#encryption_certificate_file=

# The private key file to use for encryption.
#
# This private key must match with the specified encryption certificate file.
#
# If none is specified, the signature private key is used instead.
#
# Default: <none>
#encryption_private_key_file=

# The certificate validation method to use.
#
# Possible values are: default, none
#
# - default: Matches any presented certificate against the specified
# certificate authorities.
# - none: Disable certificate validation.
#
# Warning: Think twice before setting "none" here, as this completely disables
# certificate validation. If you choose to do so, ensure that you have a robust
# certificate validation script set as certificate_validation_script.
#
# Default: default
certificate_validation_method=default

# The certificate validation script to call.
#
# Every time a external certificate is received and accepted by the specified
# certificate_validation_method, the specified script is called with a X509
# certificate filename as its first argument.
#
# If the script exit status is zero, the certificate is accepted.
# If the script exit status is non-zero, the certificate is rejected.
#
# The certificate validation script is called even if
# certificate_validation_method is set to "none".
#
# Specify an empty validation script path to disable script validation.
#
# Default: <empty>
#certificate_validation_script=

# The authority certificates.
#
# You may repeat the authority_certificate_file option to specify several
# authority certificates.
#
# Default: <none>
#authority_certificate_file=

# The certificate revocation validation method to use.
#
# Possible values are: last, all, none
#
# - last: Only the last certificate of the certification chain is checked for
# revocation.
# - all: All certificates from the certification chain are checked for
# revocation.
# - none: Certificates are not checked for revocation.
#
# Default: none
certificate_revocation_validation_method=none

# The certificate revocation lists.
#
# You may repeat the certificate_revocation_list_file option to specify several
# certificate revocation lists.
#
# Default: <none>
#certificate_revocation_list_file=
Le boot me donne
[squall@ArchLinuxLaptop freelan]$ freelan
Reading configuration file at: "/etc/freelan/freelan.cfg"
Warning ! No configuration file specified and none found in the environment.
Looked up locations were:
- "/home/squall/.freelan/freelan.cfg"
- "/etc/freelan/freelan.cfg"
Error: missing required option security.signature_certificate_file
Je n'ai plus le .crt que j'avais générer à la création de mon serveur...
ASUS Rampage II gene - Intel i7-950 - Corsaire 3*2Go - Samsung SpinPoint F1 300Go
x2 - Nvidia Gtx295 - ArchLinux/Win7 Arium - X86-64.

Je ne suis pas programmeur, je suis tuto dépendant et je le vie bien !
Avatar de l’utilisateur
snoogy
archer
Messages : 126
Inscription : mar. 08 nov. 2011, 10:04

Re: [Freelan] Besoin d'aide a la configuration

Message par snoogy »

FoolEcho a écrit :J'ai regardé vite fait les différents paquets et effectivement, rien à ce niveau. :|
Option 1: Il vous faudrait essayer en récupérant les fichiers donnés ici: https://github.com/freelan-developers/f ... ter/config.

Option 2: Le mieux serait de recompiler freelan en rajoutant à la fin de la fonction package() du PKGBUILD:

Code : Tout sélectionner

 install -d -m 755 ${pkgdir}/etc/freelan
 install -D -m 644 config/freelan.cfg ${pkgdir}/etc/freelan/freelan.conf
  
 install -d -m 755 ${pkgdir}/etc/freelan/certificates/samples
 install -D -m 644 config/{alice*,bob*} ${pkgdir}/etc/freelan/certificates/samples/
(certificats et clés exemples sont plus là à titre indicatif puisqu'il vous faudra les fabriquer vous-même)

À vous de voir après si vous vous en sortez avec la mise en place (et si vous y arrivez, il pourrait être judicieux de signifier au mainteneur de rajouter les fichiers de configuration, au moins le freelan.conf donc -- profitez-en pour lui demander de rajouter un petit .install avec un lien vers la page de wiki que Debaru a relevé pour la configuration). :wink:

D'accord =)

En attendant j'ai contacter le mainteneur du paquet :D
Image
Répondre