SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi to everyone, this is my first post on the forum, so please bear with me.
I've installed Slack 10.0 a few weeks ago and finally after a lot of reinstallations and experimenting (I also had to set up greek, see I'm Greek) and a bad memory chip I think I've got a pretty good configuration (for now).
My last big problem is connecting to the Internet through PPP. I have two pc's (the other running WinXP) which are connected in a LAN. Each of the pc's has each own modem (US Robotics on the XP, Supra on the slack). The Windows box is succesfully sharing its 'net connection through the classic 192.168.0.1-2 thing. I do have internet when XP gets connected.
The problem is I can't get my slack to see the 'net when I use the modem on that machine. I can connect to my ISP with KPPP and ping the remote machine but that's all. I can't even ping the nameservers the ISP has given me. I could connect after changing the /etc/ppp/options file and asked noauth for PAP. But still I can't get to a web site (I can't even send or receive e-mail).
I think it should have something to do with the firewall settings but have no idea how to change them. Does anyone have any idea? Thanks in advance for you time guys.
Have you tried using pppsetup to do some of the configuration? When I had to get my girlfriends modem working, I had the same problems that you're having. It would get connected, but I wasn't able to go anywhere. The problem I ended up having was that I didn't have the nameservers correct. I ended up running pppsetup first to configure, and then using kppp to dial in. I'm not sure how much sense this makes or help much it will help, but it's worth a shot.
Thanks for the reply but no, no luck! It completely re-worked my /etc/ppp/options file and still had to uncomment noauth (I guess this has to do with my ISP) but the same thing hapens, connection established but no 'net. With further reading I've uncovered this:
If pppd refuses to set up a default route, it is because (quite correctly) it refuses to remove/replace an existing default route.
The usual reason that this error occurs is that some distributions set up a default route via your Ethernet card as opposed to setting up a specific network route.
See the Linux NAG and the Net2/3 HOWTOs for information on correctly setting up your Ethernet card and associated routes.
An alternative to this is that your LAN uses a gateway/router already and your routing table has been set up to point the default route at this.
Fixing up this last situation can require a fair bit of IP networking knowledge and is beyond the scope of this HOWTO. It is suggested you obtain some expert advice (via the news groups of from someone locally you can ask).
I think my ports are already open. Doing a
"cat /proc/sys/net/ipv4/ip_local_port_range" produced:
1024 4999
which is already greater than the range you are suggesting me. Also I don't know if this matters but I have been able to connect in the past to my ISP with SuSE linux. I still think it's a firewall problem. I'm reading "Running Linux" but I don't want to change the order and jump straight to security. I'm still back in the "configuring X" chapter. Thanks for your help anyway.
PS. Does anyone know how I poweroff the computer? I've tried poweroff and halt and shutdown -h now but all stop after wrighting Power Down or something and the computer stays on until I press the button on the box. I think my kernel is compiled with APM. It's the default 2.4.26 kernel of slack 10.
and uncomment (remove the leading #) from /sbin/modprobe apm
for the net problem:
if it is a firewall issue, see if the file /etc/rc.firewall exists. If it does, move it somewhere else for now so that any startup scripts cannot start it. Try that for one session and see if it works.
If the internet happens to work with rc.firewall removed, re-post here.
Nope, couldn't find a /etc/rc.firewall script. Does this mean that I don't use a firewall? I guess it must be the gateway problem I mentioned above. I'll try to look more into it once I have the time. Thanks for the apm answer, worked like a charm ;-)
I think that the problem is with the default route.
try this way:
ifconfig eth0 down
add the name server in /etc/resolv.conf
start the modem link
If it start working we'll find something and for the net card
Thanks Ipolit, your answer has fixed my problem. This is my first post with a direct connection from my linux box.
Can you be so kind now to tell me how to change the default route when the modem goes up and reset the old route when it goes down? Even though I don't find it pretty hard to do an "ifconfig eth0 down". The purpose of connecting with the second modem was so I wouldn't have to open the winxp box in the first place. But sometimes samba is usefull. I do plan on reading the NAG how-to but it's quite huge and I'm still reading Running Linux and doing a dissertation so I don't have much time for that as well.
try this
netconfig
and when it asks you for your gateway don't put anything
but you won't be able to access Internet with Slack Box through your windows machine
Luck
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.