Find Jobs
Hire Freelancers

VPN S2S Failover Script with BASH

$30-250 USD

Imefungwa
Imechapishwa almost 2 years ago

$30-250 USD

Kulipwa wakati wa kufikishwa
I have a case in a network that is connected to a VPN s2s, the deployment is : IP a connect to IP c as active - (over vpn s2s) IP b connect to IP c as backup - (over vpn s2s) where what we want is when IP a fails to connect to the internet the s2s VPN connection from IP a to IP c breaks, then we make the script below, which is run on crontab/cronjob on unix every 1 minute: if ping -I WAN -c 3 8.8.8.8 &> 0 then clish -c "set static-route 3 disabled true" else clish -c "vpn tu del x.x.x.x" clish -c "vpn tu del x.x.x.x" clish -c "vpn tu del x.x.x.x" clish -c "set static-route 3 disabled false" fi The weakness of this script is that if the condition fails it will do an else which will repeat itself. which makes every 1 minute run clish -c "vpn tu del x.x.x.x", now what we want is clish -c "vpn tu del x.x.x.x" done only once as long as IP a fails to connect to the internet or 8.8.8.8 explanation: if ping -I WAN -c 3 8.8.8.8 &> 0 -> to check whether ip a can still connect to the internet if successfully connected do this -> clish -c "set static-route 3 disabled true" if failed to connect do this -> else clish -c "vpn tu del x.x.x.x" clish -c "vpn tu del x.x.x.x" clish -c "vpn tu del x.x.x.x" clish -c "set static-route 3 disabled false"
Kitambulisho cha mradi: 34078549

Kuhusu mradi

9 mapendekezo
Mradi wa mbali
Inatumika 2 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
9 wafanyakazi huru wana zabuni kwa wastani $123 USD kwa kazi hii
Picha ya Mtumiaji
Hello Dear, I am an Expert Network Engineer and I am working as Professor and Expert Consultant Network Engineer in a Multinational ISP. I have great hands-on experience for more than 15 years in various network technologies. I have Cisco CCNA & CCNP (Routing & Switching) and CCNP Enterprise (Enterprise Core & Enterprise Advanced Infrastructure Implementation) certifications. I have Juniper JNCIA-Junos (JN0-102) and JNCIA (Cloud) certifications. I have very good knowledge in Cisco wireless technology, VOIP & Network Security. My specialties: - Design/implement medium and large scale enterprise networks. - Configure Cisco Routers (ASR 1K & 9k, 2900, 2800, ISR 4K, 878, 888), Switches (Cat 6500, 3750, 3850, 2900, 2960, SG- 300, SG-500, [Nexus 5K, 7K and 9K]), Firewalls ([ASA 5505, 5506x, 5508], Fortigate, Palo Alto) and Wireless Acess Points 1800 and 2700. - Configure Juniper Routers (M7, M10, MX 480, MX 960) and SRX (300, 500). - Huawei, Mikrotik, HP & Ubiquiti devices Expert. - Packet Tracer, GNS-3, EVE-NG, VMWare workstation & VirtualBox Expert. - Routing protocols (RIP, OSPF, EIGRP, ISIS & BGP) Configuration and troubleshooting Expert and Switching Expert (VLANs, STP, VTP...). - VPN Configuration Expert (IPSEC/L2TP, GRE/PPTP, OPENVPN & SoftEther). - Linux, Unix & windows servers Expert. - Wireshark Traffic Capture & Analysis Expert. - Write technical reports and summaries. Thanks to check my profile and let me know if you are interested. Best Regards,
$30 USD ndani ya siku 1
4.8 (166 hakiki)
6.3
6.3
Picha ya Mtumiaji
Hello, I'm a systems administrator with experience with networking, linux and shell/bash scripts, I can fix your issue.
$50 USD ndani ya siku 1
5.0 (34 hakiki)
5.5
5.5
Picha ya Mtumiaji
I have a lot of work VPN S2S Failover Script with BASH message me
$350 USD ndani ya siku 5
4.7 (26 hakiki)
5.5
5.5
Picha ya Mtumiaji
hi. i am network and security engineer for 9 years, knowledgeable with linux environment, i can try to doing with scripting which is this script can monitor the internet and can re route depending whats scenario we want. please chat me for details.
$140 USD ndani ya siku 7
5.0 (33 hakiki)
5.2
5.2
Picha ya Mtumiaji
I can help you! Does this script need to be in shell script? Anyway, we can make the necessary changes for this project to work perfectly. I have been programming in Shell Scripts for over 10 years, whether performing complex functions for system administration or simple scripts for initialization of programs.
$30 USD ndani ya siku 1
5.0 (4 hakiki)
3.2
3.2

Kuhusu mteja

Bedera ya INDONESIA
Indonesia
0.0
0
Mwanachama tangu Des 18, 2017

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.