kubernetes network 15 - kube proxy iptables trace 1

Опубликовано: 27 Январь 2025
на канале: BPFire
1,548
4

trace kubernetes iptables rule to find packet flow

#modprobe nf_log_ipv4
#sysctl net.netfilter.nf_log.2=nf_log_ipv4
cat /etc/rsyslog.conf | grep -e "^kern"
kern.*;*.info;mail.none;authpriv.none;cron.none

#systemctl restart rsyslog

#iptables -t raw -j TRACE -p udp --dport 53 -I PREROUTING 1

#iptables -t raw -j TRACE -p udp --dport 53 -I OUTPUT 1

ref: https://www.opensourcerers.org/2016/0...