https://github.com/s8sg/proxy-protocol-server
Test Protocol Proxy server implemented in C
https://github.com/s8sg/proxy-protocol-server
Last synced: about 1 year ago
JSON representation
Test Protocol Proxy server implemented in C
- Host: GitHub
- URL: https://github.com/s8sg/proxy-protocol-server
- Owner: s8sg
- Created: 2019-01-02T07:42:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-10T10:43:44.000Z (over 5 years ago)
- Last Synced: 2025-03-20T02:08:10.711Z (over 1 year ago)
- Language: C
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### proto_proxy_server
A test server to test proxy protocol data
##### Build
```bash
make
```
#### Run
```bash
./pp_server 80
```
on success it will return
```html
400 Bad Request
Proxy Protocol Report
protocol version: v2
address family: IPv4
From: 192.168.0.136:0 -> To: 192.168.0.135:80
```
And log on stderr (for V2)
```bash
server established connection with host-192-168-0-134.openstacklocal (192.168.0.134)
proxy protocol v2
Family: IPV4
From: 192.168.0.131:0 -> To: 192.168.0.135:80
```
And it should not parse anything without proxy protocol and log
```bash
server established connection with host-192-168-0-136.openstacklocal (192.168.0.136)
Failed to parse proxy protocol: -7
```
# proxy-protocol-server