that was it Nico, I had to insmod /lib/modules/2.4.20/tun.o
I installed Nico's tun-module, base-system, and openvpn from his site. I created /etc/openvpn to store all my stuff in.
I didn't see a modules.conf anywhere. So to get around that and load up my tunnel, I put the following at the bottom of /etc/init.d/rcS
Here's my scripts contents...
openvpn --port 5009 --ping 15 --comp-lzo --float --remote "ip of remote server" --dev tun1 --ifconfig 10.4.0.9 10.4.0.1 --verb 5 --secret /etc/openvpn/key
route add -net 10.10.0.0 netmask 255.255.0.0 gw 10.4.0.1
route add -net 192.168.1.0 netmask 255.255.255.0 gw 10.4.0.1
My next step would be to pipe all traffic through the tunnel. I want to use these at some of our remote sites to tunnel all the traffic through using wrt54g's.
works like a champ aside from some errors. I am tunneling to a 1.6 version of openvpn. I need to figure out the whole cert ssl stuff as version 2 of openvpn won't let you use static keys anymore
So 2 questions on this post..
Is there a better way to load the tun module at startup?
How can I route ALL the traffic through tun1?
Thank you very much Nico for putting this stuff together.