Hi!
3 years of absence
After years of happily using all WhiteRussians up to version 0.9 on my 3 WRT54Gv2.2 I tried the new Kamikaze 8.09 with kernel 2.6.
So far I am very pleased with the new uci, stability and easy setup.
BUT: Setting up the firewall for OpenVPN is a mess! A least there is not a single howto for OpenVPN on Kamikaze 8.09 (counterexamples welcome!). Well, there are forum entries but they always bypass the new clean config structure and use crippled old config files and iptables directly.
What I want to achieve: the WRT54G should work as VPN server. The clients connect to it from the internet through the wan port (via a routed VPN tunnel) and should then be able to reach the public internet via the WRT54G. This is the most simple roadwarrior setup: clients anywhere in the world get a secured internet connection by using the home internet connection.
Enough text.
Here's what I did so far:
1. Installed openvpn and all dependencies. (Be aware: the most recent libopenssl_0.9.8i-3 produces a false error: "not enough memory". You have to use the slightly older libopenssl_0.9.8i-1 from 8.09 RC2 instead which works perfectly.)
2. Created all keys and certificates and set up the config files for vpn-server and clients. This is fairly easy and clear due to the excellent docs for OpenVPN.
On the WRT54G I used the sample-server part of /etc/config/openvpn with mostly the default settings since I want to use a routed tunnel (the "easier" way...).
3. In /etc/config/network I added
#### VPN configuration
config interface vpn
option ifname tun0
option proto none
4. Set up openvpn to be started automatically with
/etc/init.d/openvpn enable
5. Now comes the difficult part: firewall.
I added the following to /etc/config/firewall:
config zone
option name vpn
option input ACCEPT
option output ACCEPT
option forward REJECT
config forwarding
option src lan
option dest vpn
config forwarding
option src vpn
option dest lan
config rule
option name vpn
option dest wan #'src wan' isn't working either
option dest_port 1234
option proto udp
option target ACCEPT
What is wrong?
How can that most simple VPN-setup work?
Interesting notice: With WhiteRussian installed I could ping the router's IP (dynamically assigned by the ISP) from the internet by default.
With Kamikaze I can't. There is simply no response. I guess that might be the problem. What needs to be changed?
Thanks for any help!