I read through and followed the guide for OpenVPN TUN Howto and I'm trying to apply that guide to kamikaze and the webif interface.
This is the error I have now
error in OpenVPN configuration, unknown authtype
config openvpn general
option mode 'client'
option proto "tcp"
option port "443"
option auth 'pem'
config openvpn client
option ipaddr '10.8.0.0'
option auth "pem"
### network options
port 443
proto tcp
dev tun
### certificate and key files
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key
dh /etc/openvpn/dh.pem
### (optional) use a shared key to initialize TLS negotiation
tls-auth /etc/openvpn/shared.key
### VPN subnet
server 10.8.0.0 255.255.255.0
### (optional) make local network behind the VPN server accessible for the VPN clients
push "route 192.168.1.0 255.255.255.0"
### (optional) make the VPN server a gateway for the internet for the VPN clients
push "redirect-gateway"
### (optional) compression (might make your WRT sluggish or not, depending on the model and what you have running...)
comp-lzo
keepalive 10 120
status /tmp/openvpn.status
I've created all the certs and keys and place them in the directory.
### OpenVPN
## allow connections from outside
iptables -t nat -A prerouting_wan -p tcp --dport 443 -j ACCEPT
iptables -A input_wan -p tcp --dport 443 -j ACCEPT## allow input/forwarding for the VPN interfaces, see http://openvpn.net/faq.html#firewall
## as of July 2007 the above FAQ misses the output rules for the TUN interfaces
## also needs ip_forward, see http://openvpn.net/faq.html#ip-forward and http://forum.openwrt.org/viewtopic.php?pid=20428#p20428
iptables -A INPUT -i tun+ -j ACCEPT
iptables -A FORWARD -i tun+ -j ACCEPT
iptables -A OUTPUT -o tun+ -j ACCEPT
iptables -A FORWARD -o tun+ -j ACCEPT
So I'm not sure what's wrong but I think it has to do with the new /etc/config in kamikaze vs the current server.conf file. Can anybody help me out?