Route HTTP requests through Pilot Protocol tunnels using the gateway subsystem.
bash
pilotctl --json gateway start
bash
pilotctl --json gateway map <hostname> <local-ip>
bash
pilotctl --json gateway list
bash
pilotctl --json gateway unmap <local-ip>
bash
pilotctl --json gateway stop
bash
#!/bin/bash
# Access remote HTTP API
pilotctl --json daemon start
pilotctl --json find api-server
pilotctl --json gateway start
pilotctl --json gateway map api-server 192.168.100.50
# Access remote service
curl http://192.168.100.50/api/v1/status
curl http://192.168.100.50:8080/metrics
Gateway forwards common HTTP ports:
Requires pilot-protocol skill with running daemon. Root/sudo on Linux for port <1024.