• [^] # Re: Soluce

    Posté par . En réponse au message Raspberry gateway vpn + iptable + nginx. Évalué à 1. Dernière modification le 19 mars 2019 à 14:38.

    Dans ta conf je lis "pull" dont voici la documentation :

    This option must be used on a client which is connecting to a multi-client server. It indicates to OpenVPN that it should accept options pushed by the server, provided they are part of the legal set of pushable options (note that the–pull option is implied by –client ).In particular, –pull allows the server to push routes to the client, so you should not use –pull or –client in situations where you don’t trust the server to have control over the client’s routing table.
    

    Si tu la supprimes, normalement le serveur ne va plus pouvoir ajouter des routes (et donc la commande route -n devrait être bien différente avant et après suppression de cette option).
    Par contre il faudra ajouter manuellement à ton système d'exploitation les nouvelles routes.

    sudo route add -net 10.8.1.0 netmask 255.255.255.0 gw 10.8.0.1 dev tun0
    

    Commande récupérée ici qu'il faudra adapter en fonction de tes envies. De souvenir, cette commande est non persistante (donc en cas de redémarrage, il faut la relancer).