-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Enable port forwarding using something like the following:
iptables -A PREROUTING -t nat -p tcp --dport 4567 -j DNAT --to-destination 10.3.0.2:80
iptables -A OUTPUT -t nat -p tcp -o lo --dport 4567 -j DNAT --to-destination 10.3.0.2:80
iptables -A POSTROUTING -t nat -p tcp -d 10.3.0.2 --dport 80 -j SNAT --to-source 10.3.0.1
iptables -p tcp -t filter -A FORWARD -d 10.3.0.2 --dport 80 -j ACCEPT
iptables -p tcp -t filter -A FORWARD -s 10.3.0.2 --sport 80 -j ACCEPTMetadata
Metadata
Assignees
Labels
No labels