請問httptunnel架設 - Linux

By Joseph
at 2010-10-24T21:35
at 2010-10-24T21:35
Table of Contents
因為公司一直擋BBS, 所以我有考慮架一個httptunnel來用。
直接架什麼問題也沒有, 但是太危險了。httptunnel太簡單, 所以不太敢這樣搞...
我想了一個方法, 就是用inetd+tcpd+hts, 但是試一下, 是失敗的...
我的方法是這樣作:
1. 在Server(Revo)的inetd.conf中掛好
https stream tcp nowait root /usr/sbin/tcpd /usr/bin/hts -w -F
ptt.cc:443 443
2. 在Client下
htc -F 443 Revo:443
3. 用PCMan去連localhost:443, 但是不成功...
查了查syslog後...
Oct 24 20:59:35 Revo hts[19162]: forward_port = 443
Oct 24 20:59:35 Revo hts[19162]: forward_host = ptt.cc
Oct 24 20:59:35 Revo hts[19162]: content_length = 102400
Oct 24 20:59:35 Revo hts[19162]: strict_content_length = 0
Oct 24 20:59:35 Revo hts[19162]: use_std = 0
Oct 24 20:59:35 Revo hts[19162]: debug_level = 0
Oct 24 20:59:35 Revo hts[19162]: pid_filename = (null)
Oct 24 20:59:35 Revo hts[19162]: tunnel_new_server: server_socket (443) = -1
Oct 24 20:59:35 Revo hts[19162]: couldn't create tunnel
Oct 24 20:59:35 Revo hts[19162]: exit with status = 1
hts沒辦法Bind住443(看來是被inetd佔住的關係)
那麼, 我想請問一下有沒有其它的辦法可以管制httptunnel 不要被網路上的阿貓阿狗亂連
呢?
如果是直接用httptunnel重導到ssh port, 再用ssh tunneling會不會安全一點呀??但是這
樣就變成ssh要直接承受網路那頭的踹密碼大隊的攻擊了...
真是兩難, 有沒有大大可以幫忙想個好方法呢?
--
裸になって
何が悪い?
--
直接架什麼問題也沒有, 但是太危險了。httptunnel太簡單, 所以不太敢這樣搞...
我想了一個方法, 就是用inetd+tcpd+hts, 但是試一下, 是失敗的...
我的方法是這樣作:
1. 在Server(Revo)的inetd.conf中掛好
https stream tcp nowait root /usr/sbin/tcpd /usr/bin/hts -w -F
ptt.cc:443 443
2. 在Client下
htc -F 443 Revo:443
3. 用PCMan去連localhost:443, 但是不成功...
查了查syslog後...
Oct 24 20:59:35 Revo hts[19162]: forward_port = 443
Oct 24 20:59:35 Revo hts[19162]: forward_host = ptt.cc
Oct 24 20:59:35 Revo hts[19162]: content_length = 102400
Oct 24 20:59:35 Revo hts[19162]: strict_content_length = 0
Oct 24 20:59:35 Revo hts[19162]: use_std = 0
Oct 24 20:59:35 Revo hts[19162]: debug_level = 0
Oct 24 20:59:35 Revo hts[19162]: pid_filename = (null)
Oct 24 20:59:35 Revo hts[19162]: tunnel_new_server: server_socket (443) = -1
Oct 24 20:59:35 Revo hts[19162]: couldn't create tunnel
Oct 24 20:59:35 Revo hts[19162]: exit with status = 1
hts沒辦法Bind住443(看來是被inetd佔住的關係)
那麼, 我想請問一下有沒有其它的辦法可以管制httptunnel 不要被網路上的阿貓阿狗亂連
呢?
如果是直接用httptunnel重導到ssh port, 再用ssh tunneling會不會安全一點呀??但是這
樣就變成ssh要直接承受網路那頭的踹密碼大隊的攻擊了...
真是兩難, 有沒有大大可以幫忙想個好方法呢?
--
裸になって
何が悪い?
--
Tags:
Linux
All Comments

By Franklin
at 2010-10-25T15:02
at 2010-10-25T15:02

By Brianna
at 2010-10-29T04:45
at 2010-10-29T04:45

By Wallis
at 2010-10-30T19:33
at 2010-10-30T19:33

By Barb Cronin
at 2010-10-30T23:50
at 2010-10-30T23:50
Related Posts
hp-mpi 平行化運算

By Madame
at 2010-10-24T16:31
at 2010-10-24T16:31
請問版友有關CUPS系統

By Jessica
at 2010-10-24T13:03
at 2010-10-24T13:03
關於Chrome內建的Flash問題

By Quanna
at 2010-10-24T12:51
at 2010-10-24T12:51
Pidgin 無法使用 shift 切換英文

By Hamiltion
at 2010-10-24T11:30
at 2010-10-24T11:30
man變成繁體中文...

By William
at 2010-10-23T22:33
at 2010-10-23T22:33