---
title: 'firewall:portipredirection'
url: 'https://docs.danami.com/juggernaut/command-line-interface/firewall/firewall-portipredirection'
markdown: 'https://docs.danami.com/juggernaut/command-line-interface/firewall/firewall-portipredirection.md'
date: '2026-10-07'
description: 'A list of port and/or IP address assignments to direct traffic to alternative ports/IP addresses. juggernaut --task=firewall:portipredirection --oper=<redirection_add|redirection_del> Option Value Description --oper <string> The operation you want to perform. Operations: redirection…'
taxonomy:
  category:
    - docs
  tag:
    - csf
---

[](#)  [ Basics ](https://docs.danami.com/juggernaut/)     [ Command Line Interface ](https://docs.danami.com/juggernaut/command-line-interface)      Firewall       firewall:portipredirection    

# firewall:portipredirection

A list of port and/or IP address assignments to direct traffic to alternative ports/IP addresses.

```
juggernaut --task=firewall:portipredirection --oper=<redirection_add|redirection_del>
```

| Option | Value | Description |
|---|---|---|
| `--oper` | <string> | The operation you want to perform. Operations: redirection\_add, redirection\_del |
| `--value` | <string> | The value you want to add or delete. DNAT - To IPx redirects to IPy - IPx\|*\|IPy\|*\|tcp/udp, DNAT - To IPx to portA redirects to IPy portB - IPx\|portA\|IPy\|portB\|tcp/udp, REDIRECT - To IPx to portA redirects to portB - IPx\|portA\|*\|portB\|tcp/udp, REDIRECT - To portA redirects to portB -* \|portA\|\*\|portB\|tcp/udp |
| `--restart` | <yes> | Restart the service after saving settings. |

## Examples

```
// Add an entry
juggernaut --task=firewall:portipredirection --oper=redirection_add --value='192.168.254.62|*|10.0.0.1|*|tcp' --restart=yes

// Remove an entry
juggernaut --task=firewall:portipredirection --oper=redirection_del --value='192.168.254.62|*|10.0.0.1|*|tcp' --restart=yes

// redirect incoming web traffic from port 80 to 8080
juggernaut --task=firewall:portipredirection --oper=redirection_add --value='*|80|*|8080|tcp' --restart=yes
```

## Related Pages

- [Watching IP Addresses](https://docs.danami.com/juggernaut/user-guide/watching-ip-addresses "Watching IP Addresses")
- [External Pre and Post Scripts](https://docs.danami.com/juggernaut/user-guide/external-pre-and-post-scripts "External Pre and Post Scripts")
- [Firewall](https://docs.danami.com/juggernaut/user-guide/firewall "Firewall")
- [Port / IP Redirection](https://docs.danami.com/juggernaut/user-guide/port-ip-redirection "Port / IP Redirection")
- [Disable Server IP Addresses](https://docs.danami.com/juggernaut/user-guide/disable-server-ip-addresses "Disable Server IP Addresses")

 [ ](https://docs.danami.com/juggernaut/command-line-interface/firewall/firewall-general) [](https://docs.danami.com/juggernaut/command-line-interface/other/other-binarylocations)

---

## Navigation

- Previous: [firewall:portflood](https://docs.danami.com/juggernaut/command-line-interface/firewall/firewall-portflood.md)
- Next: [firewall:portknocking](https://docs.danami.com/juggernaut/command-line-interface/firewall/firewall-portknocking.md)
