You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a script that starts knockd which pulls the interface associated with the default route on the host. It's something along these lines:
ip route show | awk '$1=="default" && $2=="via" && $4=="dev" { print $5 }'
It pulls out he p5p1 from:
$ ip route show
default via 192.168.10.18 dev p5p1 proto static metric 1024
192.168.10.0/24 dev p5p1 proto kernel scope link src 192.168.10.13
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
205.203.130.5 via 192.168.10.18 dev p5p1 proto static metric 1
Is that something that could be baked into knockd?
The text was updated successfully, but these errors were encountered:
-i overrides the config. But i'd rather the configuration file itself somehow supports it? It could support the @ notation, but would make more sense to make it refer to configuration files.
I have a script that starts knockd which pulls the interface associated with the default route on the host. It's something along these lines:
ip route show | awk '$1=="default" && $2=="via" && $4=="dev" { print $5 }'
It pulls out he p5p1 from:
Is that something that could be baked into knockd?
The text was updated successfully, but these errors were encountered: