Article 5CM4N OpenVPN specific setup

OpenVPN specific setup

by
jxrod2000
from LinuxQuestions.org on (#5CM4N)
I currently run a VPN server on a MacOS machine and I would like to take that exact setup and run it on a raspberry pi running OpenVPN and ubuntu 20.04

Here is my current setup on Mac:
Router ip: 192.168.155.1
DHCP range is: 192.168.155.100 - 150
Mac server running vpn: 192.168.155.7

The mac server vpn range of ip address that it assigns is: 192.168.155.200 - 210

This has the advantage of being able to logon to the network and then route to other computers within the network or screen share as if done locally without any other changes to the network.

For example when we travel we usually take my wife's laptop, so I vpn with her account and then use screen share to logon to my computer which has a fixed ip not within the above ranges.

So I have been doing a lot of reading but I have not seen any examples of this specific setup. This is what I came up with and I would like to know if this is correct or not.

I have not attempted this yet, I am just trying to figure out if I am on the right track.

So in the OpenVPN config file I would add the following lines:
mode server
tls-server
proto udp-server
ifconfig 192.168.155.7 255.255.255.0
ifconfig-pool 192.168.155.200 192.168.155.210
route 192.168.155.0 255.255.255.0
push "route 192.168.155.7"

Thankslatest?d=yIl2AUoC8zA latest?i=iDoYgJ7Wm3c:OGz7LICcwRY:F7zBnMy latest?i=iDoYgJ7Wm3c:OGz7LICcwRY:V_sGLiP latest?d=qj6IDK7rITs latest?i=iDoYgJ7Wm3c:OGz7LICcwRY:gIN9vFwiDoYgJ7Wm3c
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments