# Building mmproxy with Linux TPROXY and iptables to preserve client IP addresses

DevFeed: [Building mmproxy with Linux TPROXY and iptables to preserve client IP addresses](<https://devfeed.tech/articles/mmproxy-creative-linux-routing-hack-38976.md>)

Original publisher: [Read original article](<https://idea.popcount.org/2018-04-17-mmproxy---creative-linux-routing-hack>)

Author: Marek

Published: 2018-04-16T22:00:00Z

Content type: article

Language: en

Sources: [Marek Majkowski](<https://devfeed.tech/sources/marek-majkowski.md>)

Topics: [Linux](<https://devfeed.tech/topics/linux.md>), [proxy](<https://devfeed.tech/topics/proxy.md>), [Protocol (disambiguation)](<https://devfeed.tech/topics/protocol.md>), [networking](<https://devfeed.tech/topics/networking.md>), [Cloudflare](<https://devfeed.tech/topics/cloudflare.md>)

Tags: [client](<https://devfeed.tech/tags/client.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [iptables](<https://devfeed.tech/tags/iptables.md>), [linux](<https://devfeed.tech/tags/linux.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [proxy](<https://devfeed.tech/tags/proxy.md>), [v1](<https://devfeed.tech/tags/v1.md>)

## AI overview

This article describes building mmproxy with Linux's TPROXY iptables module: a simple Proxy Protocol v1 proxy that can preserve or locally spoof client IP addresses. It notes that the proxy is useful with Cloudflare Spectrum.

## Source excerpt

mmproxy - creative linux routing hack 17 April 2018 I've published an article on how we abused TPROXY iptables module to build , a simple Proxy Protocol v1 proxy that can "preserve" (or locally spoof) client IP addreses. It's pretty useful together with Cloudflare Spectrum: