سلام
همونوطور كه مي دونيد مثلا با پورت ssh 22
ميشه به لينوكس تونل زد و از اينترنت لينوكس استفاده كرد
حالا من يه سوال داشتم چطور مي تونم مثلا پورت 137 رو باز كنم و از طريق اين پورت تونل بزنم به لينوكس
مرسي
سلام دوست عزیز .
برای این کار :
sudo ssh -L 3125:localhost:1775 royaflash@servername
رو میزنیم . در اینجا با پورت 3125 میتونیم به پورت 1775 تونل بزنیم .
موفق و لینوکسی باشید .
-L [bind_address:]port:host:hostport
Specifies that the given port on the local (client) host is to be forwarded to the given host and port on
the remote side. 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 a connection is made to host port hostport from the remote machine. Port forward‐
ings can also be specified in the configuration file. IPv6 addresses can be specified with an alternative
syntax: [bind_address/]port/host/hostport or by enclosing the address in square brackets. Only the supe‐
ruser can forward privileged ports. By default, the local port is bound in accordance with the GatewayPorts
setting. However, an explicit bind_address may be used to bind the connection to a specific address. The
bind_address of “localhost” indicates that the listening port be bound for local use only, while an empty
address or ‘*’ indicates that the port should be available from all interfaces.
سلام
همونوطور كه مي دونيد مثلا با پورت ssh 22
ميشه به لينوكس تونل زد و از اينترنت لينوكس استفاده كرد
حالا من يه سوال داشتم چطور مي تونم مثلا پورت 137 رو باز كنم و از طريق اين پورت تونل بزنم به لينوكس
مرسي
سلام دوست عزیز .
برای این کار :
sudo ssh -L 3125:localhost:1775 royaflash@servername
رو میزنیم . در اینجا با پورت 3125 میتونیم به پورت 1775 تونل بزنیم .
موفق و لینوکسی باشید .
-L [bind_address:]port:host:hostport
Specifies that the given port on the local (client) host is to be forwarded to the given host and port on
the remote side. 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 a connection is made to host port hostport from the remote machine. Port forward‐
ings can also be specified in the configuration file. IPv6 addresses can be specified with an alternative
syntax: [bind_address/]port/host/hostport or by enclosing the address in square brackets. Only the supe‐
ruser can forward privileged ports. By default, the local port is bound in accordance with the GatewayPorts
setting. However, an explicit bind_address may be used to bind the connection to a specific address. The
bind_address of “localhost” indicates that the listening port be bound for local use only, while an empty
address or ‘*’ indicates that the port should be available from all interfaces.
دوست عزیز میشه توضیح بدید چطور این کارو میکنید شما بر اساس سوال دوستمون؟
ایشون شرایطشون فرق داره فقط و فقط به پورت ۱۳۷ دسترسی دارن یعنی کل اینترنت ایشون drop شده و فقط یک پورت باز دارن
حالا سرویس ssh که روی 22 کار میکنه چطوری شما این عملیات رو انجام میدید؟