IP Masquerade

tobin park (shinywind@hotmail.com)
Fri, 31 Aug 2001 01:34:05 +0000


Hello,
I want to insert the masquerade source in ip modules for studying network.
Let me know the simplest procedure(having no user interface)for masquerading
the ip address into the outer interface(nic). (192.168.1.0/24
->211.210.66.15/32)

---------------------------------------------------------------------------------
My procedure is
1. Hooked the ip_out procedure inserted my #ifdef sentence.
2. changed the socket buffer source address into the routing table source
address.
3. updated the ip header checksum
4.. echo "1">/proc/sys/net/ipv4/ip_forward
----------------------------------------------------------------------------------

Let me know the correct procedure for masquerading.(Not depends on the
existed mas
querading source)

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/