VPN on Raspberry Pi – it’s that simple!
-🖥️-
This configuration data should be supplemented with some other information, which we will explain in detail below. Make sure that UDP is selected as the protocol, that routing through IP tunneling is activated, and that the port is set to default (1194).
The SSL/TSL (CA) root certificate, digital certificate (certificate) and key are required to be generated in . format Easy RSA Guide. Make sure you have entered the correct encoder (1024 or 2048).
it’s up Server 192.168.2.100 255.255.255.0 Ensures that the Raspberry Pi is used as a VPN server. with def1 gateway redirect bypass dhcp, all IP traffic is routed through an IP tunnel.
Next, you need to name the public DNS server that the VPN server will use. For example, 8.8.8.8 is a public DNS server used by Google. Of course, you can also use the IPv4 address of another DNS server. In this case, the log information will be written in openvpn a file.
Finally, you will need to configure some additional parameters. persistence key, ensures that the master data is never read again, while continuation ton Ensures that drivers are not restarted. with Nobody’s user And nogroup The daemon rights are removed, while verb Organizes log file completion. by adding 0 No data is saved apart from the error messages. We recommend worth 3. the From customer to customer The parameter allows us to select other VPN clients that are specified, while LZO compression is activated with Comp-lzo.
The configuration data should now read as follows:
[ad_1]
Don’t forget to share this post with friends !