HUB
Sign inSign up
frp_neo logo

joyki/frp_neo

By joyki

•Updated 6 months ago

Image
0

116

joyki/frp_neo repository overview

⁠frp_neo

Docker images for frp⁠ v0.69.1 — a fast reverse proxy to expose local servers behind NAT or firewalls.

  • joyki/frp_neo:server — runs frps (server component)
  • joyki/frp_neo:client — runs frpc (client component)

All configuration is done via environment variables. The client supports JSON-based proxy definitions.


⁠Server

⁠Minimal
services:
  frps:
    image: joyki/frp_neo:server
    container_name: frp-server
    restart: unless-stopped
    ports:
      - "7000:7000"
    environment:
      FRPS_TOKEN: mysecret
⁠With dashboard
services:
  frps:
    image: joyki/frp_neo:server
    container_name: frp-server
    restart: unless-stopped
    ports:
      - "7000:7000"
      - "7500:7500"
    environment:
      FRPS_TOKEN: mysecret
      FRPS_DASHBOARD_PORT: "7500"
      FRPS_DASHBOARD_USER: admin
      FRPS_DASHBOARD_PWD: changeme
⁠Full server reference
VariableDefaultRequiredDescription
FRPS_TOKEN—yesAuthentication token
FRPS_BIND_PORT7000noPort for client connections
FRPS_BIND_ADDR0.0.0.0noBind address
FRPS_LOG_LEVELinfonoLog level
FRPS_DASHBOARD_PORT7500noDashboard port (empty = disabled)
FRPS_DASHBOARD_USER—noDashboard username
FRPS_DASHBOARD_PWD—noDashboard password
FRPS_ALLOW_PORTS—noPort whitelist, e.g. "2000-3000,3001,3003"
FRPS_EXTRA_CONFIG—noRaw TOML appended to config

⁠Client

⁠Minimal
services:
  frpc:
    image: joyki/frp_neo:client
    container_name: frp-client
    restart: unless-stopped
    environment:
      FRPC_SERVER_ADDR: 192.168.1.100
      FRPC_TOKEN: mysecret
      FRPC_PROXIES: '[{"name":"ssh","type":"tcp","localIP":"127.0.0.1","localPort":22,"remotePort":2222}]'
⁠With admin UI
services:
  frpc:
    image: joyki/frp_neo:client
    container_name: frp-client
    restart: unless-stopped
    ports:
      - "7400:7400"
    environment:
      FRPC_SERVER_ADDR: 192.168.1.100
      FRPC_SERVER_PORT: "7000"
      FRPC_TOKEN: mysecret
      FRPC_ADMIN_PORT: "7400"
      FRPC_ADMIN_USER: admin
      FRPC_ADMIN_PWD: changeme
      FRPC_PROXIES: |
        [
          {"name":"ssh","type":"tcp","localIP":"127.0.0.1","localPort":22,"remotePort":2222},
          {"name":"web","type":"http","localIP":"10.0.0.2","localPort":8080,"customDomains":"web.example.com"}
        ]
⁠Full client reference
VariableDefaultRequiredDescription
FRPC_SERVER_ADDR—yesServer IP or hostname
FRPC_SERVER_PORT7000noServer port
FRPC_TOKEN—yesAuthentication token
FRPC_LOG_LEVELinfonoLog level
FRPC_ADMIN_PORT—noAdmin UI port (empty = disabled)
FRPC_ADMIN_USER—noAdmin UI username
FRPC_ADMIN_PWD—noAdmin UI password
FRPC_PROXIES—noJSON array of proxy objects
FRPC_EXTRA_CONFIG—noRaw TOML appended to config
⁠Proxy format

Keys must use frp's camelCase naming and match [[proxies]] fields:

[
  {"name":"ssh","type":"tcp","localIP":"127.0.0.1","localPort":22,"remotePort":2222},
  {"name":"web","type":"http","localIP":"10.0.0.2","localPort":8080,"customDomains":"web.example.com"}
]

⁠IPv6 Support

frp natively supports IPv6. Both the server and client accept IPv6 addresses wherever an address is expected.

⁠Server listening on IPv6

Set FRPS_BIND_ADDR to :: to listen on all IPv6 interfaces:

services:
  frps:
    image: joyki/frp_neo:server
    container_name: frp-server
    restart: unless-stopped
    ports:
      - "7000:7000"
    environment:
      FRPS_TOKEN: mysecret
      FRPS_BIND_ADDR: "::"
⁠Client connecting over IPv6

Set FRPC_SERVER_ADDR to the server's IPv6 address:

services:
  frpc:
    image: joyki/frp_neo:client
    container_name: frp-client
    restart: unless-stopped
    environment:
      FRPC_SERVER_ADDR: "2001:db8::1"
      FRPC_TOKEN: mysecret
      FRPC_PROXIES: '[{"name":"ssh","type":"tcp","localIP":"127.0.0.1","localPort":22,"remotePort":2222}]'
⁠IPv6 in proxy definitions

Use an IPv6 address in localIP:

[{"name":"web","type":"tcp","localIP":"::1","localPort":80,"remotePort":8080}]
⁠Docker daemon requirements

Docker requires IPv6 to be enabled in /etc/docker/daemon.json:

{
  "ipv6": true,
  "fixed-cidr-v6": "2001:db8:1::/64"
}

After adding this, restart Docker: systemctl restart docker.


⁠Troubleshooting

⁠IPv6 ping works, but TCP connections fail ("Connection refused" / timeout)

This usually means the kernel is not bridging IPv6 traffic through Docker's port forwarding rules.

Check for this warning:

docker info | grep -i ip6tables

If you see WARNING: bridge-nf-call-ip6tables is disabled, the traffic reaches the host but is never DNAT'd into the container.

Fix it (run on the host):

echo 1 | sudo tee /proc/sys/net/bridge/bridge-nf-call-iptables
echo 1 | sudo tee /proc/sys/net/bridge/bridge-nf-call-ip6tables

Make it permanent:

cat <<EOF | sudo tee /etc/sysctl.d/99-docker-bridge.conf
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
EOF
sudo sysctl --system

Then restart your containers: docker compose restart.

⁠IPv6 not working at all in containers
  1. Check that Docker has IPv6 enabled:
docker info | grep -i ipv6
  1. Verify /etc/docker/daemon.json contains:
{
  "ipv6": true,
  "fixed-cidr-v6": "2001:db8:1::/64"
}
  1. Restart Docker after changes: systemctl restart docker.
⁠Container binds only IPv4 (0.0.0.0) instead of IPv6 (::)

Set FRPS_BIND_ADDR to :: in the container's environment. The default is 0.0.0.0 which only binds IPv4.

Verify what the container is actually listening on:

docker exec <container> ss -tlnp
  • 0.0.0.0:7000 — IPv4 only
  • :::7000 or *:7000 — IPv4 + IPv6
  • [::]:7000 — IPv6 only
⁠Host firewall blocking IPv6

Check if ip6tables has rules that block the ports:

ip6tables -L -n

If using ufw, ensure it allows the ports for IPv6:

ufw status verbose

⁠Portainer

In Portainer:

  1. Stacks → Add stack
  2. Paste one of the compose examples above
  3. Adjust environment variables
  4. Click Deploy the stack

Tag summary

Content type

Image

Digest

sha256:dbe57e658…

Size

24.6 MB

Last updated

6 months ago

docker pull joyki/frp_neo:client