Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Iptables nat
Results 1 to 2 of 2

Thread: Iptables nat

  1. #1

    Iptables nat

    Hi,

    I'm quite new to the command iptables (and linux home networking ) but the last couple of days I'm reading much about it. Now, I was reading http://www.linuxhomenetworking.com/w..._to_One_NAT.29 to configure a gateway using ip MASQUERADE.

    I think I do understand how it works when a package leaves the gateway: the source address is changed to the address of the gateway.

    Now, my question is: Imagine that you request a webpage on a local node (in the private network where there are e.g. 10 local nodes) a webpage on the (external) internet and the masquerading is applied, so the package will get the source address of the gateway. Now, the webserver of the webpage/website sends its reply back to the gateway; but now, when arriving at the gateway how does the gateway know to which local node (of the 10 nodes on the local network) it has to send the reply?

    Now, I actually do know something about NAT and I know that NAT uses translation tables that maps local addresses to ports. Is this what happens? Does MASQUERADE take care of this? Of am I completely wrong?

    Thank you,

    Glenn

  2. #2
    *Since I don't find the button to edit my thread, I post it as a reaction: maybe I was not clear about this (i see that a made a typo) but I mean that when you are on a local node, you request a webpage from a webserver on the internet (the external network).

Similar Threads

  1. iptables
    By digitalspy99 in forum Linux - General Topics
    Replies: 1
    Last Post: 08-05-2008, 03:42 AM
  2. Need help with iptables
    By Pioneo in forum Linux - Software, Applications & Programming
    Replies: 17
    Last Post: 04-28-2008, 01:33 AM
  3. GUI for iptables???
    By SwampDonkey in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 12-13-2002, 12:50 PM
  4. Where do iptables go?
    By flashingcurser in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 08-14-2002, 08:37 PM
  5. iptables
    By elovkoff in forum Security
    Replies: 9
    Last Post: 03-19-2002, 02:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •