I am using a PC with ubuntu 9.04 as a proxy server for a small LAN. To connect to the internet I am using a Huawei E220 USB EVDO Modem with ISP Rwandatel (I am based in Kigali, Rwanda). The bandwidth is quite good but it gets disconnected very often. This means someone has to reconnect manually the proxy server quite often and it is very annoying. Is there any way (script / program / configuration) to make sure Ubuntu reconnects automatically after losing connection?

I am using Gnome with Ubuntu 9.04 and Squid3 as proxy.

Thanks a million.