1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:42:19 +02:00
tldr/pages/common/openvpn.md
Vitor Henrique af35564618
pages*: do not use config abbreviation (#12118)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-25 10:59:16 +05:30

28 lines
1 KiB
Markdown

# openvpn
> OpenVPN client and daemon binary.
> More information: <https://openvpn.net/>.
- Connect to server using a configuration file:
`sudo openvpn {{path/to/client.conf}}`
- Try to set up an insecure peer-to-peer tunnel on bob.example.com host:
`sudo openvpn --remote {{alice.example.com}} --dev {{tun1}} --ifconfig {{10.4.0.1}} {{10.4.0.2}}`
- Connect to the awaiting bob.example.com host without encryption:
`sudo openvpn --remote {{bob.example.com}} --dev {{tun1}} --ifconfig {{10.4.0.2}} {{10.4.0.1}}`
- Create a cryptographic key and save it to file:
`openvpn --genkey secret {{path/to/key}}`
- Try to set up a peer-to-peer tunnel on bob.example.com host with a static key:
`sudo openvpn --remote {{alice.example.com}} --dev {{tun1}} --ifconfig {{10.4.0.1}} {{10.4.0.2}} --secret {{path/to/key}}`
- Connect to the awaiting bob.example.com host with the same static key as on bob.example.com:
`sudo openvpn --remote {{bob.example.com}} --dev {{tun1}} --ifconfig {{10.4.0.2}} {{10.4.0.1}} --secret {{path/to/key}}`