Linux - HOWTO (With Stats)

Status
Not open for further replies.
I just wanted to say thanks to Tazz for the advice.

The problem however, was with my username and password.

I assumed that since in Windows, it connects even when you enter nothing for the username
and password, you can try the same in linux. Unfortunately my logic was wrong.

I just entered some bogus values and I was able to connect.

Correct, I am sure I said somewhere that I just send "username" and "password". I havn't looked at it that deeply, but I am sure that VMC does the same.

A quick question, After I connect I get these errors frequently. Anybody knows what it means.

appear to have received our own echo-reply!
appear to have received our own echo-reply!

And lastly, after you establish a ppp connection, do you just let it run in the terminal and when you are
done, close the session with ctrl-c ?

Topper

Can you paste the exact log for me please ?

Quite correct on the terminal and letting it run. It's up to you, but if you put some good firewalling rules in place, you will be very safe :)

Laterz !
 
Tazz.

Log output as mentioned...

Code:
root@Sevenworth:~# iptables -A POSTROUTING -o ppp0 -j MASQ
iptables v1.3.3: Couldn't load target `MASQ':/lib/iptables/libipt_MASQ.so: cannot open shared object  file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.

Ideas?
SW

Code:
root@Sevenworth:~# iptables -A POSTROUTING -o ppp0 -j MASQUERADE
iptables: No chain/target/match by that name
 
PPP errors with GPRS in linux

Hi Tazz

I have moved my Vodafone Mobile Connect card onto a routerboard(mini-computer) running a stripped down Debian linux
based on the Woody distribution(Linux 2.4.30).

I am now running into some errors with my ppp connection in the form
of not being able to access other computers(e.g. I want to have ssh into
remote machines for work purposes). When I was running the VMC card on
Mandriva, I did not have this problem.

Here is the log you asked me to attach.

root@ecn-image:~# pppd call peers-vodacom
Starting connect script
Get the attention of the card
Set English result codes
T=1ATZ
OK
AT+CGATT=1
OKDialing...

AT+CGDCONT=1,"IP","internet"
OK
ATDT*99***1#
CONNECTSerial connection established.
using channel 3
Using interface ppp0
Connect: ppp0 <--> /dev/tts/1
rcvd [LCP ConfReq id=0x3 <mru 1600> <auth pap> <magic 0x5fb8dec7> <asyncmap 0x0>
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xda721d21> <pcomp> <accomp>]
sent [LCP ConfAck id=0x3 <mru 1600> <auth pap> <magic 0x5fb8dec7> <asyncmap 0x0>
<pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xda721d21> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0xda721d21]
sent [PAP AuthReq id=0x1 user="anything" password=<hidden>]
rcvd [LCP EchoRep id=0x0 magic=0xda721d21]
appear to have received our own echo-reply!
rcvd [PAP AuthAck id=0x1 "TTP Com PPP - Password Verified OK"]
Remote message: TTP Com PPP - Password Verified OK
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfNak id=0x1 <addr 10.60.90.193> <ms-dns1 196.207.40.165> <ms-dns3
196.43.46.190>]
sent [IPCP ConfReq id=0x2 <addr 10.60.90.193> <ms-dns1 196.207.40.165> <ms-dns3
196.43.46.190>]
rcvd [IPCP ConfReq id=0x3 <addr 11.0.0.1>]
sent [IPCP ConfAck id=0x3 <addr 11.0.0.1>]
rcvd [IPCP ConfAck id=0x2 <addr 10.60.90.193> <ms-dns1 196.207.40.165> <ms-dns3
196.43.46.190>]
not replacing existing default route to ath0 [10.0.0.1]
Cannot determine ethernet address for proxy ARP
local IP address 10.60.90.193
remote IP address 11.0.0.1
remote IP address 11.0.0.1
secondary DNS address 196.43.46.190
Script /etc/ppp/ip-up started (pid 2123)
Script /etc/ppp/ip-up finished (pid 2123), status = 0x0
sent [LCP EchoReq id=0x1 magic=0xda721d21]
rcvd [LCP EchoRep id=0x1 magic=0xda721d21]
appear to have received our own echo-reply!
sent [LCP EchoReq id=0x2 magic=0xda721d21]
rcvd [LCP EchoRep id=0x2 magic=0xda721d21]
appear to have received our own echo-reply!
sent [LCP EchoReq id=0x3 magic=0xda721d21]
rcvd [LCP EchoRep id=0x3 magic=0xda721d21]
appear to have received our own echo-reply!
No response to 4 echo-requests
Serial link appears to be disconnected.
Script /etc/ppp/ip-down started (pid 2130)
sent [LCP TermReq id=0x2 "Peer not responding"]
Script /etc/ppp/ip-down finished (pid 2130), status = 0x0
rcvd [LCP TermAck id=0x2]
Connection terminated.
Connect time 2.1 minutes.
Sent 54 bytes, received 54 bytes.
Disconnecting from Vodacom
Serial link disconnected.
root@ecn-image:~#

