0

I am behind a corporate firewall, which simply drops (swallows) all ip-traffic to unknown ip-addresses.

It takes a lot of time for Linux (Ubuntu 13.10) to abort my erroneous connection-attempts, causing quite a few applications to hang.

Which setting do I have to change to get shorter timeouts for dropped connection attempts? I assume this is done in in /proc/sys/net/ipv4?

I am using IP4. To give an indication about the current timeout I tried

$ time wget -t1 212.123.12.153
--2014-03-14 12:40:42--  http://212.123.12.153/
Connecting to 212.123.12.153:80... failed: 

Giving up.


real    2m8.637s
user    0m0.003s
sys     0m0.003s
mirk
  • 113
  • 1
  • 5

1 Answers1

0

Dropping the number of retries from the default 6 to 1 does the trick. This method has obvious drawbacks though.

The parameter can be set with the command below, run as superuser.

echo 1 >  /proc/sys/net/ipv4/tcp_syn_retries
mirk
  • 113
  • 1
  • 5