Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.system > #63199
| From | Mathias Kőrber <mathias@koerber.org> |
|---|---|
| Newsgroups | comp.sys.mac.system |
| Subject | Re: /etc/ppp/ip-up: how to distinguish service? |
| Date | 2014-08-13 18:23 +0800 |
| Message-ID | <c50skhFkk7oU1@mid.individual.net> (permalink) |
| References | <c4iumrFnfv8U1@mid.individual.net> <lsd1m8$vgi$1@dont-email.me> |
On 12/8/14 20:35, David Sankey wrote: > On 08/08/2014 04:32, Mathias Kőrber wrote: >> Moin, >> >> I am still running Mountain Lion. >> >> I defined two L2TP VPNs in System Prefs/Networking >> >> For the first, i used /etc/ppp/ip-up to tune the routing >> for when the VPN is up. This works fine. >> >> However, I need different routing setup for the second VPN, >> but there does not seem to be a way to distinguish in /etc/ppp/ip-up >> which VPN service was called, nor is there apparently a way to select >> a different ip-up script. >> >> Does anyone have a hint how to accomplish this? > > man pppd is your friend, look for the section SCRIPTS. > > This lists the environment variables that are defined when ip-up is run. Hmm. I executed 'env' in my ip-up script itself and found no distinguishing info > > At a guess look at $IPREMOTE/$5 > Leastways, that's how I diffentiate between VPN's in my ip-up! That might work if you have VPNs going to different endpoints. I want to have two different setups going to the same service. One redirects *ALL* my traffic there, while the other only a certain subsets of routes (which is done in the ip-up script). However, I cannot in the ip-up script distinguish which of the two services were called..
Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next in thread | Find similar
/etc/ppp/ip-up: how to distinguish service? Mathias Kőrber <mathias@koerber.org> - 2014-08-08 11:32 +0800
Re: /etc/ppp/ip-up: how to distinguish service? David Sankey <David.Sankey@stfc.ac.uk> - 2014-08-12 13:35 +0100
Re: /etc/ppp/ip-up: how to distinguish service? Mathias Kőrber <mathias@koerber.org> - 2014-08-13 18:23 +0800
Re: /etc/ppp/ip-up: how to distinguish service? David Sankey <David.Sankey@stfc.ac.uk> - 2014-08-18 09:05 +0100
Re: /etc/ppp/ip-up: how to distinguish service? Mathias Kőrber <mathias@koerber.org> - 2014-08-18 20:44 +0800
csiph-web