logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 03-08-2016 13:48:55

xbase
Membre
Lieu : Saint Jean de Tholome
Distrib. : Debian 10 Buster
Inscription : 17-02-2015

Configuration Firewall UFW

Bonjour a tous,
ça fait longtemps que je n'ai pas laissé un message car la plus part du temps je trouve mes réponses ici. Mais aujourd'hui je ne sais pas ou chercher ni quoi.
j'ai installer UFW il y'a quelques jours, et depuis impossible d accéder au dossier partager ou a un autre ordinateur du réseau, ni d'avoir accès a internet (www) A partir du vpn (openvpn ssl) .

je suppose que cela viens du firewall.
quelqu'un pourrait m accompagner dans la configurations des règles car je suis perdu.
Merci d avance

In hoc Signo Vinces (V)

Hors ligne

#2 11-08-2016 13:09:34

xbase
Membre
Lieu : Saint Jean de Tholome
Distrib. : Debian 10 Buster
Inscription : 17-02-2015

Re : Configuration Firewall UFW

Bonjour a tous j'ai trouvé la solution ici:

https://community.openvpn.net/openvpn/wiki/BridgingAndRouting


bloc à supprimer si la commande n’affiche rien



In the openvpn server config you will need these lines:

    dev tun
    topology subnet
    server 10.8.0.0 255.255.255.0
    push "route 192.168.0.0 255.255.255.0"
(this is not a complete configuration file, but it should cover the network part of the configuration)

This will provide the needed route for all VPN clients to the internal LAN. If you want to all your VPN clients to send all the internet traffic via the VPN as well (so it looks like they sit behind the LAN when surfing the net), you need this line in addition:

    push "redirect-gateway def1"
And that's basically it. Not much more extra trickery. Routing setups are often much easier than people generally believe. The firewall is generally a bit more tricky, but bridging doesn't make that easier.


In hoc Signo Vinces (V)

Hors ligne

Pied de page des forums