Commit 8d6c7081 authored by Vitaly Lipatov's avatar Vitaly Lipatov

improve router switch script

parent c67e6627
......@@ -9,3 +9,7 @@ ip route del $HOST01PROV
ip route add $HOST01PROV via $SEVEREN
serv openvpn reload
# enable clients
iptables -D FORWARD -s 91.232.225.26 -j DROP
iptables -D FORWARD -s 91.232.225.21 -j DROP
......@@ -3,12 +3,20 @@
# hack
sysctl net.ipv4.ip_default_ttl=65
ifup enp0s18f2u3
# TODO: disable default route, DNS
ifup enp0s18f2u4
HOST01PROV=85.235.198.26
YOTAUSB=192.168.48.254
#YOTAUSB=192.168.48.254
# see INET_IP_YOTA in /etc/rc.d/rc.firewall
# route
YOTAUSB=192.168.42.129
ip route del $HOST01PROV
ip route add $HOST01PROV via $YOTAUSB
# disable clients
iptables -I FORWARD -s 91.232.225.26 -j DROP
iptables -I FORWARD -s 91.232.225.21 -j DROP
serv openvpn reload
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment