99 reputation
6
bio website
location
age
visits member for 1 year, 10 months
seen Nov 5 at 21:06

Jul
5
answered https www not able to redirect to non-www https nginx
Feb
24
awarded  Scholar
Feb
24
accepted How long do Nat mappings live for?
Feb
24
awarded  Commentator
Feb
24
comment How long do Nat mappings live for?
Yes it's nf_conntrack_tcp_timeout_unacknowledged causing the 300, even though there are ACKs every two packets, and the rate of data exchange is quite regular, every 10-15 seconds, so not sure why it's doing that. I proved it by changing it to 600. I did find a mailing list entry and a patch, but that was submitted in or prior to 2.6.31 and my kernel is 2.6.32. Odd, but I can at least explain this behaviour. The whole reason for asking this is I have a system and a user where a "keep alive" packet is sent every 7 minutes but the connection is dropping off despite this.
Feb
24
comment How long do Nat mappings live for?
Thank You. It's all nf_conntrack on my router but pointed me in the right direction. My router actually has nf_conntrack_tcp_timeout_established set to 1800. However, some connections start at 1800, and on each packet reset to 1800, however some, after a while, seem to go into a 300 second cycle - they're still ESTABLISHED, they're still TCP, nothing changes. A similar question I found on google here forum.openwrt.org/viewtopic.php?id=32494 . Do you have any idea why this is?
Feb
24
awarded  Supporter
Feb
24
awarded  Student
Feb
23
comment How long do Nat mappings live for?
That's why I said perhaps if I altered my question. However, my question has nothing to do with how NAT decides whether to rewrite the source port, just that it does and how long typically that table entry would last. And I know I might be asking how long's a piece of string, but typical examples would be helpful. You're assuming in your comment a NAT implementation doesn't always rewrite src port , which is a false assumption to make.
Feb
23
comment How long do Nat mappings live for?
Perhaps if I altered my question, so both machines made two simultaneous connections to the same IP and port, that would clear up why it cannot happen? When a packet came into the gateway from the remote server, how would it know which 192.168.1/24 to switch it to?
Feb
23
revised How long do Nat mappings live for?
added 31 characters in body; edited title
Feb
23
asked How long do Nat mappings live for?
Feb
22
comment nginx make root of domain go to subfolder
You need to add location blocks for PHP in there too then, e.g. /exception/.*\.php and so on
Feb
21
comment nginx make root of domain go to subfolder
Your current blocks do not reflect mine. You're still using try_files and sending it into an infinite loop. My edited answer works fine on my setup.
Feb
20
awarded  Editor
Feb
20
revised nginx make root of domain go to subfolder
added 724 characters in body
Feb
20
comment nginx make root of domain go to subfolder
You have infinite loops. I am not sure what you are trying to achieve any more, where should /app go exactly, /curr/app or just /app ?
Feb
19
comment nginx make root of domain go to subfolder
Yes, exact match. the /js/something.js shouldn't be written, you might want a location block for everything else though with your directives in there.
Feb
18
comment nginx make root of domain go to subfolder
Sorry it should have been location = / { rewrite ^ /curr/ last; }
Feb
17
answered nginx make root of domain go to subfolder