util.rmi
Class Vpn
java.lang.Object
util.rmi.Vpn
public class Vpn
- extends Object
Another playground for Vpn RMI. Consider this:
We want the registry to run on Teneriffe, either on wifsip or archive
We want access from archive and wifsip.
From outside, we want access via the VPN addresses.
Currently, archive is 161.72.132.71, wifsip is 161.72.132.72.
The VPN addresses are: vpn-archive 141.33.210.34 and
vpn-wifsip 141.33.210.38, respectively.
In principle, we should be able to change only the client sockets by
re-routing them, if connecting from the outside.
This finally made it, we have to sub-class the client factory only and
re-route.
|
Constructor Summary |
Vpn()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
local
private static InetAddress local
Vpn
public Vpn()
socketCharacteristics
public static void socketCharacteristics(Socket s)
throws IOException
- Throws:
IOException
serverCharacteristics
public static void serverCharacteristics(ServerSocket s)
throws IOException
- Throws:
IOException
main
public static void main(String[] arg)
throws UnknownHostException
- Test some things.
- Throws:
UnknownHostException