Project

General

Profile

« Previous | Next » 

Revision de283d92

Added by Scott Ullrich over 19 years ago

MFC 11471
don't wrap curlies around destination host in port forward - this fixes the destination "any" issue reported on the forum

View differences:

etc/inc/filter.inc
799 799
							if($extport[0]) 
800 800
								$natrules .= "rdr on $natif proto {$rule['protocol']} from any to {$extaddr} port { {$extport[0]} } -> {$target}{$localport}";
801 801
							else 
802
								$natrules .= "rdr on $natif proto {$rule['protocol']} from any to { {$extaddr} } -> {$target}{$localport}";
802
								$natrules .= "rdr on $natif proto {$rule['protocol']} from any to {$extaddr} -> {$target}{$localport}";
803 803
							break;
804 804
						default:
805
							$natrules .= "rdr on $natif proto {$rule['protocol']} from any to { {$extaddr} } -> {$target}";
805
							$natrules .= "rdr on $natif proto {$rule['protocol']} from any to {$extaddr} -> {$target}";
806 806
							break;
807 807
					}
808 808
				} else {
......
812 812
							break;
813 813
						case "udp":
814 814
						case "tcp":
815
							$natrules .= "{$nordr}rdr on $natif proto {$rule['protocol']} from any to { {$extaddr} } port {$extport[0]}:{$extport[1]} -> {$target}{$localport}:*";
815
							$natrules .= "{$nordr}rdr on $natif proto {$rule['protocol']} from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target}{$localport}:*";
816 816
							break;
817 817
						default:
818
							$natrules .= "{$nordr}rdr on $natif proto {$rule['protocol']} from any to { {$extaddr} } -> {$target}";
818
							$natrules .= "{$nordr}rdr on $natif proto {$rule['protocol']} from any to {$extaddr} -> {$target}";
819 819
					}
820 820
				}
821 821
			}

Also available in: Unified diff