Well, I'm not responsible for any damage.
So, there are 2 nvram settings which determies the logical order of the ethernet ports: et0mdcport and et1mdcport. On my unit et0mdcport=0 and et1mdcport=1. So, to exchange these ports you just need to set et0mdcport=1 and et1mdcport=0. Also, there is a setting for phy addresses: et0phyaddr=30 and et1phyaddr=0, they should be also exchanged. So, the exact sequence (using any firmware, including provided by ASUS) should be as follows (execute via www backdoor or telnet/ssh in custom firmwares):
1. Verify current settings
Code:
nvram get et0mdcport
nvram get et1mdcport
nvram get et0phyaddr
nvram get et1phyaddr
This should produce 0, 1, 30, 0 correspondingly.
2. Set new values
Code:
nvram set et0mdcport=1
nvram set et1mdcport=0
nvram set et0phyaddr=0
nvram set et1phyaddr=30
3. Double check your changes:
Code:
nvram get et0mdcport
nvram get et1mdcport
nvram get et0phyaddr
nvram get et1phyaddr
This should produce 1, 0, 0, 30 correspondingly.
4. Commit & reboot
Code:
nvram commit
reboot
wl500g should reboot and use WAN port as LAN and vice versa.
The worst thing which could happen (but this is nearly imposible if you strictly follow the steps above) is that it can't boot. In this case wrt54g recover procedure should be used, i.e. shortening the flash pins.