Skip to content
Snippets Groups Projects
Verified Commit 7b94de97 authored by Robotka István Adrián's avatar Robotka István Adrián
Browse files

route based ip config

parent 166b7c23
Branches
No related tags found
No related merge requests found
...@@ -29,8 +29,8 @@ VER=$(syslog-ng --version \ ...@@ -29,8 +29,8 @@ VER=$(syslog-ng --version \
| awk '{print $2}' \ | awk '{print $2}' \
| grep -oE '[0-9]\.[0-9]{1,2}') | grep -oE '[0-9]\.[0-9]{1,2}')
IP=$(ip -br a \ IP=$(ip r \
| grep '152.66\|172.20\|10.10.\|10.20.\|10.0\|10.172' \ | grep 'default via' \
| awk '{print $3}' \ | awk '{print $3}' \
| grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' \ | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' \
| head -n1 \ | head -n1 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment