{"id":2558,"date":"2025-02-18T15:31:31","date_gmt":"2025-02-18T07:31:31","guid":{"rendered":"https:\/\/www.ruianding.com\/blog\/?p=2558"},"modified":"2025-02-18T15:37:31","modified_gmt":"2025-02-18T07:37:31","slug":"frp-part-1-introduction-and-server-side-setup","status":"publish","type":"post","link":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/","title":{"rendered":"FRP \u2013 Part 1: Introduction and Server-Side Setup"},"content":{"rendered":"\n<p>In this two-part series, we\u2019ll explore how to use <strong>FRP (Fast Reverse Proxy)<\/strong> to securely and efficiently expose local services behind a NAT or firewall to the public internet. In this first part, we\u2019ll focus on <strong>what FRP is<\/strong> and how to <strong>set up the FRP server (frps)<\/strong> on a machine with a public IP. In <strong>Part 2<\/strong>, we\u2019ll cover the <strong>client side<\/strong> configuration and how to connect your local services to the server for external access.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What Is FRP?<\/h2>\n\n\n\n<p><strong>FRP<\/strong> is an open-source, high-performance reverse proxy solution. It\u2019s frequently used to publish \u201cinternal resources\u201d or local services to the internet, bypassing NAT or firewall restrictions. Essentially, if you have a web application, API, or any TCP\/UDP service running in a private network, FRP can tunnel that service through a server in the public cloud, enabling external access without complex network changes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"532\" height=\"456\" src=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6.png\" alt=\"\" class=\"wp-image-2564\" style=\"width:356px;height:auto\" srcset=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6.png 532w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6-300x257.png 300w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Key Advantages of FRP<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Simple Deployment<\/strong>: You install <strong>frps<\/strong> on a public server and <strong>frpc<\/strong> on your local machine.<\/li>\n\n\n\n<li><strong>Versatility<\/strong>: Supports various protocols (HTTP, HTTPS, TCP, UDP, etc.).<\/li>\n\n\n\n<li><strong>Security<\/strong>: Token-based authentication, TLS options, and more.<\/li>\n\n\n\n<li><strong>Performance<\/strong>: Lightweight and capable of high throughput.<\/li>\n\n\n\n<li><strong>Cross-Platform<\/strong>: Runs on Linux, Windows, macOS, ARM, and more.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">FRP Architecture at a Glance<\/h2>\n\n\n\n<p>FRP consists of two main components:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>FRP Server (frps)<\/strong>: Deployed on a publicly reachable host (has a public IP, or at least a forwarded port). It waits for inbound connections from both the external internet and the FRP clients.<\/li>\n\n\n\n<li><strong>FRP Client (frpc)<\/strong>: Runs on your internal or local machine. It \u201cdials out\u201d to the FRP server, maintaining a secure tunnel. External requests to the server get forwarded back to the local service through this tunnel.<\/li>\n<\/ol>\n\n\n\n<p>This architecture lets you easily expose local resources without requiring direct inbound connections to your internal network.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Setting Up the FRP Server (frps)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Choose a Public Host<\/h3>\n\n\n\n<p>You\u2019ll need a <strong>public-facing machine<\/strong>\u2014this could be a VPS or cloud server (AWS, DigitalOcean, Azure, etc.) with a public IP address. We\u2019ll refer to this machine as your <strong>FRP server<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Download FRP<\/h3>\n\n\n\n<p>Head over to the official <a href=\"https:\/\/github.com\/fatedier\/frp\/releases\">FRP Releases page<\/a> and choose the <strong>frp_{version}_linux_amd64.tar.gz<\/strong> file (assuming you\u2019re on a 64-bit Linux host). Replace the version accordingly, for example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wget https:\/\/github.com\/fatedier\/frp\/releases\/download\/v0.61.1\/frp_0.61.1_linux_amd64.tar.gz\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Unpack and Organize<\/h3>\n\n\n\n<p>Extract the tarball and rename the folder for convenience:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">tar -zxvf frp_0.61.1_linux_amd64.tar.gz\nmv frp_0.61.1_linux_amd64 \/usr\/local\/frp\ncd \/usr\/local\/frp\n<\/pre>\n\n\n\n<p>Inside, you should see <code>frps<\/code>, <code>frpc<\/code>, example config files, and other documentation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Configure frps with TOML<\/h3>\n\n\n\n<p>Although FRP historically supported INI, it\u2019s now recommended to use TOML, JSON, or YAML. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"390\" src=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-7-1024x390.png\" alt=\"\" class=\"wp-image-2566\" style=\"width:689px;height:auto\" srcset=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-7-1024x390.png 1024w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-7-300x114.png 300w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-7-768x293.png 768w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-7-1536x585.png 1536w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-7.png 1716w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Below is an example TOML config named <strong><code>frps.toml<\/code><\/strong>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[common]\nbind_port = 7000\n\ndashboard_port = 7500\ndashboard_user = \"admin\"\ndashboard_pwd = \"admin123\"\n\ntoken = \"YOUR_SECRET_TOKEN\"\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>bind_port<\/code> is the port on which <strong>frps<\/strong> listens for connections from FRP clients.<\/li>\n\n\n\n<li><code>dashboard_port<\/code>, <code>dashboard_user<\/code>, and <code>dashboard_pwd<\/code> enable a web UI to monitor FRP activity at <code>http:\/\/SERVER_IP:7500<\/code>.<\/li>\n\n\n\n<li><code>token<\/code> is a secret key to authenticate incoming connections from <strong>frpc<\/strong>. You must use the same token on the client side.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"89\" src=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-2-1024x89.png\" alt=\"\" class=\"wp-image-2559\" srcset=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-2-1024x89.png 1024w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-2-300x26.png 300w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-2-768x67.png 768w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-2-1536x134.png 1536w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-2.png 1970w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Save this file as <code>\/usr\/local\/frp\/frps.toml<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Test the Server Manually<\/h3>\n\n\n\n<p>Run <strong>frps<\/strong> directly to ensure it starts without errors:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.\/frps -c frps.toml<\/pre>\n\n\n\n<p>If successful, you\u2019ll see logs such as:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"99\" src=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-3-1024x99.png\" alt=\"\" class=\"wp-image-2560\" srcset=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-3-1024x99.png 1024w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-3-300x29.png 300w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-3-768x74.png 768w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-3.png 1370w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Press <code>Ctrl + C<\/code> to stop.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Running frps as a System Service<\/h2>\n\n\n\n<p>To ensure <strong>frps<\/strong> automatically restarts on reboot, we\u2019ll use <strong>systemd<\/strong>.<\/p>\n\n\n\n<p>1. <strong>Create a Service File<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano \/etc\/systemd\/system\/frps.service<\/pre>\n\n\n\n<p>Paste in the following<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[Unit]\nDescription=FRP Server (frps) Service\nAfter=network.target\n\n[Service]\nType=simple\nExecStart=\/usr\/local\/frp\/frps -c \/usr\/local\/frp\/frps.toml\nRestart=on-failure\n\n[Install]\nWantedBy=multi-user.target<\/pre>\n\n\n\n<p>2. <strong>Enable and Start<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl daemon-reload\nsudo systemctl enable frps\nsudo systemctl start frps<\/pre>\n\n\n\n<p>3. <strong>Verify<\/strong> <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl status frps<\/pre>\n\n\n\n<p>If it shows <code>active (running)<\/code>, frps is now running in the background.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"269\" src=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-4-1024x269.png\" alt=\"\" class=\"wp-image-2561\" srcset=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-4-1024x269.png 1024w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-4-300x79.png 300w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-4-768x202.png 768w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-4-1536x404.png 1536w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-4-2048x539.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Firewall &amp; Security Group Rules<\/h2>\n\n\n\n<p>If you\u2019re using a cloud provider, ensure <strong>TCP:7000<\/strong> and <strong>TCP:7500<\/strong> (for the dashboard) are allowed in your <strong>security group<\/strong>. Also, if you\u2019re running a local firewall (e.g., <code>ufw<\/code>, <code>firewalld<\/code>), open those ports as well:<\/p>\n\n\n\n<p><strong>Ubuntu\/Debian (ufw)<\/strong>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo ufw allow 7000\/tcp\nsudo ufw allow 7500\/tcp<\/pre>\n\n\n\n<p><strong>CentOS\/RHEL (firewalld)<\/strong>: <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo firewall-cmd --add-port=7000\/tcp --permanent\nsudo firewall-cmd --add-port=7500\/tcp --permanent\nsudo firewall-cmd --reload<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Monitoring the FRP Dashboard<\/h2>\n\n\n\n<p>With <code>dashboard_port<\/code> configured, you can visit:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">http:\/\/SERVER_PUBLIC_IP:7500\n<\/pre>\n\n\n\n<p>Login using:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Username<\/strong>: <code>admin<\/code><\/li>\n\n\n\n<li><strong>Password<\/strong>: <code>admin123<\/code><br>(or whatever you set in <code>frps.toml<\/code>). You\u2019ll see details like connected clients, proxies, and traffic stats.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"422\" src=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-5-1024x422.png\" alt=\"\" class=\"wp-image-2562\" style=\"width:814px;height:auto\" srcset=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-5-1024x422.png 1024w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-5-300x124.png 300w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-5-768x316.png 768w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-5-1536x632.png 1536w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-5-2048x843.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Performance Considerations<\/h2>\n\n\n\n<p>One common question is <strong>whether FRP\u2019s speed depends on the server\u2019s bandwidth<\/strong>. In short, <strong>yes<\/strong>. When you use FRP to expose a local service:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Traffic flows from your local machine to the FRP server<\/strong>, and then<\/li>\n\n\n\n<li><strong>From the FRP server to the end user (or in reverse)<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p>Because <strong>all data is relayed through the FRP server<\/strong>, the throughput is directly influenced by the <strong>server\u2019s network capacity<\/strong> (and of course, your local network as well). If your server is on a slow connection or limited bandwidth, the maximum throughput will be restricted even if you have fast internet at home. Similarly, if your local upload bandwidth is small, that also becomes a bottleneck.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Key Factors<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Server Bandwidth<\/strong>: A low or congested network on your VPS\/cloud server will limit overall speeds.<\/li>\n\n\n\n<li><strong>Server Performance<\/strong>: CPU\/memory constraints can become a bottleneck under heavy loads.<\/li>\n\n\n\n<li><strong>Local Network<\/strong>: If your home or office upload bandwidth is small, your traffic can\u2019t exceed that limit.<\/li>\n\n\n\n<li><strong>Routing &amp; Latency<\/strong>: Geographical distance and ISP routing can affect transfer speeds and latency.<\/li>\n<\/ul>\n\n\n\n<p>In other words, <strong>the slowest or most congested link<\/strong> between your local machine and the FRP server (and onward to the requesting client) will dictate the maximum speed.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What\u2019s Next?<\/h2>\n\n\n\n<p>You\u2019ve successfully installed the <strong>FRP server (frps)<\/strong> on your public host. In <strong>Part 2<\/strong>, we\u2019ll set up the <strong>FRP client (frpc)<\/strong> on your local machine. By using the same <code>token<\/code> and specifying the <code>server_addr<\/code>\/<code>server_port<\/code> you just configured, you\u2019ll be able to tunnel your private services through the FRP server and make them accessible from the internet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this two-part series, we\u2019ll explore how to use FRP (Fast Reverse Proxy) to securely and efficiently expose local services behind a NAT or firewall to the public internet. In this first part, we\u2019ll focus on what FRP is and how to set up the FRP server (frps) on a machine with a public IP. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2558","post","type-post","status-publish","format-standard","hentry","category-miscellaneous"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>FRP \u2013 Part 1: Introduction and Server-Side Setup - \u6781\u7b80IT\uff5cSimpleIT<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FRP \u2013 Part 1: Introduction and Server-Side Setup - \u6781\u7b80IT\uff5cSimpleIT\" \/>\n<meta property=\"og:description\" content=\"In this two-part series, we\u2019ll explore how to use FRP (Fast Reverse Proxy) to securely and efficiently expose local services behind a NAT or firewall to the public internet. In this first part, we\u2019ll focus on what FRP is and how to set up the FRP server (frps) on a machine with a public IP. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6781\u7b80IT\uff5cSimpleIT\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-18T07:31:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-18T07:37:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6.png\" \/>\n\t<meta property=\"og:image:width\" content=\"532\" \/>\n\t<meta property=\"og:image:height\" content=\"456\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ruian Ding\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ruian Ding\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/\"},\"author\":{\"name\":\"Ruian Ding\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\"},\"headline\":\"FRP \u2013 Part 1: Introduction and Server-Side Setup\",\"datePublished\":\"2025-02-18T07:31:31+00:00\",\"dateModified\":\"2025-02-18T07:37:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/\"},\"wordCount\":875,\"publisher\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\"},\"image\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6.png\",\"articleSection\":[\"Miscellaneous\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/\",\"url\":\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/\",\"name\":\"FRP \u2013 Part 1: Introduction and Server-Side Setup - \u6781\u7b80IT\uff5cSimpleIT\",\"isPartOf\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6.png\",\"datePublished\":\"2025-02-18T07:31:31+00:00\",\"dateModified\":\"2025-02-18T07:37:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#primaryimage\",\"url\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6.png\",\"contentUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6.png\",\"width\":532,\"height\":456},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.ruianding.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FRP \u2013 Part 1: Introduction and Server-Side Setup\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/#website\",\"url\":\"https:\/\/www.ruianding.com\/blog\/\",\"name\":\"Ruian's Tech Troubleshooting Toolbox\",\"description\":\"Debug the World.\",\"publisher\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\"},\"alternateName\":\"\u4e01\u777f\u5b89\u7684\u6280\u672f\u5206\u4eab\u535a\u5ba2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.ruianding.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\",\"name\":\"Ruian Ding\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png\",\"contentUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png\",\"width\":284,\"height\":284,\"caption\":\"Ruian Ding\"},\"logo\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"I am currently a Support Specialist at NIO, focusing on cloud-related issues for NIO Power. Previously, at Microsoft Entra ID, I specialized in identity and access management (IAM), including device registration, Windows Hello for Business (WHfB), multi-factor authentication (MFA), and single sign-on (SSO). In addition to my core expertise, I have a strong foundation in Active Directory, Servers, Cloud Computing, Network Administration, and Front-end Web Development. This diverse technical skill set enables me to effectively handle a wide range of challenges in a fast-paced IT environment.\",\"sameAs\":[\"https:\/\/www.ruianding.com\"],\"url\":\"https:\/\/www.ruianding.com\/blog\/author\/ruiand\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"FRP \u2013 Part 1: Introduction and Server-Side Setup - \u6781\u7b80IT\uff5cSimpleIT","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/","og_locale":"en_US","og_type":"article","og_title":"FRP \u2013 Part 1: Introduction and Server-Side Setup - \u6781\u7b80IT\uff5cSimpleIT","og_description":"In this two-part series, we\u2019ll explore how to use FRP (Fast Reverse Proxy) to securely and efficiently expose local services behind a NAT or firewall to the public internet. In this first part, we\u2019ll focus on what FRP is and how to set up the FRP server (frps) on a machine with a public IP. [&hellip;]","og_url":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/","og_site_name":"\u6781\u7b80IT\uff5cSimpleIT","article_published_time":"2025-02-18T07:31:31+00:00","article_modified_time":"2025-02-18T07:37:31+00:00","og_image":[{"width":532,"height":456,"url":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6.png","type":"image\/png"}],"author":"Ruian Ding","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ruian Ding"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#article","isPartOf":{"@id":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/"},"author":{"name":"Ruian Ding","@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b"},"headline":"FRP \u2013 Part 1: Introduction and Server-Side Setup","datePublished":"2025-02-18T07:31:31+00:00","dateModified":"2025-02-18T07:37:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/"},"wordCount":875,"publisher":{"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b"},"image":{"@id":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6.png","articleSection":["Miscellaneous"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/","url":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/","name":"FRP \u2013 Part 1: Introduction and Server-Side Setup - \u6781\u7b80IT\uff5cSimpleIT","isPartOf":{"@id":"https:\/\/www.ruianding.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#primaryimage"},"image":{"@id":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6.png","datePublished":"2025-02-18T07:31:31+00:00","dateModified":"2025-02-18T07:37:31+00:00","breadcrumb":{"@id":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#primaryimage","url":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6.png","contentUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2025\/02\/image-6.png","width":532,"height":456},{"@type":"BreadcrumbList","@id":"https:\/\/www.ruianding.com\/blog\/frp-part-1-introduction-and-server-side-setup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.ruianding.com\/blog\/"},{"@type":"ListItem","position":2,"name":"FRP \u2013 Part 1: Introduction and Server-Side Setup"}]},{"@type":"WebSite","@id":"https:\/\/www.ruianding.com\/blog\/#website","url":"https:\/\/www.ruianding.com\/blog\/","name":"Ruian's Tech Troubleshooting Toolbox","description":"Debug the World.","publisher":{"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b"},"alternateName":"\u4e01\u777f\u5b89\u7684\u6280\u672f\u5206\u4eab\u535a\u5ba2","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ruianding.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b","name":"Ruian Ding","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png","contentUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png","width":284,"height":284,"caption":"Ruian Ding"},"logo":{"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/"},"description":"I am currently a Support Specialist at NIO, focusing on cloud-related issues for NIO Power. Previously, at Microsoft Entra ID, I specialized in identity and access management (IAM), including device registration, Windows Hello for Business (WHfB), multi-factor authentication (MFA), and single sign-on (SSO). In addition to my core expertise, I have a strong foundation in Active Directory, Servers, Cloud Computing, Network Administration, and Front-end Web Development. This diverse technical skill set enables me to effectively handle a wide range of challenges in a fast-paced IT environment.","sameAs":["https:\/\/www.ruianding.com"],"url":"https:\/\/www.ruianding.com\/blog\/author\/ruiand\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts\/2558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/comments?post=2558"}],"version-history":[{"count":4,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts\/2558\/revisions"}],"predecessor-version":[{"id":2568,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts\/2558\/revisions\/2568"}],"wp:attachment":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/media?parent=2558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/categories?post=2558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/tags?post=2558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}