I am still getting the "appear to have received our own echo-reply!" error.
And also my ppp connection disconnects automatically after a couple of minutes.

Any suggestions?

Regards,
topper
 
PPP error with GPRS in Linux

Hi Tazz.

I manage to fix my "appear to have received our own echo-reply!" errors and
"Serial link appears to be disconnected. "
"Connection terminated. " errors.

All that I did was to add this lines,
lcp-echo-failure 4
lcp-echo-interval 65535

Now the next problem.
I cannot seem to access remote machines via ssh. I cannot ping any website.
The ppp connection is still active, but I cannot use it.

Any ideas,
 
PPP errors with GPRS in Linux

Hi Tazz

Sorry for being such a nuisance.

I fixed my ssh problems. It seems all I had to do was to follow your advice
on how to delete my default gateway you posted on the first page of this thread.

Now I am gonna try to share my internet connection with the network.

See ya
 
mIRC via mobile conn on PC

Hi Tazz

Sorry for being such a nuisance.

I fixed my ssh problems. It seems all I had to do was to follow your advice
on how to delete my default gateway you posted on the first page of this thread.

Now I am gonna try to share my internet connection with the network.

See ya

http://www.mybroadband.co.za/vb/show...highlight=baka
U guys dont knw anything about good old mIRC hey?
Please can u have a look:
http://www.mybroadband.co.za/vb/show...highlight=baka
 
Huawei E220

I used info from this forum some time back getting a Vodaphone PCMCIA card to work under Linux when I had been told locally it would not.

I've put in an equivalent amount of reading (to the limits of my capabilities) re: differences with the HSDPA dialler, the nozomi drivers and all I could locate on the E220 specifically. Currently using Ubunty Edgy now, though was with Dapper when I started...

Middle last month someone raised this device (it is the USB) on this forum, but I haven't seen anything since that progressed my understanding...

In another forum, I posted the following, which pretty well encapsulates my progress to date:

I've made some progress - at my most optimistic, I'd even claim it to be in a forward direction (heh, heh...)

The page at http://www.mybroadband.co.za/vb/showthread.php?t=21726 applies directly to making the Huawei E220 work with Ubuntu.

I downloaded the nozomi-source package (ftp from a link you can find at http://packages.debian.org/unstable/net/nozomi-source)

Unable to compile it initially, getting an error. Followed that one through to find the answer at http://www.pharscape.org/component/o...088d9ce00ce9f/ - and that led to a clean build.

I saw various comments that for whatever reason, it could not be used as 'modprobe -r nozomi', but rather had to be done as 'insmode nozomi.ko' - and it seems to accept that happily.

As this as the first time, I had to create the nodes with 'mknod /dev/noz0 c 241 0' and repeat that 3 more times, making noz1, noz2 and noz3.

By then I had the wvdial.conf file that was linked from the www.pharscape.org link above.

And finally, I should be able to use 'wvdial hsdpa' to connect. But that is where it falls down. I get the error 'Cannot open /dev/noz0: No such device or address' I've tried the other three noz? devices as well, but the modem isn't being seen at any of them.

I think I'm close, and I know I've been reasonably methodical and thorough at looking for the info I'm after (If anyone hasn't read the info that mips has in a sig file as http://www.catb.org/~esr/faqs/smart-questions.html, you should!).

I'd appreciate a gentle steer (hell, I'll take an ill mannered tirade - I'm not proud...) as to the next direction I should try, or the next piece of testing that can move me on. I think I can say I'm at my current limits of expertise/understanding - so I'm ready to learn!

I'd appreciate any help I could get, and most certainly happy to supply any output or config that would assist...

Nick
 
Is your default gateway set ?

:)

