Jump to content

squid проблемы с tproxy

У меня нистроет TPROXY в сквирд до следующей инструкции:

ip -f inet rule add fwmark 1 lookup 100
ip -f inet route add local default dev eth0 table 100

iptables -t mangle -N DIVERT
iptables -t mangle -A DIVERT -j MARK --set-mark 1
iptables -t mangle -A DIVERT -j ACCEPT

iptables  -t mangle -A PREROUTING -p tcp -m socket -j DIVERT

iptables  -t mangle -A PREROUTING -p tcp --dport 80 -j TPROXY --tproxy-mark 0x1/0x1 --on-port 3129



http_port 3130
http_port 3128 tproxy disable-pmtu-discovery=off
http_port intercept
acl localnet src
acl localhost src
acl bad_url url_regex "/opt/zapret_gov.txt"
http_access deny bad_url

http_access allow localnet
http_access allow localhost
http_access deny all

deny_info bad_url


cast [user]val[/user]


Импортированно из:https://www.linux.org.ru/forum/admin/11739874

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.