Networking Forums

Networking Forums > Computer Networking > Linux Networking > Can I get email and Internet to dial automatically

Reply
Thread Tools Display Modes

Can I get email and Internet to dial automatically

 
 
Jeffrey Ross
Guest
Posts: n/a

 
      05-28-2004, 12:17 AM
Running RH8.
With Evolution would like send/receive to initiate the dial-up modem and
hang up after completion.
Same goes for Internet browsing.
Seems standard on Windows. Surely Linux can match the competition?
I've done a lot of searching on the subject but have seen nothing apart from
manual dial-up. I use ppp to connect and log in (which is all automated
fine using modem-lights).
Any advice out there?
Thanks,
Jeffrey.


 
Reply With Quote
 
 
 
 
Clifford Kite
Guest
Posts: n/a

 
      05-28-2004, 12:33 AM
Jeffrey Ross <(E-Mail Removed)> wrote:
> Running RH8.
> With Evolution would like send/receive to initiate the dial-up modem and
> hang up after completion.
> Same goes for Internet browsing.
> Seems standard on Windows. Surely Linux can match the competition?
> I've done a lot of searching on the subject but have seen nothing apart from
> manual dial-up. I use ppp to connect and log in (which is all automated
> fine using modem-lights).
> Any advice out there?
> Thanks,
> Jeffrey.


http://www.theory.physics.ubc.ca/ppp-linux.html

-- Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* The signal-to-noise ratio is too low in many [news] groups to make
* them good candidates for archiving.
* --- Mike Moraes, Answers to FAQs about Usenet */
 
Reply With Quote
 
Bill Unruh
Guest
Posts: n/a

 
      05-28-2004, 01:23 AM
Clifford Kite <(E-Mail Removed)> writes:

]Jeffrey Ross <(E-Mail Removed)> wrote:
]> Running RH8.
]> With Evolution would like send/receive to initiate the dial-up modem and
]> hang up after completion.
]> Same goes for Internet browsing.
]> Seems standard on Windows. Surely Linux can match the competition?
]> I've done a lot of searching on the subject but have seen nothing apart from
]> manual dial-up. I use ppp to connect and log in (which is all automated
]> fine using modem-lights).
]> Any advice out there?
]> Thanks,
]> Jeffrey.

]http://www.theory.physics.ubc.ca/ppp-linux.html

Well, I do not really cover demand dialing in that page. But to be short,
the key phrases are idletimeout and demand dialing. pppd has long had both.
The two options
demand Initiate the link only on demand, i.e. when data traffic is
present. With this option, the remote IP address must be speci-
fied by the user on the command line or in an options file.
Pppd will initially configure the interface and enable it for IP
traffic without connecting to the peer. When traffic is avail-
able, pppd will connect to the peer and perform negotiation,
authentication, etc. When this is completed, pppd will commence
passing data packets (i.e., IP packets) across the link.
idle n Specifies that pppd should disconnect if the link is idle for n
seconds. The link is idle when no data packets (i.e. IP pack-
ets) are being sent or received. Note: it is not advisable to
use this option with the persist option without the demand
option. If the active-filter option is given, data packets
which are rejected by the specified activity filter also count
as the link being idle.

So, put those two options into /etc/ppp/options, and start up pppd as
usual. Make sure that route -n shows a default route through to that IP
address set up for the remote end of the link with the
addr:
opetion.

 
Reply With Quote
 
Jeffrey Ross
Guest
Posts: n/a

 
      05-28-2004, 03:58 AM
"Bill Unruh" <(E-Mail Removed)> wrote in message
news:c964a9$c6v$(E-Mail Removed)...
> Clifford Kite <(E-Mail Removed)> writes:
>
> ]Jeffrey Ross <(E-Mail Removed)> wrote:
> ]> Running RH8.
> ]> With Evolution would like send/receive to initiate the dial-up modem

and
> ]> hang up after completion.
> ]> Same goes for Internet browsing.
> ]> Seems standard on Windows. Surely Linux can match the competition?
> ]> I've done a lot of searching on the subject but have seen nothing apart

from
> ]> manual dial-up. I use ppp to connect and log in (which is all

automated
> ]> fine using modem-lights).
> ]> Any advice out there?
> ]> Thanks,
> ]> Jeffrey.
>
> ]http://www.theory.physics.ubc.ca/ppp-linux.html
>
> Well, I do not really cover demand dialing in that page. But to be short,
> the key phrases are idletimeout and demand dialing. pppd has long had

both.
> The two options
> demand Initiate the link only on demand, i.e. when data traffic is
> present. With this option, the remote IP address must be

speci-
> fied by the user on the command line or in an options

file.
> Pppd will initially configure the interface and enable it

for IP
> traffic without connecting to the peer. When traffic is

avail-
> able, pppd will connect to the peer and perform

negotiation,
> authentication, etc. When this is completed, pppd will

commence
> passing data packets (i.e., IP packets) across the link.
> idle n Specifies that pppd should disconnect if the link is idle for n
> seconds. The link is idle when no data packets (i.e. IP

pack-
> ets) are being sent or received. Note: it is not advisable

to
> use this option with the persist option without the

demand
> option. If the active-filter option is given, data

packets
> which are rejected by the specified activity filter also

count
> as the link being idle.
>
> So, put those two options into /etc/ppp/options, and start up pppd as
> usual. Make sure that route -n shows a default route through to that IP
> address set up for the remote end of the link with the
> addr:
> opetion.
>

Thanks Clifford and Bill.
That's a very quick response to my post. Much appreciated.
I'd already read Bill's document but didn't spot the demand dialing section
at the bottom of the page.
Thanks for your explanation of the options, Bill.
I'm keen to give it a try.
I've not worried about ISP IP addresses before. If that varies is there
some way of getting pppd to dial out whenever it receives a packet destined
for the outside world? This is sort of like having a default gateway
function where that gateway happens to be the ISP connectd via dial-up
modem.
Regards,
Jeffrey.


 
Reply With Quote
 
