An open API service indexing awesome lists of open source software.

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

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