Tag Info

New answers tagged

0

I wrote a tool precisely for this task. It reformats iptables -S output into a tree of chains as they are being applied. By analyzing its output, I deduced that _rule chains are intended for manually-added rules. The tool is also useful for rule diagnostics: if you reset rule counters, make a network test, then feed it the output with packet counters, you ...


1

You can use traceroute and specify the device to use with -i, then the next hop will be the router connected to that device.


0

I think you want the ip route command. If you invoke ip route on my server, which has two ethernet cards, "enp3s0" and "enp3s8", you get this: 1001 % ip route default via 10.0.0.1 dev enp3s8 10.0.0.0/24 dev enp3s8 proto kernel scope link src 10.0.0.3 192.168.1.0/24 dev enp3s0 proto kernel scope link src 192.168.1.148 That shows you all the routes. ...



Top 50 recent answers are included