1
0
mirror of /repos/dotTiddlywiki.git synced 2025-12-30 07:31:33 +01:00
dotTiddlywiki/mywiki/tiddlers/PortForwarding.tid
Aiko Mastboom 636925686f new
2019-05-13 21:54:41 +02:00

17 lines
406 B
Plaintext

created: 20180907160514426
creator: user
modified: 20180907161924988
modifier: user
tags:
title: PortForwarding
type: text/vnd.tiddlywiki
iptables
--------
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination 2.2.2.2:4443
iptables -t nat -A POSTROUTING -j MASQUERADE
443 is local to machine running iptables
4443 is destination machine port