1.5.3


Old Stuff

 www.your-freedom.net
 www.secure-tunnel.com

Changes from Version 1 of AlmostVPNAliasingSSHGateway

Show
Ignore:
Author:
andrei (IP: 192.168.13.1)
Timestamp:
12/13/05 15:30:02 (5 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AlmostVPNAliasingSSHGateway

    v0 v1  
     1'''Almost VPN''' Connection works great when you have situation like this. 
     2 
     3http://www.leapingbytes.com/downloads/almostvpn/cookbook/images/connection-ssh-to-email.png 
     4 
     5Almost VPN makes '''latte''' "to think" that it has IP address 2.3.4.5 (along with what ever other "real" IP address it has) and all traffic to '''slidingpenguin''' gets directed to ssh tunnel. 
     6 
     7Unfortunately, quite often we have slightly different situation 
     8 
     9http://www.leapingbytes.com/downloads/almostvpn/cookbook/images/connection-ssh-is-email.png 
     10 
     11Why it does not work now?  Because the second Almost VPN made '''latte''' "to think" that it has IP address of jumpingrodent ( 1.2.3.4 ), ALL traffic for 1.2.3.4 will go to '''latte''' including SSH traffic.  So effectively it means that instead of SSHing to '''jumpingrodent''' we SSH to '''localhost/latte'''. 
     12 
     13Solution is quite simple.  All we need to do is to make '''latte''' think that proper IP address for '''jumpingrodent''' is not 1.2.3.4 but something else (to make thing simpler let's make it 127.0.0.1) 
     14 
     15http://www.leapingbytes.com/downloads/almostvpn/cookbook/images/connection-ssh-to-email-new.png 
     16 
     17To make '''latte''' start to think that IP address of '''jumpingrodent''' is 127.0.0.1 '''AlmostVPN''' creates new entry in NetInfo database. This change affect only '''latte''' and it is "in effect" only while '''AlmostVPN''' profile is running.  Once it is stopped, correct name to address mapping is restored. 
     18 
     19 
     20 '''NOTE:''' To make things work the way I described above, '''AlmostVPN''' need to make sure that '''LookupOrder''' is correct one ( '''NIS''' will be asked before other sources ).  You can read [http://www.geektimes.com/macintosh/os/x/10_3/and/dns.html here] about steps '''AlmostVPN''' performs to make it happen (again, all changes are in-effect only while AlmostVPN profile is running. When it stops, all settings are restored) 
     21 
     22 '''NOTE:''' If you are curios, you can read more about '''NIS''' here 
     23 
     24  http://developer.apple.com/documentation/Networking/Conceptual/Open_Directory/Chapter1/chapter_2_section_3.html [[br]] 
     25  http://developer.apple.com/darwin/projects/opendirectory 
     26