diff options
author | Nicolás Fort <95703796+nicolas-fort@users.noreply.github.com> | 2024-01-04 12:49:39 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 15:49:39 +0000 |
commit | 3fc76505d0642c32a3eae9c0ce6ab3dd2ec32dbd (patch) | |
tree | 2b99041737bab239bb97f878213b51c281d74eb1 /src/conf_mode/nat.py | |
parent | 1043859f6f87ed64c88c2cd15d4b24a881e89eb1 (diff) | |
download | vyos-1x-3fc76505d0642c32a3eae9c0ce6ab3dd2ec32dbd.tar.gz vyos-1x-3fc76505d0642c32a3eae9c0ce6ab3dd2ec32dbd.zip |
T5159: nat: add option to map network and ports. Feature used for large deployments in cgnat. (#2694)
Diffstat (limited to 'src/conf_mode/nat.py')
-rwxr-xr-x | src/conf_mode/nat.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/conf_mode/nat.py b/src/conf_mode/nat.py index 20570da62..bd9b5162c 100755 --- a/src/conf_mode/nat.py +++ b/src/conf_mode/nat.py @@ -83,11 +83,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] |