summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-01-05 11:18:16 +0200
committerGitHub <noreply@github.com>2024-01-05 11:18:16 +0200
commit09dea9fc44dc19181ce24cec42b49f19a4605a3e (patch)
tree994eeb7b4d05c51abb0850475190fc6eb04e0670 /src
parent4f34e19e062e1609a48b62311c51cdf1b5acc084 (diff)
parent76109e22d03a18286fc5d4b2b5ed879030f9222c (diff)
downloadvyos-1x-09dea9fc44dc19181ce24cec42b49f19a4605a3e.tar.gz
vyos-1x-09dea9fc44dc19181ce24cec42b49f19a4605a3e.zip
Merge pull request #2755 from vyos/mergify/bp/sagitta/pr-2694
T5169: nat: add option to map network and ports. (backport #2694)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/nat.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/conf_mode/nat.py b/src/conf_mode/nat.py
index 7ab4c8648..ffd4a33e7 100755
--- a/src/conf_mode/nat.py
+++ b/src/conf_mode/nat.py
@@ -78,11 +78,6 @@ def verify_rule(config, err_msg, groups_dict):
raise ConfigError(f'{err_msg} ports can only be specified when '\
'protocol is either tcp, udp or tcp_udp!')
- if is_ip_network(dict_search('translation.address', config)):
- raise ConfigError(f'{err_msg} cannot use ports with an IPv4 network as '\
- 'translation address as it statically maps a whole network '\
- 'of addresses onto another network of addresses!')
-
for side in ['destination', 'source']:
if side in config:
side_conf = config[side]