Hi Tazz.

I manage to fix my "appear to have received our own echo-reply!" errors and
"Serial link appears to be disconnected. "
"Connection terminated. " errors.

All that I did was to add this lines,
lcp-echo-failure 4
lcp-echo-interval 65535

Now the next problem.
I cannot seem to access remote machines via ssh. I cannot ping any website.
The ppp connection is still active, but I cannot use it.

Any ideas,
 
PPP working now

Hi Tazz

Yes my default gateway is set.

My connection is working fine now.

Thanks for your help
 
Hey Nickw,

I am a tad confused here....you talk about the E220, which is a Huewai Card, yet you use the nozomi driver, which is an option driver ?

I am waiting for my E220 to confirm, so, am I understanding you correctly ?

Laterz !

I used info from this forum some time back getting a Vodaphone PCMCIA card to work under Linux when I had been told locally it would not.

I've put in an equivalent amount of reading (to the limits of my capabilities) re: differences with the HSDPA dialler, the nozomi drivers and all I could locate on the E220 specifically. Currently using Ubunty Edgy now, though was with Dapper when I started...

Middle last month someone raised this device (it is the USB) on this forum, but I haven't seen anything since that progressed my understanding...

In another forum, I posted the following, which pretty well encapsulates my progress to date:

I've made some progress - at my most optimistic, I'd even claim it to be in a forward direction (heh, heh...)

The page at http://www.mybroadband.co.za/vb/showthread.php?t=21726 applies directly to making the Huawei E220 work with Ubuntu.

I downloaded the nozomi-source package (ftp from a link you can find at http://packages.debian.org/unstable/net/nozomi-source)

Unable to compile it initially, getting an error. Followed that one through to find the answer at http://www.pharscape.org/component/o...088d9ce00ce9f/ - and that led to a clean build.

I saw various comments that for whatever reason, it could not be used as 'modprobe -r nozomi', but rather had to be done as 'insmode nozomi.ko' - and it seems to accept that happily.

As this as the first time, I had to create the nodes with 'mknod /dev/noz0 c 241 0' and repeat that 3 more times, making noz1, noz2 and noz3.

By then I had the wvdial.conf file that was linked from the www.pharscape.org link above.

And finally, I should be able to use 'wvdial hsdpa' to connect. But that is where it falls down. I get the error 'Cannot open /dev/noz0: No such device or address' I've tried the other three noz? devices as well, but the modem isn't being seen at any of them.

I think I'm close, and I know I've been reasonably methodical and thorough at looking for the info I'm after (If anyone hasn't read the info that mips has in a sig file as http://www.catb.org/~esr/faqs/smart-questions.html, you should!).

I'd appreciate a gentle steer (hell, I'll take an ill mannered tirade - I'm not proud...) as to the next direction I should try, or the next piece of testing that can move me on. I think I can say I'm at my current limits of expertise/understanding - so I'm ready to learn!

I'd appreciate any help I could get, and most certainly happy to supply any output or config that would assist...

Nick
 
Hey Nickw,
I am a tad confused here....you talk about the E220, which is a Huewai Card, yet you use the nozomi driver, which is an option driver ?

Greetings from NZ...

Yes, as one of the several blind alleys I've taken, I thought I would need the nozomi driver (based on post 1 in the topic, where it was described as "Extra Steps for the HSDPA card"). That wasn't undertaken with any serious understanding of anything involved - more in the order of try it and see!

Yes, the Huawei E220 is the USB dongle type card. It seems to be immediately recognised as a bulk storage device but can't find a way of 'addressing' it for wvdial.conf. Inserting shows in /var/log/messages:
Code:
Nov  8 09:05:46 nickw-desktop kernel: [17942923.780000] usb 4-2: new full speed USB device using uhci_hcd and address 3
Nov  8 09:05:46 nickw-desktop kernel: [17942923.952000] usb 4-2: configuration #1 chosen from 1 choice
Nov  8 09:05:46 nickw-desktop kernel: [17942924.092000] Initializing USB Mass Storage driver...
Nov  8 09:05:46 nickw-desktop kernel: [17942924.092000] scsi2 : SCSI emulation for USB Mass Storage devices
Nov  8 09:05:46 nickw-desktop kernel: [17942924.092000] usbcore: registered new driver usb-storage
Nov  8 09:05:46 nickw-desktop kernel: [17942924.092000] USB Mass Storage support registered.
Nov  8 09:05:51 nickw-desktop kernel: [17942929.096000]   Vendor: HUAWEI    Model: Mass Storage      Rev: 2.31
Nov  8 09:05:51 nickw-desktop kernel: [17942929.096000]   Type:   CD-ROM                             ANSI SCSI revision: 02
Nov  8 09:05:51 nickw-desktop kernel: [17942929.180000] sr0: scsi-1 drive
Nov  8 09:05:51 nickw-desktop kernel: [17942929.192000] sr 2:0:0:0: Attached scsi generic sg0 type 5
Nov  8 09:06:00 nickw-desktop kernel: [17942937.664000] sr: Current: sense key: No Sense
Nov  8 09:06:00 nickw-desktop kernel: [17942937.664000]     Additional sense: No additional sense information

(and the last two lines repeat so long as the dongle is connected).

I've previously used some of your work to get a Vodaphone 3G PCMCIA card working, so when I got given this new E220 and told I could never make it work with Linux, I knew just where to start - just not sure where to continue after my first few efforts...

Nick
 
Hi Nick,

Well greetings from South Africa then :)

