December 17, 2017, 07:37:09 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Address Transalation  (Read 2792 times)

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Address Transalation
« on: January 11, 2005, 03:51:23 AM »
HI Linux grp
When a webserver responds  to a clients request  through a proxy server , how does ithe destinition-address gets translated into clients real Ip- address at the proxy server.

bye
Gaurav

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Address Transalation
« Reply #1 on: January 11, 2005, 12:03:54 PM »
well .. no address i translated.. adress translation only takes place in NAT or routing.

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Address Transalation
« Reply #2 on: January 12, 2005, 09:07:54 AM »
ya i know its with NAT
but how?
can u explain

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Address Transalation
« Reply #3 on: January 12, 2005, 09:14:51 AM »
hi ricky,
i know proxy server with NAT always add its  ip-address to the client packet , so that the outside users thinks that the packet is of proxy server only(this is through NAT )  but can u tell the reverse process i.e when client gets the packet from the webserver through the Proxy server, then how its destionition IP ADDRESS gets subtituted?
that is my question, i hope now its clear
tell me if u know this process, otherwise i will try from other sources

gaurav

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Address Transalation
« Reply #4 on: January 12, 2005, 10:40:33 AM »
well.. last time i was in hurry..
The NAT and proxy are totally different.. here you are saying NAT proxy ! there is nothing like that..
You may be thinking about Transparent proxy..
But first you see how proxy server work !!

Well in case of proxy server... it acts as webserver for your clients.. your clients ask him for data and in return he ask the internet.

in case of NAT.. your client sends the request , then its ip address are changed only .. ie header info with the address of gateway so that it came back to your computer ie gateway, then again get changed to client's address and reaches there..

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Address Transalation
« Reply #5 on: January 12, 2005, 10:57:15 AM »
ya i know u can't understand my problem,
NAT forwarding we do with iptables command using NAT
like
iptables -t NAT........
but in reverse how gateway changed to clients address?

You were saying that when it come back to your computer i.e gateway, then again get changed to client's address & reaches there but how ?
this is my question,? tell me how this happens

Tell me if u know ?
gaurav