mirror of
https://github.com/status-im/consul.git
synced 2025-02-22 18:38:19 +00:00
docs: Add missing &&
in DNS forwading tutorial (#21804)
Add missing `&&` to iptables command. The original commands fail when being directly pasted into a shell.
This commit is contained in:
parent
029ac10acc
commit
09735ec72f
@ -66,7 +66,7 @@ When using the Consul Docker image, add the following to the environment to allo
|
|||||||
To avoid running Consul as a privileged user, the following `iptables` commands are sufficient to map port `53` to `8600` and redirect DNS queries to Consul.
|
To avoid running Consul as a privileged user, the following `iptables` commands are sufficient to map port `53` to `8600` and redirect DNS queries to Consul.
|
||||||
|
|
||||||
```shell-session
|
```shell-session
|
||||||
# iptables --table nat --append OUTPUT --destination localhost --protocol udp --match udp --dport 53 --jump REDIRECT --to-ports 8600 \
|
# iptables --table nat --append OUTPUT --destination localhost --protocol udp --match udp --dport 53 --jump REDIRECT --to-ports 8600 && \
|
||||||
iptables --table nat --append OUTPUT --destination localhost --protocol tcp --match tcp --dport 53 --jump REDIRECT --to-ports 8600
|
iptables --table nat --append OUTPUT --destination localhost --protocol tcp --match tcp --dport 53 --jump REDIRECT --to-ports 8600
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user