With the card plugged in do a "lsusb" and "lsmod" - if usbserial is not loaded, run the tail again and go "modprobe usbserial". I need you to post the lsusb and what happens after the modprobe. The mass storage device is correct as vodafone now ships the software on the e220...wonder if you can format that....DONT on yours :)

Laterz !

Greetings from NZ...

Yes, as one of the several blind alleys I've taken, I thought I would need the nozomi driver (based on post 1 in the topic, where it was described as "Extra Steps for the HSDPA card"). That wasn't undertaken with any serious understanding of anything involved - more in the order of try it and see!

Yes, the Huawei E220 is the USB dongle type card. It seems to be immediately recognised as a bulk storage device but can't find a way of 'addressing' it for wvdial.conf. Inserting shows in /var/log/messages:
Code:
Nov  8 09:05:46 nickw-desktop kernel: [17942923.780000] usb 4-2: new full speed USB device using uhci_hcd and address 3
Nov  8 09:05:46 nickw-desktop kernel: [17942923.952000] usb 4-2: configuration #1 chosen from 1 choice
Nov  8 09:05:46 nickw-desktop kernel: [17942924.092000] Initializing USB Mass Storage driver...
Nov  8 09:05:46 nickw-desktop kernel: [17942924.092000] scsi2 : SCSI emulation for USB Mass Storage devices
Nov  8 09:05:46 nickw-desktop kernel: [17942924.092000] usbcore: registered new driver usb-storage
Nov  8 09:05:46 nickw-desktop kernel: [17942924.092000] USB Mass Storage support registered.
Nov  8 09:05:51 nickw-desktop kernel: [17942929.096000]   Vendor: HUAWEI    Model: Mass Storage      Rev: 2.31
Nov  8 09:05:51 nickw-desktop kernel: [17942929.096000]   Type:   CD-ROM                             ANSI SCSI revision: 02
Nov  8 09:05:51 nickw-desktop kernel: [17942929.180000] sr0: scsi-1 drive
Nov  8 09:05:51 nickw-desktop kernel: [17942929.192000] sr 2:0:0:0: Attached scsi generic sg0 type 5
Nov  8 09:06:00 nickw-desktop kernel: [17942937.664000] sr: Current: sense key: No Sense
Nov  8 09:06:00 nickw-desktop kernel: [17942937.664000]     Additional sense: No additional sense information

(and the last two lines repeat so long as the dongle is connected).

I've previously used some of your work to get a Vodaphone 3G PCMCIA card working, so when I got given this new E220 and told I could never make it work with Linux, I knew just where to start - just not sure where to continue after my first few efforts...

Nick
 
corrected IPTABLES command

Something is very broken....what distro you running ?

Hi,
I suggest that nothing is broken with that command.
it should have been iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

FYI ... if you want have more than one ppp connection concurrently, then replace ppp0 with ppp+

-t nat tells IPTABLES to apply rule to the "nat" table, if no table (-t) is specified, it will [try to] apply rule to the "filter" table.

:-)
 
*blind*

Thanks for the correction...correct the front page aswell :)

Hi,
I suggest that nothing is broken with that command.
it should have been iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

FYI ... if you want have more than one ppp connection concurrently, then replace ppp0 with ppp+

-t nat tells IPTABLES to apply rule to the "nat" table, if no table (-t) is specified, it will [try to] apply rule to the "filter" table.

:-)
 
Hi guys,


There are some Mac drives but I'm not sure if they would be compatible with Linux / Unix as Mac uses linux for his os. Has anyone tried ?
I have e620 and trying to set it up to work on linux -> I have it on PCMCIA port (not USB).
 
Hey Belfegor,

the e620 uses the standard kernel usbserial driver. USB because the PCMCIA card registers a usb hub with the usb-to-serial convertors attached :)

Hope this helps

Laterz

Hi guys,


There are some Mac drives but I'm not sure if they would be compatible with Linux / Unix as Mac uses linux for his os. Has anyone tried ?
I have e620 and trying to set it up to work on linux -> I have it on PCMCIA port (not USB).
 
Ok ... Tazz .. I think i'm going to pull of my tail!!!

My Huawei e620 problems continue. (It connects perfectly fine with the wrt54g3g and even BETTER the fact I flashed the router with Linux!!!)

But .... one last problem to resolve... (yes, I'm on 3G again for a few days so time to fiddle)

Using minicom...
***
ATZ
OK
AT
OK
AT^SYSCFG=14,2,3FFFFFFF,1,2
OK
***

Using pppd + chat...
****
ATZ
OK
AT
OK
AT^SYSCFG=14,2,3FFFFFFF,1,2
COMMAND NOT SUPPORT
****


Here is my pppd script...
***
#!/bin/ash




DEVICE=/dev/usb/tts/0
SPEED=460800


TELEPHONE="*99*#" # Vodacom GPRS

#EXTRA_BEGIN="+CPIN=5351"

# GPRS/EDGE Preferred
#EXTRA_SINIT="^SYSCFG=2,1,3FFFFFFF,1,2"

# 3G Preferred
#EXTRA_SINIT="^SYSCFG=2,2,3FFFFFFF,1,2"

# GPRS/EDGE Only
#EXTRA_SINIT="^SYSCFG=13,1,3FFFFFFF,1,2"

# 3G Only
#EXTRA_SINIT="^SYSCFG=14,2,3FFFFFFF,1,2"


#EXTRA_INIT="+CGDCONT=1,\"IP\",\"internet\"" # Vodacom GPRS
EXTRA_INIT="+CGDCONT=1,\"ip\",\"internetvpn\"" # Vodacom Public IP behind firewall

export TELEPHONE EXTRA_BEGIN EXTRA_INIT EXTRA_SINIT

insmod slhc
insmod ppp_generic
insmod ppp_async

/usr/sbin/pppd $DEVICE $SPEED \
nodetach debug \
connect /root/ppp/dialer \
nolock modem \
kdebug 1 ktune \
noauth \
0.0.0.0:0.0.0.0 netmask 0.0.0.0 defaultroute \
usepeerdns
***


Here is my chat script....
***
#!/bin/ash
sleep 1

/usr/sbin/chat -V \
"TIMEOUT" "3" \
"ABORT" "\nBUSY\r" \
"ABORT" "\nNO ANSWER\r" \
"ABORT" "\nNO CARRIER\r" \
"ABORT" "\nCOMMAND NOT SUPPORT\r" \
"ABORT" "\nRINGING\r\n\r\nRINGING\r" \
"" "\rATZ" \
"OK-+++\c-OK" "AT" \
"TIMEOUT" "120" \
"OK" "AT$EXTRA_BEGIN" \
"OK" "AT$EXTRA_SINIT" \
"OK" "AT$EXTRA_INIT" \
"OK" "ATD$TELEPHONE" \
"CONNECT" ""
***

Any help why it doesn't work with chat + pppd would be GREATLY appreciated.

I should have a small perl script done soon which monitors the 3rd serial port and gives status info for openwrt on the web interface.

-Nigel
 
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X