ssh proxy linux pada linuxmint
ssh proxy linux . disini saya akan melakukan proxy lewat koneksi ssh. dengan begini kita mengakses internet seolah-olah server ssh yang mengakses. ssh proxy linux menggunakan dua aplikasi shell. satu aplikasi yang berjalan di server disebut ssh server. dan juga aplikasi yang berjalan di pc klien disebut ssh client.
perintahnya pada terminal
sudo ssh -D localhost:88 user@server.net
peritah -D dari man ssh adalah
Specifies a local “dynamic” application-level port forwarding. This works by allocating a socket to listen to port on the local side, optionally bound to the specified bind_address. Whenever a connection is made to this port, the connection is forwarded over the secure channel, and the application protocol is then used to deter-mine where to connect to from the remote machine. Currently the SOCKS4 and SOCKS5 protocols are supported, and ssh will act as a SOCKS server. Only root can forward privileged ports. Dynamic port forwardings can also be specified in the configuration file.
menurut pengertian saya yang cuma sedikit adalah digunakan untuk membuat socket pada ip dan port yang ditetntukan. jika koneksi terjadi maka koneksi akan di teruskan ke server ssh.
dengan perintah diatas akan membuat 1 koneksi sock proxy dengan alamat localhost port 88
selanjutnya seting browset untuk menggunakan proxy tersebut.
untuk melkukan ssh proxy diatas ssh proxy.
sudo ssh -o ProxyCommand=’nc -x localhost:88 %h %p’ user@otherserver.net -D locakhost:77
ini akan membuat sock proxy di port 77 melalui sock proxy port 88.
untuk seting proxy pada google chrome
google-chrome –proxy-server=”socks://localhost:88″
Recent Comments