I just upgraded my WRT54Gv1.1 router from Kamikaze 7.06 to 7.07 last night. It took a little work because Dropbear kept not wanting to start, but it's now quite up. My setup (as you may have read in previous posts of mine) is such that it is a wireless client to my DSL modem, meaning that it needs to grab PPPOE from the wireless interface. I got that working, but I had recently put up a server behind this router (it's at http://polypman.hopto.org btw). Because my ISP blocks port 80, that's a port 80 redirect ( so the traffic comes to me as port 8080). My router, in firewall.user, redirects port 8080 traffic from the WAN to port 80 on 192.168.1.147 (my server). Here's the relevant parts of firewall.user:
iptables -t nat -A prerouting_wan -p tcp --dport 8080 -j DNAT --to 192.168.1.147:80
iptables -A forwarding_wan -p tcp --dport 80 -d 192.168.1.147 -j ACCEPT
iptables -t nat -A prerouting_wan -p tcp --dport 21 -j DNAT --to 192.168.1.147:21
iptables -A forwarding_wan -p tcp --dport 21 -d 192.168.1.147 -j ACCEPT
Anyway, this works fine (until **cking Verizon DSL goes down) for accessing my server from the outside.
For consistency, I'd like to be able to access this server from the lan. Basically, I just want a request for polypman.hopto.org from the lan to point to port 80 on my server. In case It makes a difference, most of my lan clients are behind a second wireless router with Netgear Stock firmware, acting as an access point, with the WAN port connected to the OpenWRT box.
I've seen a few solutions, but the one changing firewall.user doewsn't work, and the one changing /etc/hosts breaks ALL dns.
Got any ideas?
tia,
poly-p man
Oh, and call me crazy, but at least last night, my router's internet connection stopped working at one point, when there was no reason for it to, and there were pings going constantly. Basically, I can't have this happen, and I need a way for the connection to either stay up indefintely, or reconnect when it drops, preferably without rebooting, but making sure that if the IP address on my WAN changed, no-ip knows about it. Hey, I told you it'd be intricate