Új hozzászólás Aktív témák

  • wwenigma

    Jómunkásember

    válasz wwenigma #6446 üzenetére

    Az AX3600-on futó OpenVPN szerverhez a client.ovpn filet létrehozzuk az alábbi tartalommal, Notepad++ javasolt:

    dev tun
    tls-client

    remote <IP or DNS name> 1194

    tls-auth ta.key 1

    cipher AES-256-CBC
    auth SHA256

    key-direction 1

    remote-cert-tls server

    # The "float" tells OpenVPN to accept authenticated packets from any address,
    # not only the address which was specified in the --remote option.
    # This is useful when you are connecting to a peer which holds a dynamic address
    # such as a dial-in user or DHCP client.
    # (Please refer to the manual of OpenVPN for more information.)

    #float

    # If redirect-gateway is enabled, the client will redirect it's
    # default network gateway through the VPN.
    # It means the VPN connection will firstly connect to the VPN Server
    # and then to the internet.
    # (Please refer to the manual of OpenVPN for more information.)

    redirect-gateway

    # dhcp-option DNS: To set primary domain name server address.
    # Repeat this option to set secondary DNS server addresses.

    #dhcp-option DNS DNS_IP_ADDRESS
    pull

    # If you want to connect by Server's IPv6 address, you should use
    # "proto udp6" in UDP mode or "proto tcp6-client" in TCP mode
    proto udp

    ca ca.crt
    cert my-client.crt
    key my-client.key

    comp-lzo

    reneg-sec 0

    Ha minden igaz akkor e mellé a file mellé szükséges rakni a ta.key ca.crt my-client.crt és my-client.key file-okat a csatlakozáshoz, én magába a file-ba szoktam belemásolni a tartalmukat az alábbiak szerint:

    tls-auth ta.key 1 helyett:

    <tls-auth>
    ta.key file tartalma
    </tls-auth>

    ca ca.crt helyett:

    <ca>
    ca.crt file tartalma
    </ca>

    cert my-client.crt helyett:

    <cert>
    my-client.crt file tartalma
    </cert>

    key my-client.key helyett:

    <key>
    my-client.key file tartalma
    </key>

    Ez utóbbi esetben az így született file-t beadagoljuk pl. az OpenVPN Connect alkalmazásba és máris csatlakozhatunk. :)

    Ne felejtsük el megadni a szerverünk IP címét / DNS nevét a file-ban! A routerünk pl. kiválóan kezeli a noip.com-os dinamikus DNS neveket.

    [ Szerkesztve ]

    Steam: http://bit.ly/1rRuf8p , Origin: wwenigma -- | -- Jiayu F1 / G3C / OT995 cuccok: http://bit.ly/1w44CI2 -- | -- ZTE V5 Red Bull -> http://bit.ly/1mgtfrd -- | -- Xiaomi RN3SE -> http://bit.ly/2r8DlV7 -- | -- Live Stream: twitch.tv/wwenigma

Új hozzászólás Aktív témák