4 ms·
This doesn't work. Breaks traffic out (below) and in. # sysctl net.ipv4.ip_forward net.ipv4.conf.enp8s0.forwarding net.ipv4.conf.docker0.forwarding net
by forbiddenlake 4y ago
This doesn't work. Breaks traffic out (below) and in.
# sysctl net.ipv4.ip_forward net.ipv4.conf.enp8s0.forwarding net.ipv4.conf.docker0.forwarding
net.ipv4.ip_forward = 1
net.ipv4.conf.enp8s0.forwarding = 1
net.ipv4.conf.docker0.forwarding = 1
# docker run --rm alpine/curl -sI --max-time 5 http://1.1.1.1 | head -n2
HTTP/1.1 301 Moved Permanently
Server: cloudflare
# sysctl net.ipv4.conf.enp8s0.forwarding=0
net.ipv4.conf.enp8s0.forwarding = 0
# docker run --rm alpine/curl -I --max-time 5 http://1.1.1.1 | head -n2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
curl: (28) Connection timed out after 5000 milliseconds