Jeff Dike <[EMAIL PROTECTED]> wrote: On Mon, Oct 01, 2007 at 07:57:22PM +0100,
Jay Shah wrote:
> is there any way you can change the source IP of the
> outgoing packets, for example:
>
> Host Machine: 1.1.1.1
> UML: 1.1.1.2
>
> If I connect to 1.1.1.2:80, httpd (on the UML system) will serve my
> requests as normal. If I write a script (for example), to connect to a
> IP display service (say whatismyip dot org), it will see my IP as
> 1.1.1.1. Is there any way I can have it show 1.1.1.2
I think the basic problem is that something is masquerading you. If
that's not necessary, then turn it off. The natural state of affairs
is for the UML IP address to be visible to the outside world.
Jeff
--
Work email - jdike at linux dot intel dot com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Jay:
It sounds like your host machine is already changing the source IP address of
packets going from the UML to the outside world, most likely through an
iptables masquerading rule, as Jeff pointed out.
How is the host machine connected to the internet? Does it go through a
router that does NAT or does it own a public IP address?
How did you arrange for the UML to get packets to the outside world? Does
the host forward the packets or did you bridge tap0 to eth0 on the host
directly?
It won't do you any good to get rid of the masquerading rule on the host if
you don't have another public IP address to assign to the UML.
Chris Marshall
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user