New answers tagged routing
2
votes
Automatically connect to ethernet when available
I've written a bash script to help with this: https://github.com/waltinator/net-o-matic It watches the connection, and when the connection drops, does a user-specified thing to try to reconnect or do ...
0
votes
How to find out which interface am I using for connecting to the internet?
Another elegant one-liner without multiple commands and dependencies like route on modern distros:
nmcli -t -f DEVICE c show --active | head -n 1
It'll show eth0 on a normal Wired Connection
Edit: ...
3
votes
Accepted
manage route redirects received from the default gateway
Redirects and PMTUD results are stored in the route cache:
ip route show cache
ip route flush cache
0
votes
manage route redirects received from the default gateway
The routing table(s) are stored "in the kernel". A start is maybe route.h. You can access this information here /proc/net/route or with a tool like ip route. The same is true for the net ...
Top 50 recent answers are included
Related Tags
routing × 1176networking × 493
linux × 305
iptables × 295
ip × 131
vpn × 107
openvpn × 98
iproute × 76
debian × 73
ubuntu × 68
network-interface × 66
nat × 53
route × 53
ipv6 × 46
firewall × 44
wireguard × 40
centos × 37
bridge × 33
ssh × 30
ethernet × 25
router × 25
networkmanager × 24
gateway × 24
port-forwarding × 23
freebsd × 22