Re: Redirecting external IP/Port from localhost to an ssh tunnel on localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gaetan Lord a écrit :
> 
> From my computer, I have an application trying to reach a external
> host/IP but I would like to redirect all the packets to a local port.

For example :
iptables -t nat -A OUTPUT -d $ORIGINAL_IP -p tcp --dport $ORIGINAL_PORT
-j DNAT --to $LOCAL_IP:$LOCAL_PORT
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux