Use the following instructions. This is different approach without using iptables. Move GUI interface to other port with setting http_lanport NVRAM variable and then run your http server on port 80 as usual. This feature was added in latest 7b Oleg firmware and works for both LAN and WAN at the same time.
Code:
http_lanport-mini-howto.txt
This patch enables http_lanport variable to move router Configuration httpd
daemon to port other than standard 80. The main application is to use
builtin http builtin for other purposes. Port 80 can then be used for
servers like httpd, busybox_httpd, thttpd, ... Setup port with eg. nvram set
http_lanport=8008 ; nvram commit
Create Web pages in flashfs:
flashfs enable
mkdir /usr/local/root/www
vi index.html
<html>
<head>
<title>Test HTTP access</title>
</head>
<body>
<h1>My HTTP server </h1>
</body>
</html>
Move config interface to http://192.168.1.1:8008/
nvram set http_lanport=8008
nvram commit
reboot
Manual start http server on port 80
busybox_httpd -h /usr/local/root/www
Start busybox_httpd at boot:
mkdir /usr/local/sbin
cd /usr/local/sbin
cat >> post-boot
#!/bin/sh
busybox_httpd -h /usr/local/root/www
Ctrl-D
chmod +x post-boot
flashfs save
flashfs commit