Re: dialup solution (as seconary connection / iptables )
- From: ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
- Date: Tue, 25 Nov 2008 18:28:19 -0600
On Tue, 25 Nov 2008, in the Usenet newsgroup comp.os.linux.networking, in
article <6p1eivF5orokU1@xxxxxxxxxxxxxxxxxx>, Felix Tiede wrote:
sammy wrote:
1. Where and how do I alter the source IP to my ppp0 internet IP.
Given I already have:
Have a look at /etc/ppp/ip-up.d and /etc/ppp/ip-down.d - you can put
scripts there which are executed on dialing a connection and on hang
up.
[compton ~]$ zgrep "up\.d" /net/thurber/sources/ppp-2.4.4.tar.gz
[compton ~]$
"/etc/ppp/ip-up.d" and "/etc/ppp/ip-down.d" are distribution specific
directories (mainly Debian and clones) and are not found in all
installations. See the pppd(8) man page, and look at the section
called "SCRIPTS" - down around line 1780.
You'd need to figure out if the correct connection has been dialed or
hanged up and execute all you want.
See the description of "/etc/ppp/ip-up" in the section noted above, and
notice the parameters passed to the script - specifically $4 and $5.
"ip-up" and "ip-down" have been used for this function for 14+ years.
Old guy
.
- References:
- dialup solution (as seconary connection / iptables )
- From: sammy
- Re: dialup solution (as seconary connection / iptables )
- From: Felix Tiede
- dialup solution (as seconary connection / iptables )
- Prev by Date: Re: FIN_WAIT2 not working
- Next by Date: Throughput Formula
- Previous by thread: Re: dialup solution (as seconary connection / iptables )
- Next by thread: Who applies for IP address
- Index(es):
Relevant Pages
|