Skip to content

Enabled port forwarding #34

@mscatdk

Description

@mscatdk

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 ACCEPT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions