What's new

Virtual Server / Port Forwarding - Protocol = "Other"

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

orion44

Regular Contributor
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.
 
View attachment 10671

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.

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.
 
Wow I was only kidding, can't believe that's actually what it does. Thanks for explaining!
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top