Port translation feature Request

Discussion in 'DD-WRT Firmware' started by Ouistyty, May 5, 2005.

  1. Ouistyty

    Ouistyty Network Guru Member

    Is there any way to do or implemant port translation in DD-WRT ?

    My old D-link DI-804 was doiing this and I have'nt see ani LinkSys doiing it.


  2. jagboy

    jagboy Network Guru Member

    sorry but i have never heard of port translation. i have not played with other routers other than linksys routers
  3. gotamd

    gotamd Network Guru Member

    I think what he means is a request for one port is forwarded to a different port number.
  4. jagboy

    jagboy Network Guru Member

    cant you just forward that port to the computer directly
  5. MilesTEG

    MilesTEG Network Guru Member

    isn't it the "port triggering" ???
  6. starkwong

    starkwong Network Guru Member

    No it isn't. Whtat he means is e.g. Internet:80 -> Intranet:8081, which changed port during forwarding, some brands of router do provide this function.
  7. Ouistyty

    Ouistyty Network Guru Member

    Yes that is exactly what I mean. :D Thank's.

    I know that SVEASOFT Talisman is doiing it but I dont really like there way of thinking.


    PS: Sorry for the bad english.
  8. TheIndividual

    TheIndividual Network Guru Member

    Well the WRT is basically a linux router, so you just need to figure out the proper command line commands.
    There's no web GUI to do this but you probably only need to add two line to the startup script to do this...

    Try this for forwarding requests on router port 26 to port 21 on

    iptables -A FORWARD -t filter -i ppp0 -s 0/0 -p tcp --dport 26 -j ACCEPT
    iptables -A PREROUTING -t nat -i ppp0 -p tcp --dport 26 -j DNAT --to-destination
    The first line opens the firewall on port 26, the second translates the packet destination for packet with destination port 26 to

    Try it directly first (SSH/Telnet) and add it to the startup scripts if it works.
    Good luck, TheIndividual
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice