trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rebirthing <nemo...@gmail.com>
Subject Problem on Transparent-Proxy Configuration
Date Tue, 24 Jan 2017 07:45:17 GMT
Hello. My name is Jaden, a developer in korea.

I'm trying to configure Router-ATS Transparent Proxy.

But it doesn't work and I couldn't figure out the problem.

Please Help me.

-Environments-
OS : Ubuntu 16.04
ATS Version : Latest
Network Topology :
 Internet ----- (ens33,  192.168.75.0/24) : ATS : (ens35, 172.16.113.0/24)
---- Intranet

iptables setting

:
# iptables -t nat -A POSTROUTING -o ens33 -j MASQUERADE
# iptables -A FORWARD -i ens33 -o ens35 -m state --state
RELATED,ESTABLISHED -j ACCEPT
# iptables -A FORWARD -i ens35 -o ens33 -j ACCEPT

# iptables -t mangle -A PREROUTING -i ens35 -p tcp -m tcp --dport 80 -j
TPROXY  --on-ip 0.0.0.0 --on-port 8080 --tproxy-mark 1/1
# iptables -t mangle -A PREROUTING -i ens33 --source 192.168.75.0/24 -j
ACCEPT
# iptables -t mangle -A PREROUTING -i ens33 --destination 192.168.75.0/24 -j
ACCEPT
# iptables -t mangle -A PREROUTING -i eth33 -p tcp -m tcp --sport 80 -j
MARK --set-mark 1/1
# ip rule add fwmark 1/1 table 1
# ip route add local 0.0.0.0/0 dev lo table 1

I checked the packets with wireshark. Only Tcp packets didn't pass through.

DNS Querying is working but TCP not.

Could you help me?

Thank you.

Mime
View raw message