Article View: uk.comp.os.linux
Article #183Re: Q Ip-forwarding diff from IP Masquerading, was Re: Sniffit for Linux 2.0.27
From: Mark Baker
Date: Sat, 01 Nov 1997 00:00
Date: Sat, 01 Nov 1997 00:00
33 lines
2256 bytes
2256 bytes
In article <63f39l$pv$1@canada.lmrln.demon.co.uk>, pbs@canada.lmrln.demon.co.uk (Philip Shearer) writes: > I thought that Ip-forwarding and Masquerading were two different concepts > with Ip-forwarding the packets from the w95 machines will be sent onto > the Internet with the original IP address of the w95 machines. Normally, yes. > With IP Masquerading (using say socks5) then the addresses of the > original machines will be hidden/translated by the socks5 software so > that all packets appear on the internet side to be from the single legal > IP address on the Linux box running socks5. socks requires clients to be compiled to understand socks proxies. Linux supports IP masquerading in the kernel, where packet headers are rewritten in both directions so the machines behind the firewall don't know they're not really on the internet. > Please could someone explain if I am wrong about how IP-forwarding works, > or confirm what I say if I am correct. "Forwarding" is a very general term, and so masquerading could be seen as a type of forwarding, but I agree that if I heard someone talking about forwarding without qualifying it, I would assume they meant passing the packets on unmodified. To get IP masquerading on linux, you have to also turn on IP forwarding, as without that on it will simply ignore all packets that aren't for it. With the growth of home ethernets, and without any ISPs offering routed dialups for sensible (for home use) money, probably the majority of people using the linux IP forwarding option are in fact doing masquerading.
Technical Details
Message-ID:
<63f889$eji$1@aziraphale.pet.cam.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<345ae73f.8751720@news.direct.ca> <63f39l$pv$1@canada.lmrln.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d8ad,27589d84c46fa5ed X-Google-Attributes: gid10d8ad,public X-Google-Thread: 108f6a,27589d84c46fa5ed X-Google-Attributes: gid108f6a,public From: mbaker@iee.org (Mark Baker) Subject: Re: Q Ip-forwarding diff from IP Masquerading, was Re: Sniffit for Linux 2.0.27 Date: 1997/11/01 Message-ID: <63f889$eji$1@aziraphale.pet.cam.ac.uk> X-Deja-AN: 286412187 Sender: mnb20@aziraphale.pet.cam.ac.uk References: <345ae73f.8751720@news.direct.ca> <63f39l$pv$1@canada.lmrln.demon.co.uk> Organization: University of Cambridge, England Newsgroups: uk.comp.os.linux,demon.ip.support.unix