Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Add Intranet Penetration Service (frps) to pfsense

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

I. cause

1. There is no public network IP at home, so it is not convenient to manage the equipment in the home.

2. The reason for using pfsense is that there is a public network address, and I have thought of using SSH tunnel to forward it, because it is convenient for openwrt routers to have frp client.

II. System version

1. Use version: pfsense2.3.5 (32-bit version)

2. Download address of frp package, download the version of your own system (frp_0.27.0_freebsd_386.tar.gz)

Https://github.com/fatedier/frp/releases III. Specific operation

1. Decompress the software package to get the following files

2. Upload frps and frps_full.ini to pfsense firewall corresponding directory through winscp

/ usr/local/bin/frps/usr/local/etc/frps/frps_full.ini

3. Set the execution permission

Chmod + x / usr/local/bin/frps

4. Write a boot script and create a script file

Touch autorun-frps.sh

5. Write the following code (the most important thing is the last line, fill in according to the path of uploading the file)

#! / bin/sh#autorun frps#2019-05-25/usr/local/bin/frps-c / usr/local/etc/frps/frps_full.ini &

6. Place the script in the

/ usr/local/etc/rc.d

7. Set file permissions

Chmod 755 autorun-frps.sh

(there is a pit here, and the permission is 755, otherwise it cannot be run)

8. Open the frps port

The main ports are 7000, 7001, 7500, 80,443, according to their own needs.

IV. Verification

1. View the operation of frps service

Sockstat | grep frps

2. Manage the panel access test

Http://hostname:7500

Username and password admin, admin, which can be modified in the configuration file.

Remarks

1. Pfsense needs to open the terminal, located in system > advanced

2. Use the system administrator account

# Exchange group number: 891815109

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report