/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! */
On Sun, 05 Mar 2000, noorazlind yahaya wrote:
> i had try ipmasq on my redhat 6.1 and it work perfectly . but what i want to
> know how it works. What i heard , ipmasq work by masq one external ip to
> many internal ip .. but how this happen. Are they also changing port number
> ?... so one to many mapping can be done. if masq changing port number which
> range is used for external and which range is for internal. i have read
> howto but i can't an explanation about how it works there. if ipmasq aslo
> changing port number .. are there a file or whatever i can look the mapping
> prosess...
It changes ports as well. The forwarding table is kept in kernel memory on
the ipmasq gateway. You can get to it by catting /proc/net/ip_masquerade,
however the output of 'netstat -M' will probablly be a lot more
understandable. If you have a slow connection and don't want netstat to do
all the nslookups, you can use 'netstat -Mn' to have it give you the IPs
instead of hostnames. (it'll also give your port numbers instead of the
/etc/services equivilants) There is a range it uses for the modified ports,
but I don't remember it off my head. I think it might be mentioned in the
archives somewhere. As for internal port ranges, I don't think there is one.
It acts like a router in that regard so it would act just like your machine is
trying to use your ISP's router to send information out.
Jag
--
Who wills,
Can.
Who tries,
Does.
Who loves,
Lives.
--Anne McCaffery
[demime 0.97b removed an attachment of type application/pgp-signature]
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- THIS INCLUDES
UNSUBSCRIBING!
or email to [EMAIL PROTECTED]
PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.