Nov 8 2008

[vpn] openvpn

install it, then create a key:
openvpn –genkey –secret key 

then on pc 1: openvpn –remote 192.168.0.32   –dev tun1 –secret key –ifconfig 10.4.0.1 10.4.0.2 –verb 3

pc2: openvpn –remote “the-remote-name-port”   –dev tun1 –secret key –ifconfig 10.4.0.2 10.4.01 –verb 3

 

both should be reachable via 10… address

setup routes to get networks behind the pc’s

 


Nov 8 2008

[xp/linux routing] add route

win:
route print (check current routes)

route add 192.168.0.0 mask 255.255.255.0 10.4.0.1
(192.168.0.0/24 is now reachable via 10.4.0.1) 

 

linux:
route
route add -net 192.168.0.0 netmask 255.255.255.0 gw 10.4.0.1 


Nov 8 2008

[xp / linux routing] how to enable ip_forward on xp

Enabling TCP/IP Forwarding

for linux: 

echo 1 > /proc/sys/net/ipv4/ip_forward

for windows:

 

 

1.

Use Registry Editor (Regedt32.exe) to view the following registry key:   

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
2. Set the following registry value:   

Value Name: IPEnableRouter
Value type: REG_DWORD
Value Data: 1

NOTE: A value of 1 enables TCP/IP forwarding for all network connections installed and used by this computer.