Re: My Debian box can't connect Internet (RESEND)

2003-12-17 Thread Stephen Liu

Hi Alexey,

Thanks for your advice.

(Remark:
- I made another clean installation of Debian 3.0 on another PC with
net-installer (sarge).  It went through smoothly.  The same problem
occurred, unable to connect to Internet, ISP connected
- The Debian box is connected to ISP via ADSL Modem
- Dynamic IP is provided
- I made all tests as ROOT)

- snip - 
>   Do a "cd /etc/ppp/peers" to change current working directory to
> /etc/ppp/peers. (cd - stands for change directory. "pwd" command
stands
> for print working directory). Do a "ls -l" to see all files in current
> directory and their permissions, owner and group. You'll get something
> like this:
> [lex.lexa]$ cd /etc/ppp/peers/
> [lex.lexa]$ ls -l
> total 11
> -rw-r--1 root dip   661 ÐÐÑ 21  2002 bnm
> -rw-r--1 root dip  1782 ÐÐÑ 21  2002 dsl-provider
> -rw-r--1 root dip   655 ÐÐÑ 28  2002 ial
> -rw-r--1 root dip   634 ÐÐÐ 13  2003 maib
> -rw-r--1 root dip   699 ÐÐÑ 21  2002 min
> -rw-r--1 root dip   610 ÐÐÑ 21  2002 ml
> -rw-r--1 root dip   646 ÐÐÑ 21  2002 mtc
> -rw-r--1 root dip   579 ÐÐÑ 21  2002 provider
> -rw-r--1 root dip   716 ÐÐÐ 11  2003 snt
> -rw-r--1 root dip   699 ÐÐÑ 28 10:52 uni

# ls -l /etc/ppp/peers/

-rw-r--1 root root  dsl-provider
-rw-r--1 root dip  . provider

There were only 2 files there.  The first line above is 'root root'  not
'root dip'

Besides the file  /etc/resolv.conf   appeared very strange.  I was
allowed to make a change to this file after issuing following command

# chattr = /etc/resolv.conf

But after starting 'pon dsl-provider' the said file changed back to its
original content as follows;

search domain.com
nameserver 192.168.2.1
(default content)

- snip -

>  Add a "usepeerdns" option to your dsl-provider file. So pppd will
> change /etc/resolv.conf to dns servers provided by your provider
during
> ppp negotiation.

Added  "usepeerdns"  to /etc/ppp/peer/provider
But it could not solve the problem

Still can't connect to Internet.  I think the outgoing packages is
searching the gateway 192.168.0.1.


I made connection to Internet once (ONLY ONCE) as follows;
=

- Bootup the Debian box
- pon dsl-provider
- ping -c 3 www.yahoo.com
  packets received
- "usepeerdns"  already in /etc/ppp/peer/provider
- cat /etc/resolv.conf   showing
  search domain.com
  ISP address
  ISP address  (3 entries)
- deleted  "usepeerdns"  in /etc/ppp/peer/provider
- rebooted Debian box
- pon dsl-provider
  ISP connected, but blocked from Internet
- I repeated tests several times.  Occasionally
cat /etc/resolv.conf   showing
  search domain.com
  ISP address
  ISP address  (3 entries)

but still could not connected to Internet, ISP connected.
Other times 
cat /etc/resolv.conf   showing
  search domain.com
  nameserver 192.168.2.1
  (default content)

 
It seemed very strange to me.  I have been trying to solve this problem
several days without a solution.

B.R.
Stephen


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet (run out of tricks)

2003-12-16 Thread Stephen Liu
Hi Robert,

Thanks for your advice.

On Tue, 2003-12-16 at 03:44, Robert Storey wrote:
> Dear Stephen,
> 
> It's very odd that you can't change this file as root. The only thing I
> know of that would cause this is if the immutable flag is set. The way
> to find out is with the lsattr command:
> 
> [EMAIL PROTECTED]:/etc> lsattr resolv.conf
> s---c resolv.conf
> 
> As you don't see an "i" that means the immutable flag is not set, so no
> problem.
> 
> Changing the immutable flag is done with the chattr command.
> 
> I have heard it said that crackers do mess with the immutable flag, but
> it seems odd that your box would be cracked if you can't even get
> online.
> 
> By the way, my /etc/resolv.conf has nothing in it, but it works. 


After running
# chattr + /etc/resolv.conf
then
# chattr - /etc/resolv.conf

Now  /etc/resolv.conf  can be edited.


> When I
> connect with the command "pon dsl-provider" a temporary address is
> provided. I can see that address with the plog command. The only
> annoyance I've had with pppoe is that I have to be root to issue the
> pon/poff dsl-provider commands - there must be a way around that, but I
> haven't found it yet. You could try running pppoeconf again and set your
> system so it does NOT connect to the Internet on bootup, and use the
> pon/poff dsl-provider command (it would be easier than reinstalling).


I ran  'pppoeconfig' again selecting not starting 'pppoe' at boot.

# pon dsl-provider

ifconfig  showing ISP connected but the Debian box was still cut off
from Internet.

I took another spare hard drive and performed another installing Debian
test on another PC.  This time I used net-installer, sarge CD. 
Everything went through smoothly.  However he same problem still
occurred, ISP connected but cut off from Internet.  Therefore I could
not download packages from Debain website or its mirror sites to
complete the installation.

I am a little bid disappointed.  I could not discover where the Debian
box are blocked from connecting to Internet.

B.R.
Stephen

> 
> On Mon, 15 Dec 2003 12:24:19 +0800
> Stephen Liu <[EMAIL PROTECTED]> wrote:
> 
> > Hi Paul,
> > 
> > Thanks for your advice.
> > 
> > On Mon, 2003-12-15 at 04:13, Paul Johnson wrote:
> > 
> > > On Sun, Dec 14, 2003 at 11:54:22PM +0800, Stephen Liu wrote:
> > > > # cat /etc/resolv.conf 
> > > > search domain.com\000 
> > > > nameserver 192.168.2.1 
> > > 
> > > Ah ha!  You might try adding a nameserver on the outside or make
> > > sure that nameserver is able to get a connection to the outside
> > > world.
> > 
> > That is the original 'resolv.conf' file.  I have not touched it and
> > also I was not allowed to alter this file even as ROOT.  This was very
> > strange to me.  The said file can be opened with a Text editor, 'nano'
> > or 'kedit', and editing also allowed.  'Saving changes' to the file
> > was not allowed.  You can save the file but it only retains its
> > original content.
> > 
> > If no solution found then I think I have to make another clean
> > installation of Debian 3.0 again.  I will use net-installation.  I am
> > connecting to broadband of 3MB bandwidth.  If it is not installing
> > from source code, like Gentoo 1.4, the download time won't be long and
> > I can have the maybe uptodate packages.
> > 
> > B.R.
> > Stephen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-15 Thread Alexei Chetroi
On Mon, Dec 15, 2003 at 08:44:33PM +0100, Robert Storey wrote:
 
> It's very odd that you can't change this file as root. The only thing I
> know of that would cause this is if the immutable flag is set. The way
> to find out is with the lsattr command:
> 
> [EMAIL PROTECTED]:/etc> lsattr resolv.conf
> s---c resolv.conf
> 
> As you don't see an "i" that means the immutable flag is not set, so no
> problem.
> 
> Changing the immutable flag is done with the chattr command.
> 
> I have heard it said that crackers do mess with the immutable flag, but
> it seems odd that your box would be cracked if you can't even get
> online.
> 
> By the way, my /etc/resolv.conf has nothing in it, but it works. When I
> connect with the command "pon dsl-provider" a temporary address is
> provided. I can see that address with the plog command. The only
> annoyance I've had with pppoe is that I have to be root to issue the
> pon/poff dsl-provider commands - there must be a way around that, but I
> haven't found it yet. You could try running pppoeconf again and set your
> system so it does NOT connect to the Internet on bootup, and use the
> pon/poff dsl-provider command (it would be easier than reinstalling).

 Add yourself to "dip" group and relogin (dip - dial-up ip I think).
Make sure /etc/ppp/peers/dsl-provider is readable by group dip. Also
check "man pppd" for "userpeerdns" option.

> 
> On Mon, 15 Dec 2003 12:24:19 +0800
> Stephen Liu <[EMAIL PROTECTED]> wrote:
> 
> > Hi Paul,
> > 
> > Thanks for your advice.
> > 
> > On Mon, 2003-12-15 at 04:13, Paul Johnson wrote:
> > 
> > > On Sun, Dec 14, 2003 at 11:54:22PM +0800, Stephen Liu wrote:
> > > > # cat /etc/resolv.conf 
> > > > search domain.com\000 
> > > > nameserver 192.168.2.1 
> > > 
> > > Ah ha!  You might try adding a nameserver on the outside or make
> > > sure that nameserver is able to get a connection to the outside
> > > world.
> > 
> > That is the original 'resolv.conf' file.  I have not touched it and
> > also I was not allowed to alter this file even as ROOT.  This was very
> > strange to me.  The said file can be opened with a Text editor, 'nano'
> > or 'kedit', and editing also allowed.  'Saving changes' to the file
> > was not allowed.  You can save the file but it only retains its
> > original content.
> > 
> > If no solution found then I think I have to make another clean
> > installation of Debian 3.0 again.  I will use net-installation.  I am
> > connecting to broadband of 3MB bandwidth.  If it is not installing
> > from source code, like Gentoo 1.4, the download time won't be long and
> > I can have the maybe uptodate packages.
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-15 Thread Robert Storey
Dear Stephen,

It's very odd that you can't change this file as root. The only thing I
know of that would cause this is if the immutable flag is set. The way
to find out is with the lsattr command:

[EMAIL PROTECTED]:/etc> lsattr resolv.conf
s---c resolv.conf

As you don't see an "i" that means the immutable flag is not set, so no
problem.

Changing the immutable flag is done with the chattr command.

I have heard it said that crackers do mess with the immutable flag, but
it seems odd that your box would be cracked if you can't even get
online.

By the way, my /etc/resolv.conf has nothing in it, but it works. When I
connect with the command "pon dsl-provider" a temporary address is
provided. I can see that address with the plog command. The only
annoyance I've had with pppoe is that I have to be root to issue the
pon/poff dsl-provider commands - there must be a way around that, but I
haven't found it yet. You could try running pppoeconf again and set your
system so it does NOT connect to the Internet on bootup, and use the
pon/poff dsl-provider command (it would be easier than reinstalling).

Good luck,
Robert


On Mon, 15 Dec 2003 12:24:19 +0800
Stephen Liu <[EMAIL PROTECTED]> wrote:

> Hi Paul,
> 
> Thanks for your advice.
> 
> On Mon, 2003-12-15 at 04:13, Paul Johnson wrote:
> 
> > On Sun, Dec 14, 2003 at 11:54:22PM +0800, Stephen Liu wrote:
> > > # cat /etc/resolv.conf 
> > > search domain.com\000 
> > > nameserver 192.168.2.1 
> > 
> > Ah ha!  You might try adding a nameserver on the outside or make
> > sure that nameserver is able to get a connection to the outside
> > world.
> 
> That is the original 'resolv.conf' file.  I have not touched it and
> also I was not allowed to alter this file even as ROOT.  This was very
> strange to me.  The said file can be opened with a Text editor, 'nano'
> or 'kedit', and editing also allowed.  'Saving changes' to the file
> was not allowed.  You can save the file but it only retains its
> original content.
> 
> If no solution found then I think I have to make another clean
> installation of Debian 3.0 again.  I will use net-installation.  I am
> connecting to broadband of 3MB bandwidth.  If it is not installing
> from source code, like Gentoo 1.4, the download time won't be long and
> I can have the maybe uptodate packages.
> 
> B.R.
> Stephen
> 
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-14 Thread Stephen Liu
Hi Paul,

Thanks for your advice.

On Mon, 2003-12-15 at 04:13, Paul Johnson wrote:

> On Sun, Dec 14, 2003 at 11:54:22PM +0800, Stephen Liu wrote:
> > # cat /etc/resolv.conf 
> > search domain.com\000 
> > nameserver 192.168.2.1 
> 
> Ah ha!  You might try adding a nameserver on the outside or make sure
> that nameserver is able to get a connection to the outside world.

That is the original 'resolv.conf' file.  I have not touched it and also
I was not allowed to alter this file even as ROOT.  This was very
strange to me.  The said file can be opened with a Text editor, 'nano'
or 'kedit', and editing also allowed.  'Saving changes' to the file was
not allowed.  You can save the file but it only retains its original
content.

If no solution found then I think I have to make another clean
installation of Debian 3.0 again.  I will use net-installation.  I am
connecting to broadband of 3MB bandwidth.  If it is not installing from
source code, like Gentoo 1.4, the download time won't be long and I can
have the maybe uptodate packages.

B.R.
Stephen




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-14 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, Dec 14, 2003 at 11:54:22PM +0800, Stephen Liu wrote:
> # cat /etc/resolv.conf 
> search domain.com\000 
> nameserver 192.168.2.1 

Ah ha!  You might try adding a nameserver on the outside or make sure
that nameserver is able to get a connection to the outside world.

- -- 
 .''`. Paul Johnson <[EMAIL PROTECTED]>
: :'  :
`. `'` proud Debian admin and user
  `-  Debian - when you have better things to do than fix a system
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/3MRQUzgNqloQMwcRAvvDAJoCX7A0C/DH8PxkgC0q/g3iHwe1igCfYy4Z
TNamEAkyDHFP0fvjMGwMivw=
=vZFh
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-14 Thread s. keeling
Incoming from Stephen Liu:
> [somebody:]
> > Similarly to kill the connection:
> > 
> >   poff dsl-provider
>  
> # poff 202.123.68.108 
> /usr/bin/poff: I could not find a pppd process for provider

Close, but no cigar.  Use (literally!):

  poff dsl-provider# not IP address


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)   http://www.spots.ab.ca/~keeling 
- -


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-14 Thread Stephen Liu
Hi Paul,

Thanks for your advice.

- snip -
> 
> What happens if you try pinging 66.218.71.86 (w7.scd.yahoo.com, one of
> the servers that listens to www.yahoo.com)?

# ping -c 3 66.218.71.86 
PING 66.218.71.86 (66.218.71.86): 56 data bytes 
--- 66.218.71.86 ping statistics --- 
3 packets transmitted, 0 packets received, 100% packet loss 
 
ifconfig ppp0 
ppp0  Link encap:Point-to-Point Protocol 
  inet addr:202.123.68.108  P-t-P:202.123.71.254 
Mask:255.255.255.255 
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1 
  RX packets:152 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:73 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:10 
  RX bytes:10109 (9.8 KiB)  TX bytes:1932 (1.8 KiB) 

> Take a look at /sbin/ifconfig and see if eth0 is listed there, and if
> so, what the IP on it is.

# ifconfig 
eth0  Link encap:Ethernet  HWaddr 00:50:BF:70:F6:DD 
  inet addr:192.168.2.3  Bcast:192.168.2.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
  RX packets:804 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:535 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:100 
  RX bytes:114717 (112.0 KiB)  TX bytes:96191 (93.9 KiB) 
  Interrupt:5 Base address:0xec00 
 
loLink encap:Local Loopback 
  inet addr:127.0.0.1  Mask:255.0.0.0 
  UP LOOPBACK RUNNING  MTU:3924  Metric:1 
  RX packets:36068 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:36068 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:0 
  RX bytes:12467899 (11.8 MiB)  TX bytes:12467899 (11.8 MiB) 
 
ppp0  Link encap:Point-to-Point Protocol 
  inet addr:202.123.68.108  P-t-P:202.123.71.254 
Mask:255.255.255.255 
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1 
  RX packets:347 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:158 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:10 
  RX bytes:24167 (23.6 KiB)  TX bytes:3972 (3.8 KiB) 
 
sl0   Link encap:Serial Line IP 
  inet addr:192.168.0.1  P-t-P:192.168.0.2  Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1 
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:10 
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b) 


> If that looks good, check /etc/resolv.conf and make sure there's a
> nameserver or two listed.

/etc/resolv.conf  could not be edited even as ROOT (the file can be
opened and its content can be edited.  But saving is impossible) 
 
# cat /etc/resolv.conf 
search domain.com\000 
nameserver 192.168.2.1 
 
# ls -l /etc/resolv.conf 
-rw-r--r--1 root root 

B.R.
Stephen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-14 Thread Stephen Liu
Hi Robert,

Thanks for your advice.

- snip -

Before starting test as per your advice, following discoveries were
found 
 
1) # pppoe   
pppoe: Timeout waiting for PADO packets 
(pppoe  could not start.   It can be started at time of configuring
network card after installation of Debian 3.0) 
 
2) /etc/resolv.conf  could not be edited even as ROOT (the file can be
opened and its content can be edited.  But saving is impossible) 
 
# cat /etc/resolv.conf 
search domain.com\000 
nameserver 192.168.2.1 
 
# ls -l /etc/resolv.conf 
-rw-r--r--1 root root

> I told pppoeconf that I didn't want to start the network at boot. To start it 
> anytime: Open an xterm, su to root. Then try this:
> 
>   pon dsl-provider
> 
> You can use the "plog" command to see what effect this had, or "ifconfig ppp0"

Debian box already automatically connects to ISP after booting 
(remark: dynamic IP) 
 
# ifconfig ppp0 
ppp0  Link encap:Point-to-Point Protocol 
  inet addr:202.123.68.108  P-t-P:202.123.71.254 
Mask:255.255.255.255 
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1 
  RX packets:152 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:73 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:10 
  RX bytes:10109 (9.8 KiB)  TX bytes:1932 (1.8 KiB) 
 

> Similarly to kill the connection:
> 
>   poff dsl-provider
 
# poff 202.123.68.108 
/usr/bin/poff: I could not find a pppd process for provider
'202.123.68.108'. None stopped. 

B.R.
Stephen

> 
> > Hi Robert,
> > 
> > Thanks for your advice.
> > 
> > The Debian box is connected to broadband via a ADSL modem with dynamic
> > IP.  I ran  'pppoeconfig' to setup the connection.  Up to this point it
> > seemed without problem, ISP connected and confirmed with 'ifconfig'. 
> > But connection to Internet was blocked.  I searched around to find out
> > whether the gateway in the network card has entry which will mislead
> > looking to the gateway and could not find it.  '/etc/init.d/iptables
> > stop' reconfirmed firewall having not started (I have not configured
> > firewall yet).
> > 
> > I could not discover the cause of blocking connection to Internet.
> > 
> > B.R.
> > Stephne
> > 
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-14 Thread David Baron
Yup!

This is what started the sholw "consumers" threat. A common enough problem.
Maybe a hundred messages so far on this and related ADSL problems since I
got my Debian/Gnu/KDE installed. Still ... no ADSL.

A few things you might check though: What type of modem are you using? USB
ones need specific drivers, Ethernet connected ones do not. The USB driver
install (even if you are not using the hardware) may have better
documentation that might be useful. I just edited all the files as called
out by the manufacturer of my (non-USB) moden based on their documentation
(still not working). That network restart command--no one told me about that
one yet! Will save reboot times to test changes.

If you have saved messages, read throught these threads.

There must be something in that init.d directory that needs be called to log
on. This might be the only piece I am missing in this frustrating little
puzzle.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-13 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Please turn your line wraps on and set them to about 72 columns and
consider http://learn.to/quote/

On Sat, Dec 13, 2003 at 02:41:55PM +0100, Robert Storey wrote:
> You didn't say what kind of broadband you want to connect to. There
> would be a difference between adsl and cable, as well as pppoe and
> adsl with a fixed address.

Broadband refers exclusively to cable internet access (named because
of the broad piece of the radio spectrum being used to send it over
the cable, not because it's a fat pipe (though it is a fat pipe)).

> I'm not an expert, but I just yesterday connect to adsl (using
> pppoe). If that describes your situation, try running "pppoeconf" -
> it's fairly intuitive and it worked well for me.

PPPoE is generally only used by lesser-quality DSL providers, I'd
consider shopping for one that doesn't screw around with ways to screw
you out of bandwidth.

> As for using "ping", I understand that many web sites are blocking
> the ping command (or am I wrong about this?).  I'm using Guarddog as
> a firewall, and I've also got ping blocked.

You shouldn't.  Check the RFCs, responding to ping is a requirement.
It might be handy for big websites, but there's not much point in
disabling it except making it harder for your ISP to find network
faults (can't just ping customer machines and get packets back to see
how well a node is working, if a node is down in the case of cable).
Just leave ping enabled.

- -- 
 .''`. Paul Johnson <[EMAIL PROTECTED]>
: :'  :
`. `'` proud Debian admin and user
  `-  Debian - when you have better things to do than fix a system
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/22D/UzgNqloQMwcRAhxLAJ0UwrqFfO1QqMc5jlByUhli1PlqRACgjqAK
C2KF9lkGvMVyuTxpBwygbt8=
=DWaZ
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-13 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sat, Dec 13, 2003 at 12:29:33AM +0800, Stephen Liu wrote:
> Kindly advise how to fix the problem.

Wow!  Thank you!  That's a good start, thanks for giving lots of
detail.

What happens if you try pinging 66.218.71.86 (w7.scd.yahoo.com, one of
the servers that listens to www.yahoo.com)?

Take a look at /sbin/ifconfig and see if eth0 is listed there, and if
so, what the IP on it is.

If that looks good, check /etc/resolv.conf and make sure there's a
nameserver or two listed.

- -- 
 .''`. Paul Johnson <[EMAIL PROTECTED]>
: :'  :
`. `'` proud Debian admin and user
  `-  Debian - when you have better things to do than fix a system
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/219CUzgNqloQMwcRAp0/AKCoCIDoyRn8as30+upX9Bgyp0shGgCfRwxZ
F0CMTErnktAUtOvdwga5sTY=
=bzvt
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-13 Thread Robert Storey
On Sun, 14 Dec 2003 00:02:16 +0800
Stephen Liu <[EMAIL PROTECTED]> wrote:
Dear Stephen,

I told pppoeconf that I didn't want to start the network at boot. To start it anytime: 
Open an xterm, su to root. Then try this:

  pon dsl-provider

You can use the "plog" command to see what effect this had, or "ifconfig ppp0"

Similarly to kill the connection:

  poff dsl-provider

That's what works for me. The next thing (actually, a question I want to ask on this 
list) is how to do this without becoming root.

regards,
Robert


> Hi Robert,
> 
> Thanks for your advice.
> 
> The Debian box is connected to broadband via a ADSL modem with dynamic
> IP.  I ran  'pppoeconfig' to setup the connection.  Up to this point it
> seemed without problem, ISP connected and confirmed with 'ifconfig'. 
> But connection to Internet was blocked.  I searched around to find out
> whether the gateway in the network card has entry which will mislead
> looking to the gateway and could not find it.  '/etc/init.d/iptables
> stop' reconfirmed firewall having not started (I have not configured
> firewall yet).
> 
> I could not discover the cause of blocking connection to Internet.
> 
> B.R.
> Stephne
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-13 Thread Stephen Liu
Hi Robert,

Thanks for your advice.

The Debian box is connected to broadband via a ADSL modem with dynamic
IP.  I ran  'pppoeconfig' to setup the connection.  Up to this point it
seemed without problem, ISP connected and confirmed with 'ifconfig'. 
But connection to Internet was blocked.  I searched around to find out
whether the gateway in the network card has entry which will mislead
looking to the gateway and could not find it.  '/etc/init.d/iptables
stop' reconfirmed firewall having not started (I have not configured
firewall yet).

I could not discover the cause of blocking connection to Internet.

B.R.
Stephne


On Sat, 2003-12-13 at 21:41, Robert Storey wrote:
> Dear Stephen,
> 
> You didn't say what kind of broadband you want to connect to. There would be a 
> difference between adsl and cable, as well as pppoe and adsl with a fixed address.
> 
> I'm not an expert, but I just yesterday connect to adsl (using pppoe). If that 
> describes your situation, try running "pppoeconf" - it's fairly intuitive and it 
> worked well for me.
> 
> As for using "ping", I understand that many web sites are blocking the ping command 
> (or am I wrong about this?).  I'm using Guarddog as a firewall, and I've also got 
> ping blocked.
> 
> regards,
> Robert
> 
> On Sat, 13 Dec 2003 00:29:33 +0800
> Stephen Liu <[EMAIL PROTECTED]> wrote:
> 
> > Hi folks,
> > 
> > My Debian box can't connect Internet, Broadband connected.  
> > 
> > # ifconfig
> > showed connecting ISP
> > 
> > I played around with following files without a solution;
> > 
> > # cat /etc/network/ifstate 
> > lo=lo
> > eth0=eth0
> > 
> > # cat /etc/network/interfaces 
> > # /etc/network/interfaces -- configuration
> > file for ifup(8), ifdown(8) 
> > # The loopback interface 
> > auto lo 
> > iface lo inet loopback 
> > # The first network card - this entry was created during the Debian
> > installationauto eth0
> > iface eth0 inet dhcp
> > 
> > # cat /etc/network/spoof-protect
> > LOCAL_IPS="127.0.0.1/8"
> > LOCAL_IFACES="eth0 eth1 ppp0"
> > (Remark: having tried;
> > #LOCAL_IPS="127.0.0.1/8"
> > #LOCAL_IFACES="eth0 eth1 ppp0"
> > LOCAL_IFACES="eth0 ppp0"
> > 
> > After each change made
> > # /etc/init.d/networking restart 
> > Reconfiguring network interfaces: done)
> > 
> > # cat /etc/network/interfaces.dpkg-new 
> > # (no output, an empty file)
> > 
> > # cat /etc/network/options 
> > ip_forward=no 
> > spoofprotect=yes
> > syncookies=no
> > (having tried;
> > ip_forward=yes
> > spoofprotect=no
> > syncookies=yes)
> > 
> > # ping -c 3 www.yahoo.com
> > ping: unknown host www.yahoo.com
> > 
> > # /etc/init.d/iptables stop
> > Aborting iptables load: unknown ruleset, "inactive".
> > 
> > iptables has not been configured yet
> > 
> > Kindly advise how to fix the problem.
> > 
> > Thanks in advance.
> > 
> > B.R.
> > Stephen Liu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-13 Thread Robert Storey
Dear Stephen,

You didn't say what kind of broadband you want to connect to. There would be a 
difference between adsl and cable, as well as pppoe and adsl with a fixed address.

I'm not an expert, but I just yesterday connect to adsl (using pppoe). If that 
describes your situation, try running "pppoeconf" - it's fairly intuitive and it 
worked well for me.

As for using "ping", I understand that many web sites are blocking the ping command 
(or am I wrong about this?).  I'm using Guarddog as a firewall, and I've also got ping 
blocked.

regards,
Robert

On Sat, 13 Dec 2003 00:29:33 +0800
Stephen Liu <[EMAIL PROTECTED]> wrote:

> Hi folks,
> 
> My Debian box can't connect Internet, Broadband connected.  
> 
> # ifconfig
> showed connecting ISP
> 
> I played around with following files without a solution;
> 
> # cat /etc/network/ifstate 
> lo=lo
> eth0=eth0
> 
> # cat /etc/network/interfaces 
> # /etc/network/interfaces -- configuration
> file for ifup(8), ifdown(8) 
> # The loopback interface 
> auto lo 
> iface lo inet loopback 
> # The first network card - this entry was created during the Debian
> installationauto eth0
> iface eth0 inet dhcp
> 
> # cat /etc/network/spoof-protect
> LOCAL_IPS="127.0.0.1/8"
> LOCAL_IFACES="eth0 eth1 ppp0"
> (Remark: having tried;
> #LOCAL_IPS="127.0.0.1/8"
> #LOCAL_IFACES="eth0 eth1 ppp0"
> LOCAL_IFACES="eth0 ppp0"
> 
> After each change made
> # /etc/init.d/networking restart 
> Reconfiguring network interfaces: done)
> 
> # cat /etc/network/interfaces.dpkg-new 
> # (no output, an empty file)
> 
> # cat /etc/network/options 
> ip_forward=no 
> spoofprotect=yes
> syncookies=no
> (having tried;
> ip_forward=yes
> spoofprotect=no
> syncookies=yes)
> 
> # ping -c 3 www.yahoo.com
> ping: unknown host www.yahoo.com
> 
> # /etc/init.d/iptables stop
> Aborting iptables load: unknown ruleset, "inactive".
> 
> iptables has not been configured yet
> 
> Kindly advise how to fix the problem.
> 
> Thanks in advance.
> 
> B.R.
> Stephen Liu
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: My Debian box can't connect Internet

2003-12-12 Thread Michael Will
In article <[EMAIL PROTECTED]>, Stephen Liu wrote:
> My Debian box can't connect Internet, Broadband connected.  
1. What provider?

2. Broadband means cable rather than DSL, right?

I use comcast at home, connected a debian sarge machine to
a cable modem.

To allow anything from going in / out, you have to activate 
service by connecting to a webserver to register at. Ask your
service provider.  I had to call 4 times before I found somebody
willing to help me with doing it with my webbrowser on linux
instead of insisting that they only support microsoft customers.

Typically all your machine has to do is call dhcpcd or dhcpclient
in order to ask the network for an IP address/DNS config etc. 

Just log in as root, type 'dhc' (without hitting return) and press the 
tab key twice to see which binaries it offers - probably dhcpcd. 

Just start dhcpcd and then try your ping again.

DNS is the name server, so that it finds the IP for www.yahoo.com
when you type 'ping www.yahoo.com'. The config happens in /etc/resolv.conf.

Why do you have ppp0 - do you use a dial up modem?

Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]