projects
/
web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
954f1bd
)
prettify iptables rules
author
Ralf Jung
<post@ralfj.de>
Sat, 16 Jun 2018 20:13:21 +0000
(22:13 +0200)
committer
Ralf Jung
<post@ralfj.de>
Sat, 16 Jun 2018 20:13:21 +0000
(22:13 +0200)
personal/_posts/2018-05-28-cloudless-contact-sync.md
patch
|
blob
|
history
diff --git
a/personal/_posts/2018-05-28-cloudless-contact-sync.md
b/personal/_posts/2018-05-28-cloudless-contact-sync.md
index 9b3e1907d858b70147bc5ed215148957eda53aa8..baced47d984567ecbeeb0d6d4d8fc7307670bd7e 100644
(file)
--- a/
personal/_posts/2018-05-28-cloudless-contact-sync.md
+++ b/
personal/_posts/2018-05-28-cloudless-contact-sync.md
@@
-50,10
+50,10
@@
table nat {
```
The plain iptables equivalent is
```
```
The plain iptables equivalent is
```
--A PREROUTING -d $IP
/32
-p tcp -m tcp --dport 80 -j DNAT --to-destination $IP:8053
--A PREROUTING -d $IP
/32
-p tcp -m tcp --dport 443 -j DNAT --to-destination $IP:44353
--A OUTPUT -d $IP
/32
-p tcp -m tcp --dport 80 -j DNAT --to-destination $IP:8053
--A OUTPUT -d $IP
/32
-p tcp -m tcp --dport 443 -j DNAT --to-destination $IP:44353
+-A PREROUTING -d $IP -p tcp -m tcp --dport 80 -j DNAT --to-destination $IP:8053
+-A PREROUTING -d $IP -p tcp -m tcp --dport 443 -j DNAT --to-destination $IP:44353
+-A OUTPUT -d $IP -p tcp -m tcp --dport 80 -j DNAT --to-destination $IP:8053
+-A OUTPUT -d $IP -p tcp -m tcp --dport 443 -j DNAT --to-destination $IP:44353
```
Next, we have to configure the SSH daemon to permit reverse port forwarding to be configured by the client.
```
Next, we have to configure the SSH daemon to permit reverse port forwarding to be configured by the client.