soulmate022700
asked on
on-demand VPN using ssh and ppp
I already created a script that initiates a vpn with ppp through ssh.
The constuction of the script is:
1. kill ssh processes that is used for vpn.
2. initiate ssh
3. initiate ppp
3. add route
4. flush and reset firewall rules
Now I want to make it on-demand, instead of running the script manualy.
How?
The constuction of the script is:
1. kill ssh processes that is used for vpn.
2. initiate ssh
3. initiate ppp
3. add route
4. flush and reset firewall rules
Now I want to make it on-demand, instead of running the script manualy.
How?
ASKER
Well That's the problem, ssh has to be invoked first because it creates a pseudo tty where pppd has to tunnel through.
just to clarify:
you invoke ssh on host A to connect to host B
then you tunnel PPP through ssh and connect to B too
means that you already have a connection to B
Why do then need to setup PPP on demand?
you invoke ssh on host A to connect to host B
then you tunnel PPP through ssh and connect to B too
means that you already have a connection to B
Why do then need to setup PPP on demand?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
oops, should have looked at the topic: **linux** networking
http://www.freeswan.org/ should do it, just to complete Jon's suggestion.
http://www.freeswan.org/ should do it, just to complete Jon's suggestion.
Ahoffman - hehe (I still expect that the answer will be "I need to connect with some Mickeysoft something or other" [which tends to deep-six a lot of pure linux solutions], since Big Brother Bill loves to ignore computing standards at the expense of the (computing) free world, in order to inflate his own wallet).
I may yet be pleasantly surprised.
-Jon
I may yet be pleasantly surprised.
-Jon
LOL
but FreeS/WAN ('cause it's free) works with M$ clients too, sometimes, somehow ... (see PGPNet 7.03)
but FreeS/WAN ('cause it's free) works with M$ clients too, sometimes, somehow ... (see PGPNet 7.03)
soulmate:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
then use ip-up (or similar) which is invoked by pppd and write whatt you like/need in there