Firewall-SOSDG/bin/get_default_if

4 lines
92 B
Bash
Executable File

#!/bin/bash
ip route | awk '/^default/{print $3}'
#netstat -rn | awk '/^0.0.0.0/{print $8}'