Skip to content

Commit

Permalink
added bad-config example for squid
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene Rath committed Sep 16, 2023
1 parent 29b9ab3 commit 7ee587b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/1/network/proxy_squid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ Here are some examples that **DO NOT WORK**
TCP_MISS/403 ORIGINAL_DST/<proxy-ip>
...
* DNAT 80/443 to squid in non-transparent mode

.. code-block:: bash
Expand All @@ -467,6 +468,7 @@ Here are some examples that **DO NOT WORK**
NONE/400
...
* IPTables/NFTables TPROXY to `socat forwarder <https://manpages.debian.org/unstable/socat/socat.1.en.html>`_

SOCat is actually correctly receiving and forwarding the traffic - BUT practically it acts like a DNAT operation
Expand All @@ -484,6 +486,16 @@ Here are some examples that **DO NOT WORK**
...
* Intercept/TPROXY mode with Squid inside docker container

Essentially docker seems to be NATing the traffic.

.. code-block:: bash
ERROR: NF getsockopt(ORIGINAL_DST) failed on conn18 local=192.168.0.2:3130 remote=192.168.0.1:48910 FD 12 flags=33: (2) No such file or directory
ERROR: NAT/TPROXY lookup failed to locate original IPs on conn18 local=192.168.0.2:3130 remote=192.168.0.1:48910 FD 12 flags=33
Known problems
**************

Expand Down

0 comments on commit 7ee587b

Please sign in to comment.