iptables -I 1 DOCKER-USER -i eth0 -s your-network/24 -p tcp -m conntrack --ctorigdstport 27017 -j ACCEPT
iptables -I 2 DOCKER-USER -i eth0 -p tcp -m conntrack --ctorigdstport 27017 -j DROP
http_port 192.168.30.1:3128
http_port 192.168.30.1:3129 intercept
iptables -t nat -A PREROUTING -s 192.168.30.0/24 -p tcp -m multiport --dport 80,81,82,83,88,8000,8001,8002,8080,8081 -j REDIRECT --to-port 3129
iptables -t nat -A OUTPUT -m owner --gid-owner ТУТ_ГРУППА_ВАШЕГО_ПРОЦЕССА -p tcp --dport 443 -j DNAT --to ВАШЕ_ПРОКСИ
https://www.frozentux.net/iptables-tutorial/iptabl...
iptables -L FORWARD -vnx
iptables -A FORWARD -d 192.168.0.255 -p tcp --dport 61234 -j ACCEPT
cat /proc/sys/net/ipv4/ip_forward
, echo 1 > /proc/sys/net/ipv4/ip_forward