Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • If the connection is only held for a few seconds would it also be valid to just run a recurring ss? Something like watch -n 1 "ss -np | grep 1.1.1.100"? I like the idea of repeated ss more than adding a manual arp entry, even if only temporary. Commented Feb 14, 2017 at 19:26
  • 1
    Yes, if you keep a careful eye on the output you should see it pass by. You might be better off doing while ! ss -p state syn-sent|grep 1.1.1.100;do sleep .1; done Commented Feb 14, 2017 at 19:41
  • You should add that to your answer Commented Feb 14, 2017 at 20:27