Hi Richard,
I had a similar problem as you. I solved it using wvdial, instead
of NM. That's a real pity and I would be grateful to hear that you
found a solution for it using NM.
My wvdial configuration file (/etc/wvdial.conf) reads:
[Dialer 3g]
Modem = /dev/ttyUSB0 # substitute 'ttyUSB0' by whatever port your cell phone happens to be connected to
Baud = 921600
DialCommand = ATDT
Check Def Route = on
FlowControl = Hardware(CRTSCTS)
Username = <put the value for your ISP here>
Password = <put the value for your ISP here>
Phone = <put the value for your ISP here>
Stupid mode = 1
Auto Reconnect = on
Auto DNS = on
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
ISDN = 0
Modem Type = Analog Modem
My modem is a Huawei E220 HSDPA USB Modem. I believe that this
script works with the majority of 3G modens, which may include your
cell phone as well.
Put a call to wvdial in /etc/rc.local such that it will come on at
boot time and you're done. Maybe you will need also to enable IP
forwarding, if you have an internal network. You can also use
"gnomeppp", which gives you a GUI interface and automates the
configuration for you, but, this way, you will only get connected after
login in.
Hope that helps you.
Cheers,
Joel Guilherme
Richard Braddock escreveu:
Hi all,
I have a box acting as a gateway/web server which uses HSPA for
backhaul. I use the network manager applet (0.7.0.100) for management,
but often I have to admin the box remotely and so I've started using
cnetworkmanager. Occasionally, my connection to the Internet will
completely die or start dropping a large percentage of externally bound
packets. I normally find reconnecting my cellular connection fixes most
issues, and so I'm confident that any glitches are at the mast side.
I want to put into place a basic script scheduled say, every 15mins
with cron, that will ping a few reliable IPs and if the machine is
dropping a large amount of traffic, will automatically reconnect my
connection by restarting networking services, issuing sudo
cnetworkmanager --acti "system,Cellular,ttyHS1,", and finally
restarting squid.
My problem is that when I issue my cnetworkmanager command, although it
dutifully cycles my connection, it doesn't actually exit its loop and
give me back my command line. I have to hit Ctrl + C to break the loop.
(17:55:36) State: CONNECTING
(17:55:43) State: CONNECTED
^CLoop exited
richard richard-u:~$
I'm not great at bash scripting and a couple of guys at the Ubuntu
forums have been help in putting together the script itself. As you can
probably guess my problem is that I don't know how to get the script to
emulate the SIGINT signal and continue with the next part of the
script. Also, I wanted to bring this up because I'm not sure if there's
another way of going about this problem, or even if this is how
cnetworkmanager should act.
Kind Regards,
Richard Braddock
_______________________________________________
NetworkManager-list mailing list
NetworkManager-list gnome org
http://mail.gnome.org/mailman/listinfo/networkmanager-list
--
*****************************
Joel Guilherme da Silva Filho
Criptografia e Segurança
Consultor
|