1. client
    2. dev tap0
    3. up /home/openvpn/up.sh
    4. #dev-node "br0"
    5. proto udp
    6. remote 10.8.99.18 6194
    7. resolv-retry infinite
    8. #nobind
    9. persist-key
    10. persist-tun
    11. ca /home/openvpn/conf/client/ca.crt
    12. cert /home/openvpn/conf/client/client.crt
    13. key /home/openvpn/conf/client/client.key
    14. remote-cert-tls server
    15. sndbuf 0
    16. rcvbuf 0
    17. txqueuelen 1000
    18. verb 3
    19. script-security 3
    20. auth-user-pass /home/openvpn/conf/client/pass.txt
    21. status /home/openvpn/logs/client/openvpn-status.log
    22. log-append /home/openvpn/logs/client/openvpn.log
    1. #!/bin/bash
    2. #
    3. #
    4. BRIDGE="br0"
    5. /usr/sbin/brctl addif ${BRIDGE} ${1}
    6. /usr/sbin/ifconfig ${1} 0.0.0.0 promisc up