diff options
author | Daniil Baturin <daniil.baturin@vyatta.com> | 2012-04-18 21:11:03 +0700 |
---|---|---|
committer | Daniil Baturin <daniil.baturin@vyatta.com> | 2012-04-18 21:11:03 +0700 |
commit | a980bf8e43d54d9cd0baba11cde3edf9e42895af (patch) | |
tree | ec4fc006f6cc9ea1578b87cc84fe855e217cc862 /lib | |
parent | 201e4cecbb07ab41cc0959226d7719865a4ef33d (diff) | |
parent | eab144500a1c27ee497737c75c85d0aaf49f585a (diff) | |
download | vyatta-nat-a980bf8e43d54d9cd0baba11cde3edf9e42895af.tar.gz vyatta-nat-a980bf8e43d54d9cd0baba11cde3edf9e42895af.zip |
Merge branch 'pacifica' of git.vyatta.com:/git/vyatta-nat into pacifica
Conflicts:
lib/Vyatta/DstNatRule.pm
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Vyatta/DstNatRule.pm | 4 | ||||
-rw-r--r-- | lib/Vyatta/SrcNatRule.pm | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/Vyatta/DstNatRule.pm b/lib/Vyatta/DstNatRule.pm index 222010f..b8145cc 100644 --- a/lib/Vyatta/DstNatRule.pm +++ b/lib/Vyatta/DstNatRule.pm @@ -157,12 +157,12 @@ sub rule_str { if (defined($self->{_proto})) { my $str = $self->{_proto}; - $str =~ s/^\!(.*)$/! $1/; + $str =~ s/^\!(.*)$/ $1/; if ($str eq 'tcp_udp') { $tcp_and_udp = 1; $rule_str .= " -p tcp "; # we'll add the '-p udp' to 2nd rule later } else { - $rule_str .= " -p $str "; + $rule_str .= " ! -p $str "; } } diff --git a/lib/Vyatta/SrcNatRule.pm b/lib/Vyatta/SrcNatRule.pm index 6e759d2..77bad83 100644 --- a/lib/Vyatta/SrcNatRule.pm +++ b/lib/Vyatta/SrcNatRule.pm @@ -176,12 +176,12 @@ sub rule_str { if (defined($self->{_proto})) { my $str = $self->{_proto}; - $str =~ s/^\!(.*)$/! $1/; + $str =~ s/^\!(.*)$/ $1/; if ($str eq 'tcp_udp') { $tcp_and_udp = 1; - $rule_str .= " -p tcp"; # we'll add the '-p udp' to 2nd rule later + $rule_str .= " -p tcp "; # we'll add the '-p udp' to 2nd rule later } else { - $rule_str .= " -p $str"; + $rule_str .= " ! -p $str "; } } |