Nov 8 2008

[vpn] openvpn

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

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

pc2: openvpn –remote “the-remote-name-port”   –dev tun1 –secret key –ifconfig 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

route print (check current routes)

route add mask
( is now reachable via 


route add -net netmask gw 

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:




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

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.