Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
8d6c7081
Commit
8d6c7081
authored
Jan 04, 2019
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve router switch script
parent
c67e6627
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
switch_back.sh
router/switch_back.sh
+4
-0
switch_to_yota.sh
router/switch_to_yota.sh
+10
-2
No files found.
router/switch_back.sh
View file @
8d6c7081
...
...
@@ -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
router/switch_to_yota.sh
View file @
8d6c7081
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment