<div dir="ltr">Hello,<div><br></div><div>i have a server with some extra failover public interfaces where i'm sending some kind of traffic on a round robin way using iptables SNAT :</div><div><br></div><div><div>auto eth1:0</div>
<div>iface eth1:0 inet static</div><div> address 1.1.1.1</div><div> netmask 255.255.255.255</div><div> broadcast 1.1.1.1</div><div><br></div><div>auto eth1:1</div><div>iface eth1:1 inet static</div><div>
address 2.2.2.2</div><div> netmask 255.255.255.255</div><div> broadcast 2.2.2.2</div><div><br></div><div>auto eth1:2</div><div>iface eth1:2 inet static</div><div> address 3.3.3.3</div><div> netmask 255.255.255.255</div>
<div> broadcast 3.3.3.3</div></div><div><br></div><div># iptables -L -n -t nat -v<br></div><div>[...]</div><div><div>Chain POSTROUTING (policy ACCEPT 10 packets, 685 bytes)</div><div> pkts bytes target prot opt in out source destination </div>
<div> 546 32760 SNAT all -- * eth1 <a href="http://0.0.0.0/0">0.0.0.0/0</a> <a href="http://1.2.3.0/22">1.2.3.0/22</a> statistic mode nth every 3 to:3.3.3.3</div><div> 546 32760 SNAT all -- * eth1 <a href="http://0.0.0.0/0">0.0.0.0/0</a> <a href="http://1.2.3.0/22">1.2.3.0/22</a> statistic mode nth every 2 to:2.2.2.2</div>
<div> 546 32760 SNAT all -- * eth1 <a href="http://0.0.0.0/0">0.0.0.0/0</a> <a href="http://1.2.3.0/22">1.2.3.0/22</a> statistic mode nth every 1 to:1.1.1.1</div><div> 614K 41M MASQUERADE all -- * eth1 <a href="http://0.0.0.0/0">0.0.0.0/0</a> <a href="http://0.0.0.0/0">0.0.0.0/0</a></div>
</div><div><br></div><div>all this is working fine !</div><div><br></div><div>i'm already monitoring physical interface (eth1) of that server using mrtg/smp and now, i would like to monitore pkts/bytes passing through extra interfaces.</div>
<div>i searched a bit if iptables is reachable via snmp but cannot find anything.</div><div><br></div><div>does somebody know a way to achieve this ?</div><div><br></div><div>Regards,</div><div>Marco</div></div>