Re: dialup solution (as seconary connection / iptables )
- From: sammy <sambo@xxxxxxxxxxxx>
- Date: Sat, 29 Nov 2008 18:51:46 -0500
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 eachAs far as I know you can only route through machine directly connected
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.
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 withGreat 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.
it's companion fetchnews.
Cheers, Sam
.
- Follow-Ups:
- Re: dialup solution (as seconary connection / iptables )
- From: Clifford Kite
- Re: dialup solution (as seconary connection / iptables )
- References:
- dialup solution (as seconary connection / iptables )
- From: sammy
- Re: dialup solution (as seconary connection / iptables )
- From: Felix Tiede
- Re: dialup solution (as seconary connection / iptables )
- From: sammy
- Re: dialup solution (as seconary connection / iptables )
- From: Felix Tiede
- Re: dialup solution (as seconary connection / iptables )
- From: sammy
- Re: dialup solution (as seconary connection / iptables )
- From: Felix Tiede
- Re: dialup solution (as seconary connection / iptables )
- From: sammy
- Re: dialup solution (as seconary connection / iptables )
- From: Clifford Kite
- dialup solution (as seconary connection / iptables )
- Prev by Date: monit – can't connect from browser
- Next by Date: Re: dialup solution (as seconary connection / iptables )
- Previous by thread: Re: dialup solution (as seconary connection / iptables )
- Next by thread: Re: dialup solution (as seconary connection / iptables )
- Index(es):
Relevant Pages
|