Skip to content

Instantly share code, notes, and snippets.

@imyelo
Last active September 27, 2025 02:49
Show Gist options
  • Select an option

  • Save imyelo/b6c3d3d9383f7d5623f06a0c11052530 to your computer and use it in GitHub Desktop.

Select an option

Save imyelo/b6c3d3d9383f7d5623f06a0c11052530 to your computer and use it in GitHub Desktop.

Revisions

  1. imyelo revised this gist Jan 24, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion frpc.service
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # 1. put frpc and frpc.ini under /usr/local/frpc/
    # 2. put this file (frpc.service) at /etc/systemd/system
    # 3. run `sudo systemctl daemon-reload && sudo systemctl start frpc.service`
    # 3. run `sudo systemctl daemon-reload && sudo systemctl enable frpc && sudo systemctl start frpc`
    # Then we can manage frpc with `sudo service frpc {start|stop|restart|status}`
    # See also: https://nosame.net/use-frp-to-reverse-proxy-your-nas/

  2. imyelo revised this gist Jun 28, 2019. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions frpc.service
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,9 @@
    # Then we can manage frpc with `sudo service frpc {start|stop|restart|status}`
    # See also: https://nosame.net/use-frp-to-reverse-proxy-your-nas/

    # Alternative for server:
    # - Offical: https://github.com/fatedier/frp/blob/a4cfab6/conf/systemd/frpc%40.service

    [Unit]
    Description=frp client
    Wants=network-online.target
  3. imyelo revised this gist Jan 14, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion frpc.service
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,8 @@

    [Unit]
    Description=frp client
    After=network.target
    Wants=network-online.target
    After=network.target network-online.target

    [Service]
    ExecStart=/usr/local/frpc/frpc -c /usr/local/frpc/frpc.ini
  4. imyelo revised this gist Jan 14, 2019. 1 changed file with 15 additions and 0 deletions.
    15 changes: 15 additions & 0 deletions frpc.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # 1. put frpc and frpc.ini under /usr/local/frpc/
    # 2. put this file (frpc.service) at /etc/systemd/system
    # 3. run `sudo systemctl daemon-reload && sudo systemctl start frpc.service`
    # Then we can manage frpc with `sudo service frpc {start|stop|restart|status}`
    # See also: https://nosame.net/use-frp-to-reverse-proxy-your-nas/

    [Unit]
    Description=frp client
    After=network.target

    [Service]
    ExecStart=/usr/local/frpc/frpc -c /usr/local/frpc/frpc.ini

    [Install]
    WantedBy=multi-user.target
  5. imyelo revised this gist Jan 14, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion uninstall.bat
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@

    nssm stop frpc
    nssm remove frpc
  6. imyelo revised this gist Jan 13, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions uninstall.bat
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@

    nssm remove frpc
  7. imyelo created this gist Jan 13, 2019.
    5 changes: 5 additions & 0 deletions install.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    : 1. download [nssm](https://github.com/kirillkovalenko/nssm) and set its diretory into the global PATH environment value
    : 2. replace the path below with where you placed frpc
    nssm install frpc "D:\Tools\frpc\frpc.exe" "-c D:\Tools\frpc\frpc.ini"
    nssm set frpc DisplayName "frp client"
    nssm start frpc
    1 change: 1 addition & 0 deletions uninstall.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    nssm remove frpc