I use a CentOS based firewall at home to split my local and international traffic. I have a script that gets a list of local subnets from the IS route server at route-server.is.co.za. I use the following code in the script
This would return a list of all the local subnets. This used to work fine for years until recently.
If I run the above code today all I get is garbage:
If I telnet to route-server.is.co.za and type the commands in the quotes manually they work fine. I do not understand why the above suddenly stopped working as I have been using it successfully for years. As far as I can tell the last time my script worked was on 18 April 2011.
I also tested this on other linux boxes at work and the result is the same. Can anybody shed any light on this problem? I am totally stumped.
Code:
echo -e "terminal length 0\nshow ip bgp\nexit" | /usr/bin/nc route-server.is.co.za 23
This would return a list of all the local subnets. This used to work fine for years until recently.
If I run the above code today all I get is garbage:
Code:
ÿûÿûÿýÿýC
If I telnet to route-server.is.co.za and type the commands in the quotes manually they work fine. I do not understand why the above suddenly stopped working as I have been using it successfully for years. As far as I can tell the last time my script worked was on 18 April 2011.
I also tested this on other linux boxes at work and the result is the same. Can anybody shed any light on this problem? I am totally stumped.