I’m troubleshooting this router log message.
[ 587.842] ERROR edge/tunnel.DialAndRun: {error=[invalid edge router for session] service=[testapi-service]} tunnel failed
I encountered this while configuring the router as a proxy client, i.e. tunnel mode “proxy” with dial permission for a Ziti service. The router log shows that it begins listening for the service on the configured proxy port, but when I send data to the port it emits that error. I used policy-advisor to make certain the service and router policies are aligned.
I intended to configure the router to only serve as a proxy, not edge or transport. It panicked during startup when I did not provide the edge binding, so I have added that even though no SDKs will be configured with a router policy for this router’s edge listener. I have this router config.
v: 3
identity:
cert: ${ZITI_ROUTER_IDENTITY_DIR}/client.crt
server_cert: ${ZITI_ROUTER_IDENTITY_DIR}/tls.crt
key: ${ZITI_ROUTER_IDENTITY_DIR}/tls.key
ca: ${ZITI_ROUTER_IDENTITY_DIR}/ca.crt
ctrl:
endpoint: tls:ziti-controller-ctrl.ziti.svc:443
link:
dialers:
- binding: transport
listeners:
- binding: edge
address: tls:0.0.0.0:3022
options:
advertise: proxy1.ziti.svc:443
connectTimeoutMs: 1000
getSessionTimeout: 60
- binding: tunnel
options:
mode: proxy
services:
- "testapi-service:8080"
metrics:
reportInterval: 5s
intervalAgeThreshold: 5s
edge:
csr:
sans:
dns:
- localhost
- proxy1.ziti.svc
ip:
- 127.0.0.1
forwarder:
latencyProbeInterval: 10
xgressDialQueueLength: 1000
xgressDialWorkerCount: 128
linkDialQueueLength: 1000
linkDialWorkerCount: 32