--- west.console.txt 2019-09-21 07:12:56.263539255 +0000 +++ OUTPUT/west.console.txt 2019-09-21 07:29:20.451487592 +0000 @@ -32,14 +32,12 @@ iptables -L -n Chain INPUT (policy ACCEPT) target prot opt source destination -NFLOG all -- 0.0.0.0/0 0.0.0.0/0 policy match dir in pol ipsec nflog-prefix all-ipsec nflog-group 50 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 policy match dir in pol ipsec LOGDROP all -- 192.0.2.0/24 0.0.0.0/0 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination -NFLOG all -- 0.0.0.0/0 0.0.0.0/0 policy match dir out pol ipsec nflog-prefix all-ipsec nflog-group 50 Chain LOGDROP (1 references) target prot opt source destination LOG all -- 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 4 @@ -67,27 +65,15 @@ 64 bytes from 192.0.2.254: icmp_seq=2 ttl=64 time=0.XXX ms 64 bytes from 192.0.2.254: icmp_seq=3 ttl=64 time=0.XXX ms 64 bytes from 192.0.2.254: icmp_seq=4 ttl=64 time=0.XXX ms -8 packets captured -8 packets received by filter -0 packets dropped by kernel 64 bytes from 192.0.2.254: icmp_seq=5 ttl=64 time=0.XXX ms --- 192.0.2.254 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time XXXX rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms -[1]+ Done tcpdump -c 8 -s 0 -w /tmp/nflog-50.pcap -i nflog:50 west # cp /tmp/nflog-50.pcap OUTPUT/nflog-50.pcap west # tcpdump -n -r OUTPUT/nflog-50.pcap -reading from file OUTPUT/nflog-50.pcap, link-type NFLOG (Linux netfilter log messages) -IP 192.0.1.254 > 192.0.2.254: ICMP echo request, id XXXX, seq 1, length 64 -IP 192.0.2.254 > 192.0.1.254: ICMP echo reply, id XXXX, seq 1, length 64 -IP 192.0.1.254 > 192.0.2.254: ICMP echo request, id XXXX, seq 2, length 64 -IP 192.0.2.254 > 192.0.1.254: ICMP echo reply, id XXXX, seq 2, length 64 -IP 192.0.1.254 > 192.0.2.254: ICMP echo request, id XXXX, seq 3, length 64 -IP 192.0.2.254 > 192.0.1.254: ICMP echo reply, id XXXX, seq 3, length 64 -IP 192.0.1.254 > 192.0.2.254: ICMP echo request, id XXXX, seq 4, length 64 -IP 192.0.2.254 > 192.0.1.254: ICMP echo reply, id XXXX, seq 4, length 64 +tcpdump: truncated dump file; tried to read 4 file header bytes, only got 0 west # echo done done @@ -114,7 +100,8 @@ west # west # ipsec stop -Redirecting to: [initsystem] +PATH/bin/nsenter --mount=/run/mountns/west-nflog-01-global --net=/run/netns/west-nflog-01-global --uts=/run/utsns/west-nflog-01-global /bin/bash +002 shutting down west # # show no nflog left behind west #