Preface:
While this topic has been covered several times in the forum I have been unable to successfully find a clear and concise configuration for PPPoE users . The below is an attempt to clearly define the steps necessary for PPPoE DSL users. Should any of this information be misleading or incorrect please feel free to make corrections. I've successfully used this script/configuration with my Buffalo WHR-G54S.
Introduction:
The following configuration script will allow you to access your DSL modem's status page without having to disconnect it from the WAN port and move it to a LAN port.
Directions:
Create a new file called /etc/init.d/S52modemroute pasting the below code (modify as needed) into the file. Then, chmod +x /etc/init.d/S52modemroute, and finally execute it by typing /etc/init.d/S52modemroute. Upon reboot the changes will be activated so it's not necessary to run the command manually after every reboot.
If all goes well you should be able to access the modem's webpage/status page from any WLAN/LAN client using the IP address you selected for MODEM_IP.
#!/bin/sh
#IP Address of the modem, must be a different network from your local LAN.
#If you use 192.168.x.x for LAN then use 10.0.0.x for modem, etc (basically, pick a free IANA reserved range)
#Obviously you need to configure the actual DSL modem to use the address you select in MODEM_IP.
MODEM_IP="10.0.0.1"
#IP address that will be bound to vlan1, usually safe to just increment MODEM_IP by 1.
VLAN_IP="10.0.0.2"
#Setup network interface and firewall rules.
ifconfig vlan1 $VLAN_IP netmask 255.255.255.0
iptables -A forwarding_rule -d $MODEM_IP -j ACCEPT
iptables -t nat -A POSTROUTING -d $MODEM_IP -j MASQUERADE