LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-25-2004, 09:08 AM   #1
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Random PPPD problem


Hey I have a strange problem. I mainly use the scripts created by pppsetup (ppp-on and ppp-off) to connect to the net via my 56.6k external modem.

Here is the problem, somtimes it connects and spits out my and the ISPS IP addresses, just like when I get a good connect. Only it just sits there and I canīt even ping the remote IP address.

So I disconnect and re-connect a few times and it works. Then maby I am writing an email or somthing and the connection is idle for a while but it stays connected but when I try to load/ping anything its dead again and I have to disconnect and re-connect for it to work again.

Any ideas?

My /etc/resolv.cof

bash-2.05b$ cat resolv.conf
search wanadoo.es
nameserver 62.37.228.20
nameserver 62.37.228.99

My /etc/rc.d/rc.firewall

bash-2.05b$ cat rc.firewall
#!/bin/sh


#Change the part after the = to the where you IPTABLES is on your system
IPTABLES=/usr/sbin/iptables

#flush existing rules
$IPTABLES -F INPUT

#This allows all data that has been sent out for the computer running the firewall
# to come back
#(for all of ICMP/TCP/UDP).
#For example, if a ping request is made it will allow the reply back
$IPTABLES -A INPUT -j ACCEPT -m state --state ESTABLISHED -i ppp0 -p icmp
$IPTABLES -A INPUT -j ACCEPT -m state --state ESTABLISHED -i ppp0 -p tcp
$IPTABLES -A INPUT -j ACCEPT -m state --state ESTABLISHED -i ppp0 -p udp


#Allow traffic from ethernet adapter eth1 to pass through if
#you have a network, or
#as using linux as a router for internet etc.
#Your first ethernet card is eth0 and the second would be eth1 etc.
#$IPTABLES -A INPUT -i eth1 -j ACCEPT


#Allow incoming FTP requests
#$IPTABLES -A INPUT -p tcp --dport 20 -j ACCEPT
#$IPTABLES -A INPUT -p tcp --dport 21 -j ACCEPT

#Allow incoming SSH requests
$IPTABLES -A INPUT -p tcp --dport 22 -j ACCEPT

#Allow incoming HTTP requests (to Web server)
#$IPTABLES -A INPUT -p tcp --dport 80 -j ACCEPT


#Allow Ping echo
#I have commented this line, so ping from an outside machine will not work.
#Uncomment the next line to make ping from outside work.
#$IPTABLES -A INPUT -p icmp -j ACCEPT


#Drop and log all other data
#The logging is set so if more than 5 packets are dropped in
#three seconds they will be ignored. This helps to prevent a DOS attack
#Crashing the computer the firewall is running on
$IPTABLES -A INPUT -m limit --limit 3/second --limit-burst 5 -i ! lo -j LOG
$IPTABLES -A INPUT -i ! lo -j DROP

#The logs from the firewall are put into your system log file, which can be found at #/var/log/syslog
bash-2.05b$



I am currently conected with kppp which seems to be more reliable... but like the simplicity of ppp-on/off

Adam
 
Old 03-25-2004, 11:21 AM   #2
davinki
LQ Newbie
 
Registered: Feb 2004
Location: west. australia
Distribution: Slackware current, debian
Posts: 14

Rep: Reputation: 0
im also a fan of the ppp scripts. i use the following modules to make things happen for my setup:

ppp_generic
ppp_deflate
ppp_async

you must have support already for at least ppp_generic for a connection to be made but i had similar problems to yours without ppp_async being loaded. might be worth a look...
 
Old 03-25-2004, 11:28 AM   #3
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Thanks davinki I will have a look at what modules I have loaded and if ppp_async isnīt loaded I will load it and see how it goes!!

Adam
 
Old 03-25-2004, 01:58 PM   #4
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Hey jimdaworm... I'm currently trying to learn iptables myself so I am no where near close to fully understanding them, not even by a long shot... I'm sure you've tried uncommenting some stuff in your script.... Like with allowing your machine to be pinged? Would that make a difference? What if that line is keeping your isp from trying to talk to your computer... Heck, I don't know... Just an idea... Maybe your isp tries to ping your machine every so often to make sure it's still alive... If it doesn't get a response.... It obvious I'm grasping here.. Just thought I'd mention it. I only connect thru my dial-up modem when the power goes out, thus rendering my dsl modem useless, and then I use kppp so I don't know much about it.... I know you've been messing with this for awhile.... I do have these loaded at all times...

ppp_synctty
ppp_async
ppp_generic

Last edited by jong357; 03-25-2004 at 01:59 PM.
 
Old 03-25-2004, 02:32 PM   #5
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Hey jong357 the truth is that I tried reading the documentation for those dammed Iptables and it just screwed my head up. I just downloaded this script and changed some really basic stuff (like eth0 to ppp0) as I donīt really have the brain for this sort of thing.

I dunno maby your right about the pinging thing, but I would have thought it was pretty standard for a firewall to pretend that there is nothing there (Like not respond) to connections you donīt start.

Adam
 
Old 03-26-2004, 02:24 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
If using dynamic DNS your ISP may cut you off after a certain time of inactivity.
Look at then ip-up script. uncomment the line for pinging:
 
Old 03-26-2004, 04:05 PM   #7
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Hey gnashley I am starting to wonder if it is somthing to do with my ISP just being crap, it doesnīt actually drop the connection just looks like the ISP stops responding to my modems requests for data.

I was using KPPP today and the same thing happened. I will try what you have said anyway!

Thanks
Adam
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pppd timeout before pppd interface could start! bioagentice Linux - Software 6 03-27-2005 11:24 AM
Multible newbie questions (pppd, ext2 vs ext3, and random inode read errors) (Slack10 Nicolae Slackware 8 08-28-2004 04:51 PM
Creating random numbers from shell with /dev/random khermans Linux - General 1 07-13-2004 12:12 PM
pppd died: pppd options error (exit code 2 taveirac Linux - Networking 1 02-12-2004 10:17 AM
pppd died: pppd options error (exit code 2) ianwest Linux - Newbie 2 07-31-2002 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration