Dotaz na pridelovani portu v IP
    Michal Frič 
    Michal.Fric na i.cz
       
    Pondělí Listopad 13 10:52:24 CET 2000
    
    
  
"Ing. Pavel PaJaSoft Janousek" wrote:
> 
> pouzivam, ale co uz... Vysledoval jsem, ze implicitne se pri komunikaci
> client -> server na strane klienta (OS Linux krnl 2.2.17) pouzivaji
> porty 1023,1022... (nevim az kam)
> 
Defaultne je to do 4999, zrovna ted jsem to cetl :)
Podivejte se na http://securityportal.com/closet/closet20001101.html
--- cut here
Luckily, this is configurable in Linux. You can set it in the kernel:
/usr/src/linux/net/ipv4/tcp_ipv4.c
/*
 * This array holds the first and last local port number.
 * For high-usage systems, use sysctl to change this to
 * 32768-61000
 */
 int sysctl_local_port_range[2] = { 1024, 4999 };
 Or via the proc interface at any time (i.e. in the network startup
script):
 /proc/sys/net/ipv4/ip_local_port_range 
--- cut here
--
S Pozdravem
Michal Fric
    
    
Další informace o konferenci Linux