Skip to content

FRP Port Mapping

FRP NAT Traversal

What is FRP?

FRP is a high-performance reverse proxy focused on NAT traversal. It supports:

  • TCP, UDP, HTTP, HTTPS, and more
  • Securely exposing internal services
  • Self-hosted servers or third-party providers

Install and Configure

  1. Install the FRPC client on One-KVM:

    wget https://raw.githubusercontent.com/stilleshan/frpc/master/frpc_linux_install.sh && chmod +x frpc_linux_install.sh && ./frpc_linux_install.sh
    
  2. Obtain FRP configuration info

    • If using a third-party provider (e.g., OpenFrp), create a tunnel and get its config
    • If self-hosting, deploy the FRPS server and prepare the config

    Example of creating a TCP tunnel in OpenFrp: Create tunnel

    Tunnel config

  3. Edit the FRPC config file:

    1
    2
    3
    4
    5
    6
    7
    8
    # Edit the config file
    nano /usr/local/frp/frpc.toml
    
    # Restart to apply changes
    sudo systemctl restart frpc
    
    # Check status
    sudo systemctl status frpc
    

FRPC config example

Remote Access

Access with HTTPS

When accessing the One-KVM web UI, you must use the https:// scheme, for example:

https://your-domain:port
Using http:// will return a "400 Bad Request" error.

HTTPS Access Hint

Security Recommendation

  • Use strong passwords to protect your FRP service
  • Enable two-factor authentication in One-KVM
  • Review and update FRP configs regularly