hi again, im here asking for help on getting a website to be served via port 80 from a machine in the LAN network to the outside world...so this means packect coming from WAN to LAN
this my firewall.user settings:
### Port forwarding
iptables -t nat -A prerouting_rule -i $WAN -p tcp --dport 80 -j DNAT --to 192.128.1.249
iptables -A forwarding_rule -i $WAN -p tcp --dport 80 -d 192.168.1.249 -j ACCEPTthis, some processes running at my router:
39 root 388 S syslogd -C 16
44 root 348 S klogd
427 root 408 S udhcpc -i vlan1 -b -p /var/run/vlan1.pid -R
462 nobody 440 S dnsmasq -l /tmp/dhcp.leases -K -F 192.168.1.100,192.168.1.250,255.255.255.0,12h -I vlan1
468 root 420 S /usr/sbin/dropbear
473 root 392 S httpd -p 80 -h /www -r WRT54G Router
474 root 304 S telnetd -l /bin/login
1606 root 644 R /usr/sbin/dropbear
1607 root 544 S -ash
1772 root 384 R ps -auxi'm in big doubt about httpd -p 80 -h /www -r WRT54G Router cause every time i make a request to http://8x.7x.1x9.x2/ i get the pages served from /www in the router but instead i shall be looking at the apache page that is installed in http://192.168.1.249/~alejood/ but no, is not working
the box that serves the website is on the route/gateway:
netstat -nr | grep default
default 192.168.1.1 UGSc 45 261 en0I don't know what else to do, or look for, i was thinking that i had to stop httpd on the router httpd -p 80 -h /www -r WRT54G Router or flag -h to the local ip but it didnt worked, cause it tells me that 192.128.1.249 is not reachable, but indeed thats the address the box in the LAN is getting from white russian RC3. let me know what else or where else can i look. I dont want to change firmware now that im learning few things with openwrt, switching will be to RC5 when its ready.
thanks for any advice
/a
(Last edited by alej00d on 20 Feb 2006, 03:03)
