LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-08-2011, 04:43 PM   #16
vampman
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled

Thank you to kbp (for the knowledge of tools I wasn't aware of) and lithos (for pointing out the pattern that I was missing that leads to my following theory).
Here is a theory. Not sure how to address it and not sure I'm dead-on yet, but here goes:


Workstation in my LAN builds a packet for upload. It is encoded with the address 172.16.1.1
It gets sent to router2, which proceeds to masq it with the IP of 192.168.0.2
It gets sent to router1, which proceeds to masq it with the IP of 64.126.162.234
The packet gets sent to the upload server.
The packet is dismantled for review on the upload server.
The 'dismantler' (for lack of another term) digs through the envelopes to the underlying data
It then wants to respond to the send, but instead of going back out to the outer envelope to find the data it needs, it looks at the inner most envelope before the data (which would be the 192.168.0.2 address).
Since the upload server, residing behind a firewall, is in fact, in the 192.168.0.0 network, it decides it must have received the packet from a computer within its network and sends the response out to the local subnet.

Part of my reasoning for this is that I have tested from two other subnets behind router1 that would not have put the 192.168.0.0 envelope on the packet and they are both successful.
If this is infact a true theory, then what would I look to for fixing this? Would it be a misconfig of Apache? Routing on the upload server? Malformed envelope from router2?
 
Old 12-08-2011, 06:03 PM   #17
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
No, the thing about NAT is that it should be transparent, there are certain protocols like ipsec that do have the client ip embedded within the data section so the server needs to know that NAT traversal has taken place. The envelope analogy isn't valid in this case, with NAT the original source ip in the packet header is overwritten with an external address and an entry is recorded in the translation table to allow return packets to be sent to the correct host.

Quote:
64.126.162.234 - - [08/Dec/2011:12:04:28 -0500] "POST /liquid-hash/wp-admin/async-upload.php HTTP/1.1" 200 308
192.168.227.57 - - [08/Dec/2011:12:04:44 -0500] "GET / HTTP/1.1" 302 -
192.168.227.57 - - [08/Dec/2011:12:04:44 -0500] "GET / HTTP/1.1" 200 23110
Sorry, just noticed the client ip's in the log file, you shouldn't be seeing any 192.168.x.x addresses in the web server logs. Is the web server behind a firewall/router/NAT ?
 
Old 12-09-2011, 12:43 AM   #18
vampman
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
I'm told it is behind a "Cisco firewall". I had another reason why my theory was invalid. I would be getting 100% failure rate rather than only on files over 250k. I'm exploring the idea that it is firmware related, but again why the hit-and-miss failures? Are there any settings in RHEL5 or iptables that would hinder large file transfer. I looked at large send offload but my netXtreme cards don't seen to be able to configure it.

Last edited by vampman; 12-09-2011 at 04:26 PM.
 
  


Reply



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
how to monitor a router traffic? iaaaguru Linux - Networking 5 01-22-2010 08:31 AM
Allowing asymmetric traffic through 'router' geustace Linux - Networking 3 12-22-2009 02:23 PM
I want to configure RHEL5 as a router using two NICs vijay.gulge Linux - Networking 3 04-10-2008 08:50 AM
Block outgoing traffic through router? Micro420 Linux - Networking 3 03-15-2005 07:01 AM
monitor router traffic hotrodowner Linux - Networking 4 03-19-2003 05:39 PM

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

All times are GMT -5. The time now is 10:12 PM.

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