Loading... ## frpc 客户端 ### frpc.ini ``` [common] server_addr = bj.cykablyat.date server_port = 7000 token = 123123123123123123 [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 6000 [RDP] type = tcp local_ip = 127.0.0.1 local_port = 3389 remote_port = 33898 [RDP_UDP] type = udp local_ip = 127.0.0.1 local_port = 3389 remote_port = 33898 ``` new frpc.ini ``` serverAddr = "ahk.cykablyat.date" serverPort = 7000 auth.token = "123bbb" [[proxies]] name = "rdp-tcp" type = "tcp" localIP = "127.0.0.1" localPort = 3389 remotePort = 33899 [[proxies]] name = "rdp-udp" type = "udp" localIP = "127.0.0.1" localPort = 3389 remotePort = 33899 ``` ### 启动 start_c.bat ``` @echo off :home frpc -c frpc.ini goto home ``` ### 计划任务xml ``` <?xml version="1.0" encoding="UTF-16"?> <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo> <Date>2020-08-04T17:19:13.2061299</Date> <Author>DESKTOP-URI11SU\mxy</Author> <URI>\frp</URI> </RegistrationInfo> <Triggers> <BootTrigger> <Repetition> <Interval>PT1H</Interval> <StopAtDurationEnd>false</StopAtDurationEnd> </Repetition> <Enabled>true</Enabled> </BootTrigger> </Triggers> <Principals> <Principal id="Author"> <UserId>S-1-5-21-1911801806-711402833-3893672945-1001</UserId> <LogonType>Password</LogonType> <RunLevel>HighestAvailable</RunLevel> </Principal> </Principals> <Settings> <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy> <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries> <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries> <AllowHardTerminate>true</AllowHardTerminate> <StartWhenAvailable>true</StartWhenAvailable> <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable> <IdleSettings> <StopOnIdleEnd>true</StopOnIdleEnd> <RestartOnIdle>false</RestartOnIdle> </IdleSettings> <AllowStartOnDemand>true</AllowStartOnDemand> <Enabled>true</Enabled> <Hidden>true</Hidden> <RunOnlyIfIdle>false</RunOnlyIfIdle> <WakeToRun>false</WakeToRun> <ExecutionTimeLimit>PT0S</ExecutionTimeLimit> <Priority>7</Priority> <RestartOnFailure> <Interval>PT1M</Interval> <Count>3</Count> </RestartOnFailure> </Settings> <Actions Context="Author"> <Exec> <Command>C:\Users\mxy\Desktop\-_-\frp_0.33.0_windows_amd64\start_c.bat</Command> <WorkingDirectory>C:\Users\mxy\Desktop\-_-\frp_0.33.0_windows_amd64\</WorkingDirectory> </Exec> </Actions> </Task> ``` ## frps 服务端 ### frps.ini ``` [common] bind_port = 7000 token = 123123123123123123123 use_encryption = true //下面这两行是加密和压缩传输 use_compression = true ``` ### 启动bat ``` @echo off :home frps -c frps.ini goto home ``` 最后修改:2024 年 05 月 06 日 © 允许规范转载 打赏 赞赏作者 赞 1 如果觉得我的文章对你有用,请随意赞赏