LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-26-2009, 04:33 AM   #1
the_ionic
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Rep: Reputation: 0
Dynamic Nat and timeout


Hi,
I was asking myself how are managed dynamic NAT timeout i.e how the duration of an association "private address+private port" <->public address/port is set.
I dont have a great knowledge about netfilter but after browsing Linux code, I have in mind that it has something to do with the conntrack mechanism but I do not understand.
Is it in /usr/src/linux/net/ipv4/netfilter/ip_conntrack_proto_tcp.c for example for TCP? And if it's the cas, how does it work?

I also see the struct nf_conn structure and particularly the timeout field but I dont see where this timeout is set.

Thanks for your answers,
Tanguy.
 
Old 11-26-2009, 09:54 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Not sure how its about the time out of nated connections but if your assumption is right maybe this links can help out

here you find various options for conntrack timeouts
/proc/sys/net/ipv4/netfilter

Mail which talks about conntrack timeouts

or maybe the conntrack command

Anything is better than nothing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VPNC seems to timeout quickly- how do I lengthen the timeout? spiffytech Linux - Software 30 10-05-2018 04:04 AM
IPsec VPN - Dynamic Server IP, NAT, etc. jantman Linux - Networking 3 01-16-2007 12:11 AM
can NAT makes certain websites timeout? danielw Linux - Networking 4 04-25-2005 06:45 AM
Susefirewall2 Nat Problem / nat 1:1 trubi Linux - Distributions 0 07-20-2004 05:50 AM
What's the difference between Linux-NAT and Sygate-NAT? yuzuohong Linux - Networking 0 08-07-2002 04:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration