Here is the situation:
I have a ActionTech 701 DSL model/router, running BusyBox embedded linux, seems have iptables running to enable port forwarding.
DSL modem is hooked to a switch, 3 go to other fixed ip PC (2 Windows, 1 RedHat Linux), Redhat has everything( httpd, named, sendmail) and another one goes to Wireless router. 2 Laptops are connected with Wireless router and get access to all other LAN devices and external internet.
The wiring is as following
ISP --> DSL Modem --> Linux (WWW, DNS, POP3, SMTP)
--> WIN PC1
--> WIN PC2
--> Wireless router --> Win PC 3
--> Win Pc 4
The port forwarding is enabled in DSL modem, and works fine in PC1 or 2 according to P2P programs like BT.
The google search result shows that the ActionTech modem has a problem with internal port forwarding, that means PC 1,2,3,4 can not access Linux in port 80, 53,...etc using something like
www.murou.com or ns1.murou.com.
I am not sure how to use iptables to resolve this problem. I tried the following but looks like it's not working
Code:
iptables -t nat -A PREROUTING -p tcp -i eth0 -d 6 xxx.xx.xx.xx(public IP) --dport 25 -j DNAT --to 192.168.0.30:25
iptables -A FORWARD -p tcp -i eth0 -d 192.168.0.30 --dport 25 -j ACCEPT
and
Code:
iptables -t nat -A PREROUTING -p tcp -i eth0 -d 192.168.0.1 --dport 25 -j DNAT --to 192.168.0.30:25
iptables -A FORWARD -p tcp -i eth0 -d 192.168.0.30 --dport 25 -j ACCEPT
What's the problem? Help me out... thank you!
since I cannot test my DNS setting, could somebody help me to dig
www.murou.com? Thanks!