LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Defining an SSH source port ? (https://www.linuxquestions.org/questions/linux-newbie-8/defining-an-ssh-source-port-789230/)

uncle-c 02-15-2010 07:44 AM

Defining an SSH source port ?
 
Hi
When one connects to an SSH server running on a non-standard port ( i.e. not port 22) it is straightforward to alter the command syntax so you can connect to this port. Is it possible to define the source port from the local machine ? For example, can you define the source port on your local machine to be 12345 as opposed to another port chosen by your system ?

thanks
c

nuwen52 02-15-2010 08:04 AM

As far as I know, there is no way to do this. Are there any programs that can bind a specific source port? Now, I am curious.

hostmaster 02-15-2010 08:43 AM

Source ports are dynamically assigned by OS which can be tuned by setting kernel parameter net.ipv4.ip_local_port_range but that will take effect for all applications.


All times are GMT -5. The time now is 08:50 PM.