Created
July 19, 2019 02:30
-
-
Save zhaohuabing/7abaf8e00d2ab8978dc3e5d890fcc637 to your computer and use it in GitHub Desktop.
Split TCP from HTTP traffic by listener filters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version_info": "0", | |
"listener": { | |
"name": "0.0.0.0_1030", | |
"address": { | |
"socket_address": { | |
"address": "0.0.0.0", | |
"port_value": 1030 | |
} | |
}, | |
"filter_chains": [ | |
{ | |
"filter_chain_match": { | |
"server_names": [ | |
"HTTP.DATA.COM" | |
] | |
}, | |
"filters": [ | |
{ | |
"name": "envoy.http_connection_manager", | |
"config": { | |
"rds": { | |
"config_source": { | |
"ads": {} | |
}, | |
"route_config_name": "1030" | |
}, | |
"use_remote_address": false, | |
"stat_prefix": "0.0.0.0_1030", | |
"generate_request_id": true, | |
"stream_idle_timeout": "0s", | |
"upgrade_configs": [ | |
{ | |
"upgrade_type": "websocket" | |
} | |
], | |
"access_log": [ | |
{ | |
"name": "envoy.file_access_log", | |
"config": { | |
"path": "/dev/stdout", | |
"format": "[%START_TIME%] \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% \"%REQ(X-FORWARDED-FOR)%\" \"%REQ(USER-AGENT)%\" \"%REQ(X-REQUEST-ID)%\" \"%REQ(:AUTHORITY)%\" \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS% %REQUESTED_SERVER_NAME%\n" | |
} | |
} | |
], | |
"http_filters": [ | |
{ | |
"name": "envoy.cors" | |
}, | |
{ | |
"name": "envoy.fault" | |
}, | |
{ | |
"name": "envoy.router" | |
} | |
], | |
"tracing": { | |
"overall_sampling": { | |
"value": 100 | |
}, | |
"random_sampling": { | |
"value": 100 | |
}, | |
"client_sampling": { | |
"value": 100 | |
}, | |
"operation_name": "EGRESS" | |
} | |
} | |
} | |
] | |
}, | |
{ | |
"filter_chain_match": { | |
"server_names": [ | |
"" | |
] | |
}, | |
"filters": [ | |
{ | |
"name": "envoy.tcp_proxy", | |
"config": { | |
"stat_prefix": "PassthroughCluster", | |
"cluster": "PassthroughCluster" | |
} | |
} | |
] | |
} | |
], | |
"deprecated_v1": { | |
"bind_to_port": false | |
}, | |
"listener_filters": [ | |
{ | |
"name": "envoy.listener.http_inspector" | |
}, | |
{ | |
"name": "envoy.listener.tls_inspector" | |
} | |
] | |
}, | |
"last_updated": "2019-07-17T09:48:45.210Z" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment