Add/remove route on AMETHYST for SIPRecord

All documents from the original Software Support Library (SSL)

Moderators: Leon van Heerden, Luanda_Junzi, Belinda Frick, Lee Hendricks

Add/remove route on AMETHYST for SIPRecord

Postby Belinda Frick » Tue Jul 24, 2018 2:14 pm

This has been noted with CCD Upington.
After internet change to/from fibre the SIP recording was no longer accessible via SSH and FTP of recordings no longer took place.

Firewall support suggested to do the following:

    Please check if the Amethsyt server has the following static route, if it does please remove it and test.

    Route delete 192.168.10.0 mask 255.255.255.0 192.168.1.226


OUTSTANDING:

Please advise how to check and test this ensuring it will not affect access for other branches, etc.
Belinda Frick
 
Posts: 3808
Joined: Fri Nov 12, 2010 4:25 pm

Re: Add/remove route on AMETHYST for SIPRecord

Postby Lee Hendricks » Tue Jul 24, 2018 3:35 pm

The routes to the branches in maintained by a script in /usr/local/bin/

To see what is currently configured:

TYPE
Code: Select all
route -n

Code: Select all
root@amethyst:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.7.0     192.168.1.220   255.255.255.0   UG    0      0        0 eth0
172.22.6.0      192.168.1.180   255.255.255.0   UG    0      0        0 eth0
172.22.36.0     192.168.1.250   255.255.255.0   UG    0      0        0 eth0
172.22.5.0      192.168.1.180   255.255.255.0   UG    0      0        0 eth0
172.22.4.0      192.168.1.180   255.255.255.0   UG    0      0        0 eth0
172.22.3.0      192.168.1.180   255.255.255.0   UG    0      0        0 eth0
172.22.18.0     192.168.1.250   255.255.255.0   UG    0      0        0 eth0
172.22.2.0      192.168.1.180   255.255.255.0   UG    0      0        0 eth0
172.22.17.0     192.168.1.250   255.255.255.0   UG    0      0        0 eth0
172.22.16.0     192.168.1.250   255.255.255.0   UG    0      0        0 eth0
172.22.15.0     192.168.1.250   255.255.255.0   UG    0      0        0 eth0
172.22.14.0     192.168.1.250   255.255.255.0   UG    0      0        0 eth0
192.168.10.0    192.168.1.226   255.255.255.0   UG    0      0        0 eth0
192.168.8.0     192.168.1.221   255.255.255.0   UG    0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.254.0   U     0      0        0 eth0
11.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.0.254   0.0.0.0         UG    1      0        0 eth0


To edit the script add a hash on the entry on the set_route script
Code: Select all
cd /usr/local/bin/

Code: Select all
vi set_route

(See second last line)
Code: Select all
/sbin/route add -net 192.168.7.0 netmask 255.255.255.0 gw 192.168.1.220
/sbin/route add -net 192.168.8.0 netmask 255.255.255.0 gw 192.168.1.221
/sbin/route add -net 172.22.2.0 netmask 255.255.255.0 gw 192.168.1.180
/sbin/route add -net 172.22.3.0 netmask 255.255.255.0 gw 192.168.1.180
/sbin/route add -net 172.22.4.0 netmask 255.255.255.0 gw 192.168.1.180
/sbin/route add -net 172.22.5.0 netmask 255.255.255.0 gw 192.168.1.180
/sbin/route add -net 172.22.6.0 netmask 255.255.255.0 gw 192.168.1.180
/sbin/route add -net 172.22.15.0 netmask 255.255.255.0 gw 192.168.1.250
/sbin/route add -net 172.22.16.0 netmask 255.255.255.0 gw 192.168.1.250
/sbin/route add -net 172.22.17.0 netmask 255.255.255.0 gw 192.168.1.250
/sbin/route add -net 172.22.18.0 netmask 255.255.255.0 gw 192.168.1.250
/sbin/route add -net  172.22.36.0 netmask 255.255.255.0 gw 192.168.1.250
/sbin/route add -net 172.22.14.0 netmask 255.255.255.0 gw 192.168.1.250
/sbin/route add -net 172.22.14.0 netmask 255.255.255.0 gw 192.168.1.250
#/sbin/route add -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.1.226
#/sbin/route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.222


This will prohibit this entry from running again
To delete the route, run the same line but replace "add" with "delete"
Code: Select all
/sbin/route delete -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.1.226


Run:
Code: Select all
route -n

Code: Select all
root@amethyst:/usr/local/bin# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.7.0     192.168.1.220   255.255.255.0   UG    0      0        0 eth0
172.22.6.0      192.168.1.180   255.255.255.0   UG    0      0        0 eth0
172.22.36.0     192.168.1.250   255.255.255.0   UG    0      0        0 eth0
172.22.5.0      192.168.1.180   255.255.255.0   UG    0      0        0 eth0
172.22.4.0      192.168.1.180   255.255.255.0   UG    0      0        0 eth0
172.22.3.0      192.168.1.180   255.255.255.0   UG    0      0        0 eth0
172.22.18.0     192.168.1.250   255.255.255.0   UG    0      0        0 eth0
172.22.2.0      192.168.1.180   255.255.255.0   UG    0      0        0 eth0
172.22.17.0     192.168.1.250   255.255.255.0   UG    0      0        0 eth0
172.22.16.0     192.168.1.250   255.255.255.0   UG    0      0        0 eth0
172.22.15.0     192.168.1.250   255.255.255.0   UG    0      0        0 eth0
172.22.14.0     192.168.1.250   255.255.255.0   UG    0      0        0 eth0
192.168.8.0     192.168.1.221   255.255.255.0   UG    0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.254.0   U     0      0        0 eth0
11.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.0.254   0.0.0.0         UG    1      0        0 eth0

The deleted value will now be gone.
Lee Hendricks
 
Posts: 150
Joined: Mon Aug 25, 2014 2:18 pm


Return to Support Archive's (Amethyst)

Who is online

Users browsing this forum: No registered users and 1 guest