{"height":"190","provider_url":"https://hatena.blog","version":"1.0","width":"100%","author_name":"hogem","title":" netcat \u3067 port forward","image_url":null,"published":"2012-04-09 22:45:51","provider_name":"Hatena Blog","description":"\u5358\u7d14\u306bnc\u3092\u30d1\u30a4\u30d7\u3067\u5165\u51fa\u529b\u3092\u7e4b\u3052\u308b\u3068\u3001\u5165\u529b\u306fforward\u3055\u308c\u308b\u3051\u3069\u3001\u51fa\u529b\u306fclient\u306b\u8fd4\u3089\u305a\u306b\u3001nc\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u7aef\u672b\u306e\u6a19\u6e96\u51fa\u529b\u306b\u51fa\u3066\u3057\u307e\u3046\u3002 localhost\u306e8080\u306b\u304d\u305f\u3082\u306e\u3092192.168.0.1\u306e80\u306bforward $ nc -l 8080 | nc 192.168.0.1 80\u3053\u308c\u3067cilent\u304b\u3089nc 10.0.0.1 8080 \u3068\u63a5\u7d9a\u3059\u308b\u3068192.168.0.1:80 \u306bport forward\u3055\u308c\u308b\u3051\u3069\u3001\u51fa\u529b\u306fnc -l \u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u7aef\u672b\u306b\u51fa\u3066\u3057\u307e\u3046\u3002 \u540d\u524d\u4ed8\u304d\u30d1\u30a4\u30d7\u3067\u89e3\u6c7a $ mkfifo fifo $ nc -l 8080 < fifo | nc 192.168\u2026","author_url":"https://blog.hatena.ne.jp/hogem/","blog_url":"https://hogem.hatenablog.com/","blog_title":"\u3046\u307e\u3044\u307c\u3046\u3076\u308d\u3050","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhogem.hatenablog.com%2Fentry%2F20120409%2F1333979151\" title=\" netcat \u3067 port forward - \u3046\u307e\u3044\u307c\u3046\u3076\u308d\u3050\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["linux","network"],"url":"https://hogem.hatenablog.com/entry/20120409/1333979151"}