Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

Virtual Server / Port Forwarding - Protocol = "Other"

Discussion in 'Asuswrt-Merlin' started by orion44, Oct 13, 2017.

  1. orion44

    orion44 Occasional Visitor

    Joined:
    Jan 4, 2017
    Messages:
    13
    upload_2017-10-12_21-20-42.png

    What exactly does OTHER do? Forward all ports? Does it change "Port Range/Local Port" to IP protocol number instead so I could forward ICMP/GRE/SCTP traffic instead? Unlikely, but still confused what this actually does.
     
  2. RMerlin

    RMerlin Part of the Furniture

    Joined:
    Apr 14, 2012
    Messages:
    24,220
    Location:
    Canada
    That's correct, the port field then becomes a protocol number field.

    Code:
    // Handle raw protocol in port field, no val1:val2 allowed
    if (strcmp(proto, "OTHER") == 0) {
         protono = strsep(&c, ":");
         fprintf(fp, "-A %s %s -p %s -j DNAT --to %s\n", chain, srcips, protono, dstip);
    
    Linksys used to be even more confusing: setting it to BOTH would allow you to use it to forward protocol 47 (GRE) when forwarding to a local PPTP server.
     
  3. orion44

    orion44 Occasional Visitor

    Joined:
    Jan 4, 2017
    Messages:
    13
    Wow I was only kidding, can't believe that's actually what it does. Thanks for explaining!
     

Share This Page