• [^] # Re: Et le pare-feu ?

    Posté par . En réponse au message openvpn. Évalué à 2. Dernière modification le 10 juillet 2017 à 20:26.

    je te remercie

    J'ai suivi le tuto mais il dois me manque une partie

    s$ sudo iptables -t nat -vnL
    Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
     pkts bytes target prot opt in out source destination 
    Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
     pkts bytes target prot opt in out source destination 
    Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
     pkts bytes target prot opt in out source destination 
    Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
     pkts bytes target prot opt in out source destination 
    

    J'ai pourtant

    # NAT table rules
    *nat
    :POSTROUTING ACCEPT [0:0]
    # Allow traffic from OpenVPN client to wlp11s0 (change to the interface you discovered!)
    -A POSTROUTING -s 10.8.0.0/8 -o ens3 -j MASQUERADE
    COMMIT
    # END OPENVPN RULES