Michael Altfield's gravatar

Smoothwall Update

A few weeks ago, I finally got around to downloading and installing 4 updates to my smoothwall box. Unlike Ubuntu upgrades, this process was farily painless except for one thing: my Zerina OpenVPN ‘plugin’ broke.

Every time I clicked “Start OpenVPN Service,” nothing happened. Both the OpenVPN tab and the status tab showed the “OpenVPN Service” as “stopped.” In desperation, I ran a `tail -f /var/log/messages`, and clicked it again. Sure enough, there error messages popped up:

Jan 18 22:46:25 tank smoothd: 4:invoking command openvpnstart () 
Jan 18 22:46:25 tank smoothd: batchline iptables -F ovpnin 
Jan 18 22:46:25 tank smoothd: batchline iptables -F ovpnfwd 
Jan 18 22:46:25 tank smoothd: batchline iptables -A ovpnin  -i tun0 -j ACCEPT 
Jan 18 22:46:25 tank smoothd: batchline iptables -A ovpnin  -i eth0 -p udp --dport 1194 -j ACCEPT 
Jan 18 22:46:25 tank smoothd: batchline iptables -A ovpnfwd -i eth1 -o tun0 -j ACCEPT 
Jan 18 22:46:25 tank smoothd: batchline iptables -A ovpnfwd -i tun0 -o eth1 -j ACCEPT 
Jan 18 22:46:25 tank openvpnserver[9253]: OpenVPN 2.1_rc7 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Mar 21 2008
Jan 18 22:46:25 tank openvpnserver[9253]: Diffie-Hellman initialized with 1024 bit key
Jan 18 22:46:25 tank openvpnserver[9253]: WARNING: normally if you use --mssfix and/or --fragment, you should also set --tun-mtu 1500 (currently it is 1400)
Jan 18 22:46:25 tank openvpnserver[9253]: TLS-Auth MTU parms [ L:1441 D:138 EF:38 EB:0 ET:0 EL:0 ]
Jan 18 22:46:25 tank openvpnserver[9253]: Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
Jan 18 22:46:25 tank openvpnserver[9253]: Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Jan 18 22:46:25 tank openvpnserver[9253]: Cannot open TUN/TAP dev /dev/tun0: No such file or directory (errno=2)
Jan 18 22:46:25 tank openvpnserver[9253]: Exiting
Jan 18 22:46:25 tank smoothd: 4:invoking command openvpnstatus (rw,red,) 
Jan 18 22:46:25 tank smoothd: Command Failed "Error: OpenVPN service is stopped" (-1)
Jan 18 22:46:25 tank SmoothDClient: Unable to execute command Error: OpenVPN service is stopped  for openvpnstatus rw red

Using this info, I was able search and pull up a few articles like this one that said the error was a result of the ‘tun’ module not having been loaded. So, I did a:

modprobe tun

…and I re clicked the “Start OpenVPN Service” button.

Wa-la! The status is green again.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>