cp frps /opt/bin
[common]
bind_port = 7000
dashboard_port = 7001
dashboard_user = user
dashboard_pwd = password
用 nobody 開機自動執行
/etc/systemd/system/frps.service
[Unit]
Description=FRP Server Daemon
[Service]
Type=simple
ExecStartPre=-/usr/sbin/setcap cap_net_bind_service=+ep /opt/bin/frps
ExecStart=/opt/bin/frps -c /opt/etc/frps.ini
Restart=always
RestartSec=20s
User=nobody
PermissionsStartOnly=true
LimitNOFILE=infinity
[Install]
WantedBy=multi-user.target
sudo systemctl start frps
sudo systemctl enable frps
frpc.ini
[common]
server_addr = digichance11.vigorddns.com
server_port = 7000
login_fail_exit = false
[vnc]
type = tcp
local_ip = 127.0.0.1
local_port = 8088
remote_port = 2172
開機自動執行
ftpc.vbs
set ws=Wscript.CreateObject("Wscript.Shell")
ws.Run "C:\frp_0.31.2_windows_386\frpc.exe -c C:\frp_0.31.2_windows_386\frpc.ini", 0
用 nobody 開機自動執行
/etc/systemd/system/frps.service
[Unit]
Description=FRP Server Daemon
[Service]
Type=simple
ExecStartPre=-/usr/sbin/setcap cap_net_bind_service=+ep /opt/bin/frps
ExecStart=/opt/bin/frps -c /opt/etc/frps.ini
Restart=always
RestartSec=20s
User=nobody
PermissionsStartOnly=true
LimitNOFILE=infinity
[Install]
WantedBy=multi-user.target
sudo systemctl start frps
sudo systemctl enable frps
frpc.ini
[common]
server_addr = digichance11.vigorddns.com
server_port = 7000
login_fail_exit = false
[vnc]
type = tcp
local_ip = 127.0.0.1
local_port = 8088
remote_port = 2172
開機自動執行
set ws=Wscript.CreateObject("Wscript.Shell")
ws.Run "C:\frp_0.31.2_windows_386\frpc.exe -c C:\frp_0.31.2_windows_386\frpc.ini", 0
gpedit.msc
本機電腦 原則/電腦設定/指令碼 - (啟動/關機)
啟動/內容
新增 ftpc.vbs
frpc.bat
REM 雙擊執行,不顯示視窗
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
frpc.exe -c frpc.ini
本機電腦 原則/電腦設定/指令碼 - (啟動/關機)
啟動/內容
新增 ftpc.vbs
frpc.bat
REM 雙擊執行,不顯示視窗
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
frpc.exe -c frpc.ini
連線 vnc 時,出現下列錯誤
Local loop-back connections are disabled.
在視窗右下角 vnc icon 按滑鼠右鍵/Admin Properties/滑鼠左鍵
打勾 Allow Loopback Connections
Local loop-back connections are disabled.
在視窗右下角 vnc icon 按滑鼠右鍵/Admin Properties/滑鼠左鍵
打勾 Allow Loopback Connections
沒有留言:
張貼留言