This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
interface1="$(ip tuntap show | cut -d : -f1 | sed -n '1p')" | |
interface2="$(ip tuntap show | cut -d : -f1 | sed -n '2p')" | |
ip1="$(ip a s "${interface1}" 2>/dev/null \ | |
| grep -o -P '(?<=inet )[0-9]{1,3}(\.[0-9]{1,3}){3}')" | |
ip2="$(ip a s "${interface2}" 2>/dev/null \ | |
| grep -o -P '(?<=inet )[0-9]{1,3}(\.[0-9]{1,3}){3}')" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am delt-a on github. | |
* I am delt4 (https://keybase.io/delt4) on keybase. | |
* I have a public key ASCjfBbK9AYxz1OAePl3eH6YRo0YlRUjgv0Z0jgYrm4LPAo | |
To claim this, I am signing this object: |