Robert W.
Guest
Posts: n/a

 
      05-28-2004, 07:00 AM

On Fre, 28 Mai 2004 at 03:58 GMT, Jeffrey Ross wrote:

[quotes]

> Thanks Clifford and Bill.
> That's a very quick response to my post. Much appreciated.
> I'd already read Bill's document but didn't spot the demand dialing section
> at the bottom of the page.
> Thanks for your explanation of the options, Bill.
> I'm keen to give it a try.
> I've not worried about ISP IP addresses before. If that varies is there
> some way of getting pppd to dial out whenever it receives a packet destined
> for the outside world? This is sort of like having a default gateway
> function where that gateway happens to be the ISP connectd via dial-up
> modem.
> Regards,
> Jeffrey.
>
>


Yes, you can. To set up a gateway you just need to add a rule to an
iptable. This should do the masquerading:

#v+
iptables -t nat -A POSTROUTING -j MASQUERADE
# to save this type:
iptables-save > /etc/sysconfig/iptables && chkconfig iptables on
#v-

additionally you have to modify /etc/sysctl.conf. There's a line which
defaults to:

#v+
net.ipv4.ip_forward = 0
#v-
change the "0" to "1".

On alle the machines behind the gateway, you wish to allow to access the
internet, you have to add a defaultroute. This is done in
/etc/sysconfig/ifcfg-<interface-name>, where interface-name is the name
of the interface connected to the network of the Gateway. Insert a line
#v+
GATEWAY=192.168.0.3
#v-

Don't forget to restart the network.

Instructions tested on RH7.3 and RH9.

HTH

--

Robert...

 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      05-28-2004, 01:11 PM
Jeffrey Ross <(E-Mail Removed)> wrote:

> I've not worried about ISP IP addresses before. If that varies is
> there some way of getting pppd to dial out whenever it receives a
> packet destined for the outside world? This is sort of like having
> a default gateway function where that gateway happens to be the
> ISP connectd via dial-up modem.


That happens automatically if the pppd defaultroute option is present
and there is no existing gateway routing. There's a demand-dial script
in the "Files for download" section at the web site in my signature.
(It has IP addresses in it but pppd will supply some if you don't.)

The script describes how to configure it, but it would be a good idea
to check the pppd man pages to see what the options mean.

You do *not* need iptables for this.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* Speak softly and carry a sucker rod (See man syslogd, footnote to
recommendation 4 under SECURITY THREATS). */
 
Reply With Quote
 
Y W Wong
Guest
Posts: n/a

 
      05-28-2004, 01:55 PM
Just create a ppp dial up at your network setting, say ppp0.
After that type :-

ifup ppp0

Will auto establish a ppp internet connection.

ifdown ppp0

Will disconnect the connection.



"Jeffrey Ross" <(E-Mail Removed)> ¦b¶l¥ó
news:40b68456$(E-Mail Removed) ¤¤¼¶¼g...
> Running RH8.
> With Evolution would like send/receive to initiate the dial-up modem and
> hang up after completion.
> Same goes for Internet browsing.
> Seems standard on Windows. Surely Linux can match the competition?
> I've done a lot of searching on the subject but have seen nothing apart

from
> manual dial-up. I use ppp to connect and log in (which is all automated
> fine using modem-lights).
> Any advice out there?
> Thanks,
> Jeffrey.
>
>



 
Reply With Quote
 
Raqueeb Hassan
Guest
Posts: n/a

 
      05-29-2004, 11:35 AM
well, you might use demand dialing or --- in my case i'd setup the
cron for doing that part. please look for the info regarding diald or
same old pppd --- for the options ....

raqueeb hassan
congo
 
Reply With Quote
 
Shadow_7
Guest
Posts: n/a

 
      05-30-2004, 03:33 AM
> With Evolution would like send/receive to initiate the dial-up modem and
> hang up after completion.


diald seems to do that. Although perhaps the old way of doing things. I
use it on my router. You can tell diald to drop the connection after 5
seconds of having no active connection. Or 8 minutes like I do. Since I
really don't want to have to dial-out again after I only took 2 minutes to
actually read a webpage. There's also some ways to setup some pretty
extensive logging of usage with diald.

Shadow_7

 
Reply With Quote
 
Jeffrey Ross
Guest
Posts: n/a

 
      06-01-2004, 01:18 AM
Thanks, everyone, for your answers.
With RH 8 I found that both Mozilla and Evolution wol time out waiting to
connect, so after implementing demand dialing in ppp I have reverted to a
manual dial.
Perhaps later version can handle the connection delay better. I'll find out
when I upgrade my OS (at some point this year!).
Regards,
Jeffrey.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
email extractor , site , solutions , email based marketing , email marketing solution , email extractor , newsletter software , mass email , e-mail marketing , email marketing solutions , bulk email software , web advertising , email marketing , mark Nuclear Incorporation. www.nuclear-inc.com Broadband 0 04-05-2007 08:38 PM
email extractor , site , solutions , email based marketing , email marketing solution , email extractor , newsletter software , mass email , e-mail marketing , email marketing solutions , bulk email software , web advertising , email marketing , mark Nuclear Incorporation. www.nuclear-inc.com Home Networking 0 04-05-2007 08:31 PM
automatically email external IP stewacide@gmail.com Linux Networking 4 09-17-2006 07:58 PM
Dial up email from Broadband John G Broadband 12 01-16-2006 04:46 PM
Sending email to dial up Linux box Eric Lewton Linux Networking 7 12-03-2003 12:12 AM



1 2 3 4 5 6 7 8 9 10 11