tunnel local port expose code example
Example 1: port forwarding linux
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
# ENABLES IP FORWARDING TEMPORARILY
Example 2: ssh tunnel port
ssh -L 80:intra.example.com:80 gw.example.com
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
# ENABLES IP FORWARDING TEMPORARILY
ssh -L 80:intra.example.com:80 gw.example.com