* IP gets lost during redirection
@ 2008-08-14 22:15 John Smith
2008-08-14 22:43 ` Billy Crook
2008-08-15 1:21 ` Grant Taylor
0 siblings, 2 replies; 3+ messages in thread
From: John Smith @ 2008-08-14 22:15 UTC (permalink / raw)
To: netfilter
Hi,
I got a server (first machine) which is reachable via the internet.
Depending on kind of Request (HTTP, FTP...) it redirects internally to a
different machine. This machine (second machine) is running apache2 for
example. Everthing works fine.
Yet the apache logs on the second machine always list the redirecting
machine (first machine) as the requesting adress/ip and not the ip adress
of the requesting client from the internet.
How can I fix this? I'm sorry to be so unspecific about the configuration
of iptables on the redirecting machine, but this is all I know about it.
However I can get more information if it is needed for the solution and
you can exactly say what you need.
Greets, John
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: IP gets lost during redirection
2008-08-14 22:15 IP gets lost during redirection John Smith
@ 2008-08-14 22:43 ` Billy Crook
2008-08-15 1:21 ` Grant Taylor
1 sibling, 0 replies; 3+ messages in thread
From: Billy Crook @ 2008-08-14 22:43 UTC (permalink / raw)
To: John Smith; +Cc: netfilter
How is the first machine "redirecting"?
The most simple solution is to configure the 'different machine's to
use the first machine as their default gateway, then use masquerading
on the first machine. If you can not use the first machine as the
default gateway of the 'different machine's then what you want is not
possible.
On Thu, Aug 14, 2008 at 17:15, John Smith <ml375mail-pof@yahoo.de> wrote:
> Hi,
>
> I got a server (first machine) which is reachable via the internet.
> Depending on kind of Request (HTTP, FTP...) it redirects internally to a
> different machine. This machine (second machine) is running apache2 for
> example. Everthing works fine.
> Yet the apache logs on the second machine always list the redirecting
> machine (first machine) as the requesting adress/ip and not the ip adress
> of the requesting client from the internet.
>
> How can I fix this? I'm sorry to be so unspecific about the configuration
> of iptables on the redirecting machine, but this is all I know about it.
> However I can get more information if it is needed for the solution and
> you can exactly say what you need.
>
> Greets, John
>
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: IP gets lost during redirection
2008-08-14 22:15 IP gets lost during redirection John Smith
2008-08-14 22:43 ` Billy Crook
@ 2008-08-15 1:21 ` Grant Taylor
1 sibling, 0 replies; 3+ messages in thread
From: Grant Taylor @ 2008-08-15 1:21 UTC (permalink / raw)
To: Mail List - Netfilter
On 8/14/2008 5:15 PM, John Smith wrote:
> I got a server (first machine) which is reachable via the internet.
> Depending on kind of Request (HTTP, FTP...) it redirects internally
> to a different machine. This machine (second machine) is running
> apache2 for example. Everthing works fine. Yet the apache logs on the
> second machine always list the redirecting machine (first machine) as
> the requesting adress/ip and not the ip adress of the requesting
> client from the internet.
Ok...
What happens if an internal client tries to connect to an ""external
service? I.e. the FTP server tries to HTTP to your ""external service?
Will the HTTP connection work? What source IP do you see in Apache's
logs then?
I'm wondering if the packets are being redirected (as in NATed) or if
they are being proxied in. If they are proxied in, you would naturally
see the internal source IP of the proxying host.
> How can I fix this? I'm sorry to be so unspecific about the
> configuration of iptables on the redirecting machine, but this is all
> I know about it. However I can get more information if it is needed
> for the solution and you can exactly say what you need.
It depends on what is really being done. Find out if IPTables really is
being used to do the ""redirecting on the first machine. If IPTables is
being used to do the ""redirecting (as opposed to just filtering for a
proxy) see what the contents of the NAT table is on the first system.
(The output of iptables-save would be great.)
Grant. . . .
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-15 1:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-14 22:15 IP gets lost during redirection John Smith
2008-08-14 22:43 ` Billy Crook
2008-08-15 1:21 ` Grant Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox