summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 1a7aa61..a69ddd2 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -877,13 +877,13 @@ function filter_nat_rules_generate() {
switch($rule['protocol']) {
case "tcp/udp":
$protocol = "{ tcp udp }";
- fwrite($fd, "{$starting_localhost_port}\tstream\ttcp/udp\tnowait\tnobody\t/usr/bin/nc nc -w 20 {$target} {$x}\n");
+ fwrite($fd, "{$starting_localhost_port}\tstream\ttcp/udp\tnowait.420\tnobody\t/usr/bin/nc nc -w 20 {$target} {$x}\n");
$natrules .= "rdr on \${$ifname_real} proto {$protocol} from any to {$extaddr} port { {$x} } -> 127.0.0.1 port {$starting_localhost_port}\n";
break;
case "tcp":
case "udp":
$protocol = $rule['protocol'];
- fwrite($fd, "{$starting_localhost_port}\tstream\t{$protocol}\tnowait\tnobody\t/usr/bin/nc nc -w 20 {$target} {$x}\n");
+ fwrite($fd, "{$starting_localhost_port}\tstream\t{$protocol}\tnowait.420\tnobody\t/usr/bin/nc nc -w 20 {$target} {$x}\n");
$natrules .= "rdr on \${$ifname_real} proto {$protocol} from any to {$extaddr} port { {$x} } -> 127.0.0.1 port {$starting_localhost_port}\n";
break;
default:
OpenPOWER on IntegriCloud