iptraf-ng-1.1.1 does not show traffic on some types of interfaces. Older(1.0.2) version did not show traffic on tun devices under Linux, new(1.1.1) also does not show it on ppp devices.
Which information could i provide to fix this issue?
My system: Gentoo Linux Arch: x86_64(but tried on x86 too)
On Tue, Mar 20, 2012 at 11:06:18AM +0400, Sergey Popov wrote:
iptraf-ng-1.1.1 does not show traffic on some types of interfaces. Older(1.0.2) version did not show traffic on tun devices under Linux, new(1.1.1) also does not show it on ppp devices.
Which information could i provide to fix this issue?
My system: Gentoo Linux Arch: x86_64(but tried on x86 too)
Could you try the following patch (against current git)?
Cheers, Vita
diff --git a/src/packet.c b/src/packet.c index dec3166..f41619f 100644 --- a/src/packet.c +++ b/src/packet.c @@ -67,6 +67,7 @@ static void adjustpacket(char *tpacket, struct sockaddr_ll *fromaddr, case ARPHRD_CSLIP: case ARPHRD_SLIP6: case ARPHRD_CSLIP6: + case ARPHRD_PPP: case ARPHRD_TUNNEL: case ARPHRD_NONE: *packet = tpacket;
20.03.2012 11:36, Vitezslav Samel пишет:
On Tue, Mar 20, 2012 at 11:06:18AM +0400, Sergey Popov wrote:
iptraf-ng-1.1.1 does not show traffic on some types of interfaces. Older(1.0.2) version did not show traffic on tun devices under Linux, new(1.1.1) also does not show it on ppp devices.
Which information could i provide to fix this issue?
My system: Gentoo Linux Arch: x86_64(but tried on x86 too)
Could you try the following patch (against current git)?
Cheers, Vita
diff --git a/src/packet.c b/src/packet.c index dec3166..f41619f 100644 --- a/src/packet.c +++ b/src/packet.c @@ -67,6 +67,7 @@ static void adjustpacket(char *tpacket, struct sockaddr_ll *fromaddr, case ARPHRD_CSLIP: case ARPHRD_SLIP6: case ARPHRD_CSLIP6:
- case ARPHRD_PPP: case ARPHRD_TUNNEL: case ARPHRD_NONE: *packet = tpacket;
After applying patch, ppp interfaces counters bringed back, thanks. But, however, counter for tun interfaces are still shows zeroes
On Tue, Mar 20, 2012 at 11:51:16AM +0400, Sergey Popov wrote:
20.03.2012 11:36, Vitezslav Samel пишет:
On Tue, Mar 20, 2012 at 11:06:18AM +0400, Sergey Popov wrote:
iptraf-ng-1.1.1 does not show traffic on some types of interfaces. Older(1.0.2) version did not show traffic on tun devices under Linux, new(1.1.1) also does not show it on ppp devices.
Which information could i provide to fix this issue?
My system: Gentoo Linux Arch: x86_64(but tried on x86 too)
Could you try the following patch (against current git)?
Cheers, Vita
diff --git a/src/packet.c b/src/packet.c index dec3166..f41619f 100644 --- a/src/packet.c +++ b/src/packet.c @@ -67,6 +67,7 @@ static void adjustpacket(char *tpacket, struct sockaddr_ll *fromaddr, case ARPHRD_CSLIP: case ARPHRD_SLIP6: case ARPHRD_CSLIP6:
- case ARPHRD_PPP: case ARPHRD_TUNNEL: case ARPHRD_NONE: *packet = tpacket;
After applying patch, ppp interfaces counters bringed back, thanks. But, however, counter for tun interfaces are still shows zeroes
Are you using current git or other version? I fixed the code in git (on Feb 27) to allow capture on tun-like interfaces (it's the ARPHRD_NONE in the above code).
Vita
20.03.2012 12:04, Vitezslav Samel wrote:
Are you using current git or other version? I fixed the code in git (on Feb 27) to allow capture on tun-like interfaces (it's the ARPHRD_NONE in the above code).
Vita
Tried git version without your patch. PPP ifaces works fine, tun - counters show zeroes. 'Filters -> Non-IP' switch has no difference.
On Tue, Mar 20, 2012 at 12:31:19PM +0400, Sergey Popov wrote:
20.03.2012 12:04, Vitezslav Samel wrote:
Are you using current git or other version? I fixed the code in git (on Feb 27) to allow capture on tun-like interfaces (it's the ARPHRD_NONE in the above code).
Vita
Tried git version without your patch. PPP ifaces works fine, tun - counters show zeroes.
Could you post output of "tcpdump -i <tun device> -L"?
And e.g. first 200 lines of "tcpdump -nli <tun device> -XX"?
Thanks, Vita
20.03.2012 16:53, Vitezslav Samel wrote:
Could you post output of "tcpdump -i <tun device> -L"?
And e.g. first 200 lines of "tcpdump -nli <tun device> -XX"?
Thanks, Vita
hostel6-gw ~ # tcpdump -i tun0 -L Data link types (use option -y to set): LINUX_SLL (Linux cooked)
hostel6-gw ~ # tcpdump -nli tun0 -XX | head -200 > 123.txt && cat 123.txt
10:25:01.199452 IP 95.87.64.22.22 > 74.73.99.126.36092: P 904903509:904903701(192) ack 4213659370 win 874 <nop,nop,timestamp 123537967 97095891> 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4510 00f4 7373 4000 4006 db8d 5bdc dc16 E...ss@.@...[... 0x0020: 5050 62b0 0016 8cfc 35ef bb55 fb27 56ea PPb.....5..U.'V. 0x0030: 8018 036a 6af6 0000 0101 080a 075d 0a2f ...jj........]./ 0x0040: 05c9 90d3 39c9 707a f080 da17 aa63 cfa6 ....9.pz.....c.. 0x0050: 6837 7260 276a 03c6 36c2 82e2 h7r`'j..6... 10:25:01.200997 IP 93.186.233.127.80 > 95.87.64.39.50519: . 3422271708:3422273068(1360) ack 1938669145 win 14 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0578 737b 4000 3b06 47c7 5dba e97f E..xs{@.;.G.]... 0x0020: 5bdc dc27 0050 c557 cbfb b8dc 738d be59 [..'.P.W....s..Y 0x0030: 5010 000e 8488 0000 369d 9892 520d 58c0 P.......6...R.X. 0x0040: 000c 78c5 4200 8167 2438 b750 ee17 250e ..x.B..g$8.P..%. 0x0050: a0b2 ef32 881d e021 c218 9942 ...2...!...B 10:25:01.201095 IP 93.186.233.127.80 > 95.87.64.39.50519: . 1360:2720(1360) ack 1 win 14 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0578 737c 4000 3b06 47c6 5dba e97f E..xs|@.;.G.]... 0x0020: 5bdc dc27 0050 c557 cbfb be2c 738d be59 [..'.P.W...,s..Y 0x0030: 5010 000e b5cb 0000 551b 8477 8d46 f18e P.......U..w.F.. 0x0040: 9c95 fc76 f395 3912 0c06 3727 887b e244 ...v..9...7'.{.D 0x0050: 5fda 59a7 60b6 ffff 5aac df3a _.Y.`...Z..: 10:25:01.201589 IP 95.87.64.39.50519 > 93.186.233.127.80: . ack 1360 win 16660 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0028 2750 4000 7f06 5542 5bdc dc27 E..('P@...UB[..' 0x0020: 5dba e97f c557 0050 738d be59 cbfb be2c ]....W.Ps..Y..., 0x0030: 5010 4114 6dcb 0000 P.A.m... 10:25:01.203391 IP 61.63.97.76.10038 > 95.87.64.68.22804: UDP, length 272 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 012c 2034 0000 7011 52e1 3d3f 614c E..,.4..p.R.=?aL 0x0020: 5bdc dc44 2736 5914 0118 3c65 6431 3a72 [..D'6Y...<ed1:r 0x0030: 6432 3a69 6432 303a 83d7 112f 2445 1486 d2:id20:.../$E.. 0x0040: 3ddc e490 f57a 009d e895 1284 353a 6e6f =....z......5:no 0x0050: 6465 7332 3038 3a82 3203 372a des208:.2.7* 10:25:01.203399 IP 178.47.211.11.1513 > 172.30.133.2.1513: UDP, length 123 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0097 09d7 0000 7611 8423 b22f d30b E.......v..#./.. 0x0020: ac1e 8502 05e9 05e9 0083 55cd 0d14 6e00 ..........U...n. 0x0030: c2d7 c1d7 05c1 5804 a045 0000 5e49 0000 ......X..E..^I.. 0x0040: f70c 6700 6e00 d98e 083a 001b 02e1 5b00 ..g.n....:....[. 0x0050: 0021 9700 001b 01a0 6100 00e7 .!......a... 10:25:01.205141 IP 172.30.133.2.1513 > 178.47.211.11.1513: UDP, length 20 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0030 6bac 0000 7f11 19b5 ac1e 8502 E..0k........... 0x0020: b22f d30b 05e9 05e9 001c 958e 0d0e 0000 ./.............. 0x0030: c2d7 c1d7 95ac 3f04 a045 0000 a145 0000 ......?..E...E.. 10:25:01.205597 IP 95.87.64.68.22804 > 64.188.232.198.22592: UDP, length 98 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 007e 257b 0000 7f11 b450 5bdc dc44 E..~%{.....P[..D 0x0020: 40bc e8c6 5914 5840 006a d9d5 6431 3a61 @...Y.X@.j..d1:a 0x0030: 6432 3a69 6432 303a 7d2e 7ed5 aa8d ec29 d2:id20:}.~....) 0x0040: 1554 c073 249f b358 78de 8c58 363a 7461 .T.s$..Xx..X6:ta 0x0050: 7267 6574 3230 3a7d 2e7e d5aa rget20:}.~.. 10:25:01.205702 IP 95.87.64.55.60666 > 194.190.77.178.80: . ack 897104070 win 65280 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0028 781c 4000 7f06 3b2f 5bdc dc37 E..(x.@...;/[..7 0x0020: c2be 4db2 ecfa 0050 7e00 b230 3578 b8c6 ..M....P~..05x.. 0x0030: 5010 ff00 5c94 0000 P...... 10:25:01.206437 IP 89.78.218.148.55500 > 95.87.64.68.22804: UDP, length 272 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 012c 0000 4000 3411 d9bd 594e da94 E..,..@.4...YN.. 0x0020: 5bdc dc44 d8cc 5914 0118 c3b5 6431 3a72 [..D..Y.....d1:r 0x0030: 6432 3a69 6432 303a 8252 1a4a 4925 83c1 d2:id20:.R.JI%.. 0x0040: 427f fef2 a321 c7d3 e328 098b 353a 6e6f B....!...(..5:no 0x0050: 6465 7332 3038 3a82 c2fa 8b4b des208:....K 10:25:01.206447 IP 96.254.25.42.55998 > 95.87.64.68.22804: UDP, length 291 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 013f 7c21 0000 6f11 1c44 60fe 192a E..?|!..o..D`..* 0x0020: 5bdc dc44 dabe 5914 012b 90ab 6431 3a72 [..D..Y..+..d1:r 0x0030: 6432 3a69 6432 303a 8ed1 6a22 b7f1 c40b d2:id20:..j".... 0x0040: 432d 1eb2 ac26 13a0 fdac 8ec2 323a 6970 C-...&......2:ip 0x0050: 343a 5bdc dc44 353a 6e6f 6465 4:[..D5:node 10:25:01.206486 IP 213.146.189.204.12350 > 95.87.64.109.56729: F 2836630382:2836630382(0) ack 3581796087 win 6432 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0028 b2fc 4000 1f06 dd2a d592 bdcc E..(..@....*.... 0x0020: 5bdc dc6d 303e dd99 a913 8b6e d57d def7 [..m0>.....n.}.. 0x0030: 5011 1920 d43a 0000 P....:.. 10:25:01.206505 IP 213.146.189.204.12350 > 95.87.64.109.56729: F 0:0(0) ack 1 win 6432 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0028 b2fc 4000 1e06 de2a d592 bdcc E..(..@....*.... 0x0020: 5bdc dc6d 303e dd99 a913 8b6e d57d def7 [..m0>.....n.}.. 0x0030: 5011 1920 d43a 0000 P....:.. 10:25:01.209381 IP 223.19.67.29.18190 > 95.87.64.68.22804: UDP, length 272 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 012c 0df0 4000 7011 a17f df13 431d E..,..@.p.....C. 0x0020: 5bdc dc44 470e 5914 0118 54ac 6431 3a72 [..DG.Y...T.d1:r 0x0030: 6432 3a69 6432 303a 828f 5b4e ddaa c32e d2:id20:..[N.... 0x0040: 3ccf cee0 f09c f018 a794 f682 353a 6e6f <...........5:no 0x0050: 6465 7332 3038 3a82 f20d ac6c des208:....l 10:25:01.211446 IP 95.87.64.56.52862 > 74.125.168.212.80: . ack 2456013890 win 16660 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0028 021c 4000 7f06 ce4d 5bdc dc38 E..(..@....M[..8 0x0020: 4a7d a8d4 ce7e 0050 c226 6339 9263 cc42 J}...~.P.&c9.c.B 0x0030: 5010 4114 f084 0000 P.A..... 10:25:01.211829 IP 74.125.168.212.80 > 95.87.64.56.52862: . 1361:2721(1360) ack 0 win 389 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0578 2ee8 4000 3b06 e031 4a7d a8d4 E..x..@.;..1J}.. 0x0020: 5bdc dc38 0050 ce7e 9263 d192 c226 6339 [..8.P.~.c...&c9 0x0030: 5010 0185 fae1 0000 0b85 8ae1 61a8 5066 P...........a.Pf 0x0040: 1419 10c2 2e3f 3d73 f5e9 d56b ebf4 e334 .....?=s...k...4 0x0050: 7086 aea4 bc0b 9c7d 2a4f 61ba p......}*Oa. 10:25:01.211927 IP 74.125.168.212.80 > 95.87.64.56.52862: . 2721:4081(1360) ack 0 win 389 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0578 2ee9 4000 3b06 e030 4a7d a8d4 E..x..@.;..0J}.. 0x0020: 5bdc dc38 0050 ce7e 9263 d6e2 c226 6339 [..8.P.~.c...&c9 0x0030: 5010 0185 f6e0 0000 1451 ee77 3c26 a04e P........Q.w<&.N 0x0040: 0a13 9b8a a930 6ca6 137b 0b77 c7d1 33fd .....0l..{.w..3. 0x0050: 2aaa 58cd c7b0 166d a36d 2f0e *.X....m.m/. 10:25:01.215766 IP 95.87.64.68.22804 > 151.49.83.48.15780: UDP, length 98 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 007e 257c 0000 7f11 f370 5bdc dc44 E..~%|.....p[..D 0x0020: 9731 5330 5914 3da4 006a ee11 6431 3a61 .1S0Y.=..j..d1:a 0x0030: 6432 3a69 6432 303a 7d2e 7ed5 aa8d ec29 d2:id20:}.~....) 0x0040: 1554 c073 249f b358 78de 8c58 363a 7461 .T.s$..Xx..X6:ta 0x0050: 7267 6574 3230 3a7d 2e7e d5aa rget20:}.~.. 10:25:01.223649 IP 95.87.64.65.50445 > 94.245.121.253.3544: UDP, length 46 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 004a 3991 0000 7f11 f101 5bdc dc41 E..J9.......[..A 0x0020: 5ef5 79fd c50d 0dd8 0036 b0d9 6000 0000 ^.y......6..`... 0x0030: 0000 3b15 2001 0000 5ef5 79fb 3005 3af2 ..;.....^.y.0.:. 0x0040: a423 23be 2001 0000 5ef5 79fd 3c19 1bb7 .##.....^.y.<... 0x0050: 4db3 1995 0104 09a5 e11b M......... 10:25:01.223674 IP 95.87.64.65.64944 > 87.240.143.243.80: . ack 1951178975 win 16552 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0028 3992 4000 7f06 a23c 5bdc dc41 E..(9.@....<[..A 0x0020: 57f0 8ff3 fdb0 0050 db81 e262 744c a0df W......P...btL.. 0x0030: 5010 40a8 7e19 0000 P.@.~... 10:25:01.223710 IP 95.87.64.65.50445 > 94.245.121.251.3544: UDP, length 46 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 004a 3994 0000 7f11 f100 5bdc dc41 E..J9.......[..A 0x0020: 5ef5 79fb c50d 0dd8 0036 a3bb 6000 0000 ^.y......6..`... 0x0030: 0000 3b15 2001 0000 5ef5 79fb 3005 3af2 ..;.....^.y.0.:. 0x0040: a423 23be 2001 0000 5ef5 79fb 349b 0fd0 .##.....^.y.4... 0x0050: 4db3 1e97 0104 ae6a 57db M......jW. 10:25:01.225717 IP 95.87.64.68.22804 > 188.217.35.210.23197: UDP, length 98 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 007e 257d 0000 7f11 fd25 5bdc dc44 E..~%}.....%[..D 0x0020: bcd9 23d2 5914 5a9d 006a 59a7 6431 3a61 ..#.Y.Z..jY.d1:a 0x0030: 6432 3a69 6432 303a 7d2e 7ed5 aa8d ec29 d2:id20:}.~....) 0x0040: 1554 c073 249f b358 78de 8c58 363a 7461 .T.s$..Xx..X6:ta 0x0050: 7267 6574 3230 3a7d 2e7e d5aa rget20:}.~.. 10:25:01.225855 IP 194.190.77.178.80 > 95.87.64.55.60666: . 1361:2721(1360) ack 0 win 25840 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0578 02c9 4000 3c06 ee32 c2be 4db2 E..x..@.<..2..M. 0x0020: 5bdc dc37 0050 ecfa 3578 be16 7e00 b230 [..7.P..5x..~..0 0x0030: 5010 64f0 5353 0000 6691 9c7c 665f a18a P.d.SS..f..|f_.. 0x0040: 3308 2553 e72d a015 c363 c535 a14c 7edb 3.%S.-...c.5.L~. 0x0050: cf13 ab6e d461 c593 3977 2100 ...n.a..9w!. 10:25:01.225956 IP 194.190.77.178.80 > 95.87.64.55.60666: . 2721:4081(1360) ack 0 win 25840 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0578 02ca 4000 3c06 ee31 c2be 4db2 E..x..@.<..1..M. 0x0020: 5bdc dc37 0050 ecfa 3578 c366 7e00 b230 [..7.P..5x.f~..0 0x0030: 5010 64f0 f3ef 0000 f6b0 c482 a4dc a4bd P.d............. 0x0040: fc9a ac20 0028 1987 040d 2853 28b3 863e .....(....(S(..> 0x0050: 779f ac7d 20bd a8d3 97a1 e14f w..}.......O 10:25:01.228105 IP 95.87.64.55.60666 > 194.190.77.178.80: . ack 1 win 65280 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0028 781d 4000 7f06 3b2e 5bdc dc37 E..(x.@...;.[..7 0x0020: c2be 4db2 ecfa 0050 7e00 b230 3578 b8c6 ..M....P~..05x.. 0x0030: 5010 ff00 5c94 0000 P...... 10:25:01.230247 IP 93.186.233.127.80 > 95.87.64.39.50519: . 2720:4080(1360) ack 1 win 14 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0578 737d 4000 3b06 47c5 5dba e97f E..xs}@.;.G.]... 0x0020: 5bdc dc27 0050 c557 cbfb c37c 738d be59 [..'.P.W...|s..Y 0x0030: 5010 000e 553e 0000 bc3d 7a25 6b26 8250 P...U>...=z%k&.P 0x0040: e825 f792 ec10 ecd5 db2e 71a6 a6a1 f875 .%........q....u 0x0050: f482 c912 cb74 fa3c 9525 b312 .....t.<.%.. 10:25:01.230346 IP 93.186.233.127.80 > 95.87.64.39.50519: . 4080:5440(1360) ack 1 win 14 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0578 737e 4000 3b06 47c4 5dba e97f E..xs~@.;.G.]... 0x0020: 5bdc dc27 0050 c557 cbfb c8cc 738d be59 [..'.P.W....s..Y 0x0030: 5010 000e 4eb7 0000 24c5 9b9c f4a4 aa41 P...N...$......A 0x0040: ecf9 0a05 8179 5322 9fff ffff ffd5 f28a .....yS"........ 0x0050: 9700 82c5 f337 ba8c 84a3 3dfb .....7....=. 10:25:01.230354 IP 95.29.203.197.46498 > 95.87.64.123.61704: F 2959539429:2959539429(0) ack 295135294 win 65020 0x0000: 0000 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0028 f72c 4000 7a06 a668 5f1d cbc5 E..(.,@.z..h_... 0x0020: 5bdc dc7b b5a2 f108 b066 fce5 1197 683e [..{.....f....h> 0x0030: 5011 fdfc 80ce 0000 P....... 10:25:01.230849 IP 95.87.64.39.50519 > 93.186.233.127.80: . ack 1360 win 16660 <nop,nop,sack 1 {2720:4080}> 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0034 2751 4000 7f06 5535 5bdc dc27 E..4'Q@...U5[..' 0x0020: 5dba e97f c557 0050 738d be59 cbfb be2c ]....W.Ps..Y..., 0x0030: 8010 4114 1373 0000 0101 050a cbfb c37c ..A..s.........| 0x0040: cbfb c8cc .... 10:25:01.231036 IP 95.87.64.39.50519 > 93.186.233.127.80: . ack 1360 win 16660 <nop,nop,sack 1 {2720:5440}> 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0034 2752 4000 7f06 5534 5bdc dc27 E..4'R@...U4[..' 0x0020: 5dba e97f c557 0050 738d be59 cbfb be2c ]....W.Ps..Y..., 0x0030: 8010 4114 0e23 0000 0101 050a cbfb c37c ..A..#.........| 0x0040: cbfb ce1c .... 10:25:01.233663 IP 95.87.64.56.52862 > 74.125.168.212.80: . ack 2721 win 16660 0x0000: 0004 030a 0000 0000 0000 0000 0000 0800 ................ 0x0010: 4500 0028 021d 4000 7f06 ce4c 5bdc dc38 E..(..@....L[..8 0x0020: 4a7d a8d4 ce7e 0050 c226 6339 9263 d6e2 J}...~.P.&c9.c.. 0x0030: 5010 4114 e5e4 0000 P.A.....
On Wed, Mar 21, 2012 at 10:29:02AM +0400, Sergey Popov wrote:
20.03.2012 16:53, Vitezslav Samel wrote:
Could you post output of "tcpdump -i <tun device> -L"?
And e.g. first 200 lines of "tcpdump -nli <tun device> -XX"?
Thanks, Vita
hostel6-gw ~ # tcpdump -i tun0 -L Data link types (use option -y to set): LINUX_SLL (Linux cooked)
hostel6-gw ~ # tcpdump -nli tun0 -XX | head -200 > 123.txt && cat 123.txt
How is the tun device created? Show command, please. There is some encapsulation we need to strip.
Vita
21.03.2012 10:34, Vitezslav Samel пишет:
How is the tun device created? Show command, please. There is some encapsulation we need to strip.
Vita
Device is created through Gentoo initscripts, here is options...
hostel6-gw ~ # ip tunnel tun0: gre/ip remote 213.138.74.10 local 213.138.74.227 ttl 64
On Wed, Mar 21, 2012 at 10:36:56AM +0400, Sergey Popov wrote:
21.03.2012 10:34, Vitezslav Samel пишет:
How is the tun device created? Show command, please. There is some encapsulation we need to strip.
Vita
Device is created through Gentoo initscripts, here is options...
hostel6-gw ~ # ip tunnel tun0: gre/ip remote 213.138.74.10 local 213.138.74.227 ttl 64
Patch sent to the list minutes ago should fix it.
Cheers, Vita
Sergey Popov admin@pinkbyte.ru writes:
20.03.2012 11:36, Vitezslav Samel пишет:
On Tue, Mar 20, 2012 at 11:06:18AM +0400, Sergey Popov wrote:
iptraf-ng-1.1.1 does not show traffic on some types of interfaces. Older(1.0.2) version did not show traffic on tun devices under Linux, new(1.1.1) also does not show it on ppp devices.
Which information could i provide to fix this issue?
My system: Gentoo Linux Arch: x86_64(but tried on x86 too)
Could you try the following patch (against current git)?
Cheers, Vita
diff --git a/src/packet.c b/src/packet.c index dec3166..f41619f 100644 --- a/src/packet.c +++ b/src/packet.c @@ -67,6 +67,7 @@ static void adjustpacket(char *tpacket, struct sockaddr_ll *fromaddr, case ARPHRD_CSLIP: case ARPHRD_SLIP6: case ARPHRD_CSLIP6:
- case ARPHRD_PPP: case ARPHRD_TUNNEL: case ARPHRD_NONE: *packet = tpacket;
After applying patch, ppp interfaces counters bringed back, thanks. But, however, counter for tun interfaces are still shows zeroes
please go to Filters -> Non-IP and set it as visible; than you will see your connection
iptraf-ng@lists.fedorahosted.org