What's new

Virtual Server / Port Forwarding - Protocol = "Other"

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!
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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

Members online

Back
Top