Skip to content
Snippets Groups Projects
Commit 0b6498ba authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

NET hopik

parent 225afcec
No related branches found
No related tags found
No related merge requests found
...@@ -45,18 +45,14 @@ then ...@@ -45,18 +45,14 @@ then
if [ "$reason" == STATIC6 ] if [ "$reason" == STATIC6 ]
then then
echo $msg_prefix set ipv6 default route echo $msg_prefix set ipv6 default route
route6 default via 2001:718:1e03:81a::1 dev w route6 default via 2001:718:1e03:81a::1 dev w metric 3004
fi fi
fi fi
if [ "$ifssid" == blatto-jk-5g ] || [ "$ifssid" == blatto-jk-2g ] if [ "$ifssid" == blatto-jk-5g ] || [ "$ifssid" == blatto-jk-2g ]
then then
conntrack_hack conntrack_hack
if [ "$reason" == STATIC6 ] route6 default via 2a01:510:d504:751a::1 dev w metric 3004
then
route6 default via 2a01:510:d504:7510::1 dev w
route 10.12.0.0/16 via 10.12.11.1 dev wg-blatto
fi
fi fi
if [ "$ifssid" == samet-5G ] if [ "$ifssid" == samet-5G ]
...@@ -64,7 +60,7 @@ then ...@@ -64,7 +60,7 @@ then
conntrack_hack conntrack_hack
fi fi
if [ "$ifssid" == blatto-jk-5g ] || [ "$ifssid" == blatto-jk-2g ] if [ "$ifssid" == CDWiFi ]
then then
if [ "$reason" == BOUND ] if [ "$reason" == BOUND ]
then then
......
#!/bin/sh #!/bin/sh
set -o xtrace
set -ueo pipefail
#interface=enp3s0f4u1u1 #interface=enp3s0f4u1u1
interface=sm interface=sm
...@@ -9,8 +8,8 @@ echo R | socat unix:/run/conntrack_hack - ...@@ -9,8 +8,8 @@ echo R | socat unix:/run/conntrack_hack -
ip link set $interface up ip link set $interface up
ip addres add 10.12.11.22/24 dev $interface ip addres add 10.12.11.22/24 dev $interface
ip addres add 2a01:510:d504:751a::22/64 dev $interface ip addres add 2a01:510:d504:751a::22/64 dev $interface
ip route add 10.12.0.0/16 via 10.12.11.1 dev $interface ip route add 10.12.0.0/16 via 10.12.11.1 dev $interface metric 1000
ip route add 2a01:510:d504:7500::0/56 via 2a01:510:d504:751a::1 dev wg-blatto metric 1000 ip route add 2a01:510:d504:7500::0/56 via 2a01:510:d504:751a::1 dev wg-blatto metric 1000
ip route add default via 10.12.11.1 dev $interface ip route add default via 10.12.11.1 dev $interface metric 1000
ip route add default via 2a01:510:d504:751a::1 dev $interface ip route add default via 2a01:510:d504:751a::1 dev $interface metric 1000
(echo domain jk.blatto.eu; echo nameserver 10.12.11.1 ) | resolvconf -a $interface (echo domain jk.blatto.eu; echo nameserver 10.12.11.1 ) | resolvconf -a $interface
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment