banner
冷板凳

冷板凳

其实我诗写得不错🌈
twitter
telegram

How to achieve seamless sharing for your design works? Cloudflare Intranet Penetration tells you!

A Little Requirement

If you are a designer who likes to tinker, how can you share the photos you took, posters you designed, videos, and other materials with your colleagues in the company? Imagine if there are hundreds or thousands of materials, it would be annoying if everyone asks you for the images every time, right?

Therefore, using eagle to manage and organize design projects, product images, posters, videos, and other materials is an excellent way. However, it is not feasible to install eagle on every computer and purchase authorized accounts for everyone.

So, another solution is to build a local eagle database into a material sharing website called PicHome-Eagle Image Sharing. Colleagues can easily access and download product images within the company's LAN.

If your requirement is only to share the material library within the LAN, you can directly access the PicHome website and use phpStudy to quickly set it up.

But what if you have another requirement to allow colleagues who are on business trips to access the material library? What should you do?

Deploying PicHome on a cloud service? It is possible, but the material library is several hundred gigabytes in size and constantly increasing. Who can afford the cost?

Is there a technology that can turn the LAN into accessible from the Internet? Yes, there is.

Intranet Penetration

I always thought that "intranet penetration" is used for LAN sharing or VPN tools. After some learning, I realized that it is exactly what I was looking for.

Using an idle local computer that is always on as a server, the material library built within the LAN can be accessed directly from the Internet through an intranet penetration tool.

At first, I successfully deployed this solution Quickly build a website locally with phpstudy and access it from the Internet. If you need a fixed subdomain for long-term use, the basic version for 99/year is sufficient. I plan to try other solutions, and if they don't work, I will come back to this one. It is my last resort.

Through a video on Bilibili Intranet Penetration Explanation, I learned that there are actually many intranet penetration tools available, such as Ngrok, Peanut Shell, NATAPP, FRP, and DingTalk Penetration. After comparing them, I found a solution that suits my personal needs.

Cloudflare Free Intranet Penetration Tutorial because xLog's blog uses Cloudflare for DNS resolution, I am familiar with it to some extent. It has a user-friendly Chinese interface, a reliable brand, allows custom domain names, and is free.

Deployment Operation

Note: The entire process is based on VPN mode, and accessing Cloudflare is faster. If you encounter any problems, read the official documentation of Cloudflare Zero Trust multiple times.

  1. Usually, at this step, you must already have a domain name. You don't need to consider whether to apply for a subdomain in advance. Just follow the standard steps of Cloudflare to replace the NS resolution and make sure the main domain name can be accessed normally.

  2. Assuming that Cloudflare has taken over the resolution service of the zhuyumin.com domain name, select "Traffic" on the left navigation menu and then "Cloudflare Tunnel".

  3. Create a tunnel.

  4. Name your tunnel.

  5. Download and install the program on the local computer that needs to be accessed from the Internet. Note that the installation process will flash quickly. Then, copy and paste the command below to install it in the CMD. If the installation fails, consider using "Windows PowerShell (Administrator) mode.

  6. Go back to the Tunnels interface. If the status is HEALTHY, it means that the tunnel has been successfully created. Click the three dots at the end and enter Configure to set the IP binding.

  7. Set parameters for the Public Hostname Page. After entering the subdomain name, an automatic subdomain will be generated. The domain will automatically pick up the main domain name. The Path does not need to be filled in. Select http for the Type, and the URL is the IP of the local computer, without the need to fill in the port.

  8. After saving, you can access the material library on the local computer or your own blog using this subdomain.

  9. After successful deployment, the access speed will gradually increase. It may be a bit slow at the beginning.

  10. The access speed on mobile devices is relatively faster. Cloudflare allows custom domain names and free penetration. What more could you ask for!

Afterword and Experience

As a programming novice, I usually like to tinker. Before this, I didn't even know what intranet penetration meant. I just followed a strange impulse. The worst-case scenario is that it doesn't work and it wastes some time and energy. What does it matter?

Because I didn't understand the underlying logic, every step felt like guessing. Even after successful deployment, I still felt confused and didn't fully understand what I did.

Looking back, I felt like I had divine assistance at every step, and there were no major obstacles that made me give up. Thanks to persisting and trying again after encountering errors, there were no special tricks.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.