11 lines
292 B
Bash
Executable File
11 lines
292 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if ! grep "ogstun" /proc/net/dev > /dev/null; then
|
|
ip tuntap add name ogstun mode tun
|
|
fi
|
|
ip addr del 10.45.0.1/16 dev ogstun 2> /dev/null
|
|
ip addr add 10.45.0.1/16 dev ogstun
|
|
ip addr del cafe::1/64 dev ogstun 2> /dev/null
|
|
ip addr add cafe::1/64 dev ogstun
|
|
ip link set ogstun up
|