diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-08-30 07:15:32 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-08-30 07:15:32 +0000 |
commit | 4167778e92fe08865027524f17965fc96defc1be (patch) | |
tree | 875044fdaa118932425022e36604f6c5b1972c80 /templates | |
parent | e3683ef9025df5e336cf7798eda2d1be2178734a (diff) | |
download | vyatta-op-4167778e92fe08865027524f17965fc96defc1be.tar.gz vyatta-op-4167778e92fe08865027524f17965fc96defc1be.zip |
op-mode: T4606: Fix monitor nat src|dst translation
A quick fix for "monitor nat source|destination translations"
Due to old Perl script "vyatta-nat-translations.pl" was deleted and
to return it requires an additional Perl packages (XML::Simple module)
There is no sense to do it until we'll rewrite it to Python
So a compromise solution is show conntrack events 'conntrack' itself
Diffstat (limited to 'templates')
-rw-r--r-- | templates/monitor/nat/destination/translations/node.def | 2 | ||||
-rw-r--r-- | templates/monitor/nat/source/translations/node.def | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/monitor/nat/destination/translations/node.def b/templates/monitor/nat/destination/translations/node.def index d6ad6f5..f1f593d 100644 --- a/templates/monitor/nat/destination/translations/node.def +++ b/templates/monitor/nat/destination/translations/node.def @@ -1,4 +1,4 @@ help: Monitor active destination NAT translations events run: LESSOPEN=cat echo Type control-C to quit - sudo /usr/sbin/conntrack -E -g -o xml 2>/dev/null | ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --pipe --type=destination + sudo /usr/sbin/conntrack --dst-nat --event diff --git a/templates/monitor/nat/source/translations/node.def b/templates/monitor/nat/source/translations/node.def index 7ded6c1..e458848 100644 --- a/templates/monitor/nat/source/translations/node.def +++ b/templates/monitor/nat/source/translations/node.def @@ -1,4 +1,4 @@ help: Monitor active source NAT translations events run: LESSOPEN=cat - echo Type control-C to quit - sudo /usr/sbin/conntrack -E -n -o xml 2>/dev/null | ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --pipe --type=source + echo Type control-C to quit + sudo /usr/sbin/conntrack --src-nat --event |