<p>This article mainly explains how to configure the frp server to achieve intranet penetration. Interested friends may wish to take a look. The method described in this article is simple, quick and practical. Let the editor take you to learn how to configure the frp server to achieve intranet penetration!</p><p><img src="https://freeonlinedomain.com/uploads/allimg/Server/20221220/bmp4xb0d2ie5.jpg" alt="bmp4xb0d2ie5.jpg"/></p><p data-id="p838747a-nOCZ0ZKk">Intranet server ip address: 192.168 .2.100, as a proxy, relays ssh data accessing 192.168.2.232.</p><p data-id="p838747a-ddG8UPfS">Intranet server ip address: 192.168.2.232, using port 22 to provide SSH service.</p><p data-id="p838747a-HKLDTTMH">External network server ip address: 202.106.0.20, using port 7000 as the service listening port.</p><p data-id="p838747a-jBTeLiZN">The port 6000 on the external network server is received from the configuration of the internal network server, and this port is configured in the configuration file of the internal network frpc server.</p><p data-id="p838747a-MlYSg68W">The yellow path is the data trend diagram of external network users accessing the internal network server.</p><p data-id="p838747a-EMfdlUMD">The blue vertical thick line is the connection established by the internal server actively connecting to the port 7000 of the external server.</p><p data-id="p838747a-l4CSXBdE"><strong>Extranet server configuration:</strong></p><p data-id="p838747a-G9ctW58h">Configuration file content (frps. ini):</p><p># frps.ini
[common]
bind_port = 7000</p><p data-id="p838747a-c3UZhWd7"><strong> Service startup command: </strong></p><p>nohup ./frps -c ./frps.ini &
See #nohup command usage</p><p data-id="p838747a-syvC6PXJ"><strong>Intranet frpc server configuration:</strong></p><p data-id="p838747a-g6xzEUhq">Configuration file content (frps.ini):</p><p>[common]
server_addr = 202.106.0.20
theserver_port = 7000
[tcp]
type = tcp
local_ip = 192.168.2.232
local_port = 22
remote_port = 6000</p><p data-id="p838747a-yiLhrVXf"><strong> Service startup command: </strong></p><p>nohup ./frpc -c ./frpc.ini &
See #nohup command usage</p><p data-id="p838747a-AGqfTmhU"><strong>Test:</strong></p><p>#The test will not go into details, the external network uses 202.106.0.20 :6000 to access the ssh service of 192.168.2.232, the same 3389 remote desktop, can also be achieved after testing</p><p><br/></p>