Last update:
I got the openVPN Server and Client running on 2 WRT54GS to work and connect on startup.
To setup the server, i basically followed the client setup in the openVPNHowTo.
For the client, i simply used the WebIf interface.
I added the server startup script as S46openvpn under /etc/init.d
and on the client side, the WebIf interface changed the nvram value so that the client is started
Some traces:
openVPN client
476 root 1076 S openvpn --proto udp --port 1194 --remote 192.168.1.50
openVPN Server
507 root 1092 S /usr/sbin/openvpn --daemon --config /etc/server.ovpn
tap0 Link encap:Ethernet HWaddr 00:FF:7A:39:4F:92
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:1498 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Strangely ifconfig doesn't display a tun0 interface on the client ?
but according to the log it seems ok ... :
Jul 12 17:47:54 (none) kern.notice openvpn[468]: OpenVPN 2.0.9 mipsel-linux [SSL] [LZO] [EPOLL] built on Feb 13 2007
Jul 12 17:47:54 (none) kern.notice openvpn[468]: Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Jul 12 17:47:54 (none) kern.notice openvpn[468]: Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jul 12 17:47:54 (none) kern.notice openvpn[468]: Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Jul 12 17:47:54 (none) kern.notice openvpn[468]: Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jul 12 17:47:54 (none) kern.notice openvpn[468]: LZO compression initialized
Jul 12 17:47:54 (none) kern.notice openvpn[468]: TUN/TAP device tun0 opened
Jul 12 17:47:54 (none) kern.notice openvpn[468]: Data Channel MTU parms [ L:1545 D:1450 EF:45 EB:135 ET:0 EL:0 AF:3/1 ]
Jul 12 17:47:54 (none) kern.notice openvpn[468]: Local Options hash (VER=V4): '62cf4b05'
Jul 12 17:47:54 (none) kern.notice openvpn[468]: Expected Remote Options hash (VER=V4): '62cf4b05'
Jul 12 17:47:55 (none) kern.notice openvpn[476]: UDPv4 link local: [undef]
Jul 12 17:47:55 (none) kern.notice openvpn[476]: UDPv4 link remote: 192.168.1.50:1194
It says tun0 opened and connects to the server (on lan)
+==============================================+
I am still unsure on the VPN workings ...
could someone tell me please:
If i understand all traffic going in between the VPN server and client will be "tuneled" trough the VPN
no matter the dest ports or protocols ... Right ?
... so that the VPN will encapsulate, encript and optionally compress the data transiting in between the 2 systems ... Right ?
... and everything will transit on port 1194 ... Right or ?
Thanks for anyone willing to contibute to my education ;-)
Noel