Re: dialup solution (as seconary connection / iptables )



Clifford Kite wrote:
sammy <sambo@xxxxxxxxxxxx> wrote:

<...>

to taking action when ppp goes up and down. One note about ip-up,


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


It works when pppd is setup for script but doesn't run ip-up/down.

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.


As far as I know you can only route through machine directly connected
and in my case directly connected to all machines is the netgear concentrator (since it's routing capability is questionable )

When I make ppp connection one of the messages is:
"not changing default route" (through the router)
I guess that's something to reconsider since I am not expectiong
to work from that machine but may wish to share drive space.

This is more or less what I would like to run from ip-up when I get it
going.

news.sh $4 $5

#!/bin/sh
echo "adding " $1 >/dev/tty0
route add news.serv1 $2
route add news.serv2 $2

iptables -t nat -A PREROUTING -p tcp -d 192.168.0.6 --dport 119 -j LOG --log-tcp-sequence
iptables -t nat -A PREROUTING -p tcp -d 192.168.0.6 --dport 119 -j DNAT --to-destination news.serv2

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE


should second rule (DNAT) be in INPUT chain?
This gets packets back to the modem server but I am not
sure how to procceed from here since there are 2 possible clients,
(...5 and ...9 ) short of hardcoding it for one of them with

iptables -t NAT -A INPUT -s news.serv1 -j DNAT --to-destination 192.168.0.9

or ...5

Do I need to mark the connection or ..?



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


Great thanks , I'll look into it, but I am put off a bit by the fact it is 2 separate parts instead of single daemon and single config file.

Cheers, Sam
.



Relevant Pages

  • Re: Vista Not Allow 2 active Connection
    ... machine, after the dialup connection has make, all my internet connectivity ... include which the LAN which work prefectly before make dialup... ...
    (microsoft.public.windows.vista.networking_sharing)
  • Re: Unable to ping remote site
    ... The "answering" router needs a subnet route back ... to your private LAN through the RAS link if you want machines behind your ... >> A RAS connection is designed as a client-server application. ...
    (microsoft.public.win2000.ras_routing)
  • Re: Networking/IP question
    ... connection issues with VNC over SSH and want to try Remote Desktop. ... if you still have access to a dialup ISP. ... access from outside your LAN. ...
    (comp.os.linux.networking)
  • Re: PPP applications trump LAN default gateway
    ... The default action when you create a PPP connection is this. ... a new default route is set up to the PPP server. ... > I have a PPP dialer application that hoses my LAN NIC ... > default gateway once it is dialed up. ...
    (microsoft.public.win2000.ras_routing)
  • Re: Simultaneous Dial-up and DSL Connection
    ... stunts to disable the lan when i connect through the dialup. ... >> company's email server after each time you dial. ... >> 1) Connect to your dial-up connection ...
    (microsoft.public.windowsxp.network_web)