1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

route second WAN IP to one of my internal IPs...

Discussion in 'HyperWRT Firmware' started by kulmegil, Jan 4, 2006.

  1. kulmegil

    kulmegil Network Guru Member

    I want to route my second WAN IP to one of my internal comps IP. I used the following script with dd-wrt but it gives me some errors (second line of this rules) with HyperWRT...

    Code:
    iptables -t nat -I PREROUTING -d 195.185.184.126 -j DNAT --to-destination 192.168.1.10
    iptables -t nat -I POSTROUTING -s 192.168.1.10 -j SNAT --to-source 195.185.184.126
    iptables -I FORWARD -d 192.168.1.10 -j ACCEPT
    where 95.185.184.126 is my external second IP

    Can you help me to correct it somehow?
    (this is a n00b question as I'm a n00b when it comes to Linux n' stuff...)
     
  2. Thibor

    Thibor Super Moderator Staff Member Member

    as you correctly determined, the problem is with the "SNAT" target, it isn't installed in Hyperwrt
    **EDIT** it is installed in Tofu's latest fw, tofu11x
     
  3. kulmegil

    kulmegil Network Guru Member

    Yeah, but it's rather for WRT54G routers... maybe it can be uploaded to my GS router using some tricks but I prefer to wait a bit - I guess your builds will also contain it someday...

    is there any other way to utilize my second WAN IP on HyperWRT?
     
  4. Thibor

    Thibor Super Moderator Staff Member Member

    when the udhcpc problem is patched, tested and known good, i will release a fw with the fixes addresses, including SNAT and some other targets included
     

Share This Page