Re: dialup solution (as seconary connection / iptables )



sammy <sambo@xxxxxxxxxxxx> wrote:

<...>
to taking action when ppp goes up and down. One note about ip-up,
ip-down scripts , I don't believe they are being executed in slackware.

Ip-up is launched by pppd only after the PPP link comes up for IP and
ip-down is launched by pppd only after the PPP link no longer available
for IP.

My shell script doesn't run nor do I see any change when I change the
IP address messages. I think I may have read that ip-up does not run
when script method is used , but I tried PAP and it aborts before the
modem even tries to dial. Does PAP require me to make the connection
first with MINICOM or is PAP and script not mutualy exclusive?

Aborting before dialing would prevent up-up from running. You certainly
do have to "make the connection first with MINICOM." PAP authentication
is only done after the server and pppd complete most of the link-layer
negotiations. Link-layer negotiations can only begin after the modem has
made a viable connection. If pppd aborts before dialing occurs then the
chat script, or the configuration of whatever you are using to dial out,
is very likely broken.

To try and find out what is wrong the dialout program or script should
be set for verbose logging, for chat that would be -vs. Then you can add

daemon.*;local2.* /var/log/ppp.log

to /etc/syslog.conf, do "killall -HUP syslogd" to get syslogd to reread
the file, temporarily add the pppd option debug to /etc/ppp/options,
attempt to make a connection, and look at /var/log/ppp.log.

I gave up on having machines in a string ( or actually linux router)
when I got DSL a year ago,
so I have 3 or 4 machines connected to the hardware netgear router
and DSL modem, one of them w2K (what I really use as the serious
workstation). The other linux box (PIII 800 192...5) is my workstaion
with KDE and terminal to 192...6, where I do testing from.

Since the DSL provider doesn't have news , I kept the
dialup account. Both the windows and linux box have a modem, so up to
this point I have used the w2k to access the the dialup by disabling the
nic and dialing out , letting windows handle all the re-routing

If you use the Linux box and route the news IP address to it on each
of the other LAN boxes then you shouldn't need to disable the NIC.
DSL and dialup PPP can both be available at the same time.

On the dialup host you would need IP forwarding enabled and

route add news.ip.num gw $5 $1
iptables -t nat -A POSTROUTING -o $1 -j SNAT --to-source $4

in up-up, with no default route for the PPP interface if you want to
also be able to access the Internet with other types of connections
from the dialup via DSL routing.

On the other LAN hosts you should only need

route add news.ip.num gw 192.168.0.6 ethx

where 192.168.0.6 (or whatever) is the LAN IP address of the dialup and
ethx is the host's Ethernet interface. Of course news.ip.num is the IP
address of the external news server.

information ( it's own default gateway, this only works seamlessly
after some updates are downloaded when you installed windows connected
to the router and internet.)

So I am trying to use the linux box as access point to NNTP at least
untill I come across some software with good documentation that
can duplicate the ISPs NEWS functions. That way I wont have to

A lightweight choice for a Linux local news host would be leafnode with
it's companion fetchnews.

redownload some large newsgroups such as sci.electronics.design
over the 44Kbs modem connection when netscape hangs or another cause
forces me to shutoff while NEWS reader is open. %^%$# netscape doesn't
flush after it's done downloading each group only when you close the
app, but it does store in text format and does not rewrite the files,
rather appends.
OPPS TOO MUCH OFF TOPIC


So as I mentioned , I tried to enter route to the ISP news server
through my linux box ( with modem ) under static routes section of
the netgear router setup, but it does not seam to work, therefore I am
stuck with using the boxes (local ) IP as the news server.

--
Clifford Kite
/* 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 */
.



Relevant Pages

  • Re: Emulating a modem with expect
    ... > (basically allows GUI connections via telnet if X is not allowed). ... > script works fine on Linux machines since it makes a call to pppd on both ... > Basically pppd on Linux creates a ppp0 interace automatically, ... > Once chat finishes the phyiscal connection of dialing, ...
    (comp.lang.tcl)
  • Re: modem question
    ... > been authenticated, or if pppd is handling the authentication, it will ... > take over after the dial-up connection has been established. ... > So when pppd says the connect script failed, ... > Whatever process is used to dial your ISP is failing with that modem. ...
    (RedHat)
  • Re: Dialout fails using linuxconf/netconf - pppd dies
    ... >> I am unable to obtain a stable dialup connection using linuxconf. ... > This looks like you terminated pppd. ... > in what either the netconf or linuxconf script does. ...
    (comp.os.linux.networking)
  • Re: modem question
    ... >>been authenticated, or if pppd is handling the authentication, it will ... >>So when pppd says the connect script failed, ... >>Whatever process is used to dial your ISP is failing with that modem. ... in the last line after 'CONNECTION'. ...
    (RedHat)
  • Re: pppd pty equivilent in FBSD
    ... I let pppd manage retries & setting routes. ... >I wouldn't personally recommend vpn over ssh for anyone either, ... I'm the sole bsd user at my company, and the ppp over ssh ... >Actual bash script I call: ...
    (freebsd-net)