multiple wan ip on 3500L with kongmod

1 post / 0 new
Enevold's picture
multiple wan ip on 3500L with kongmod

Hi Forum

I'm trying to get a secondary wan ip added to my 3500L router which is running kongmod

Router Model:
Netgear WNR3500 v2/U/L v1

Firmware Version:
DD-WRT v24-sp2 (05/20/12) stdkong - build 19277M

i have added this to the startup script:

# Save Startup
ifconfig $WANIF:2 aaa.bbb.ccc.116 netmask broadcast aaa.bbb.ccc.127

And added this to the firewall script:

# Save Firewall

# WAN .116 -> LAN .37
iptables -t nat -I PREROUTING -d aaa.bbb.ccc.116 -j DNAT --to
iptables -t nat -I POSTROUTING -s -j SNAT --to aaa.bbb.ccc.116
iptables -I FORWARD -d -p tcp --dport 8080 -j ACCEPT

I never really get access to the webservice running at port aaa.bbb.ccc.116:8080, if i try from the internal ip it work allright.

I'm also unsure about the vlan1 or vlan2 it seems like my router uses vlan2 for its wan.

the router has a static ip in same public range as aaa.bbb.ccc.118

any help would be great, to get this working.

Thanks in advance

- Michael