Hi,

I've managed to setup "tap0" and get it configured with UML, which is
all great. UML has an external IP address, which is fine for inbound
connections, but, 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, which may or may
not be possible, or another, say 1.1.1.3. I just want a way that I can
distinguish between outbound UML connections. I have tried IPTables on
the hosting machine:

iptables -t nat -A POSTROUTING -o tap0 -j SNAT --to 1.1.1.2
 -or -
iptables -t nat -A POSTROUTING -o tap0 -j SNAT --to 1.1.1.3

... but no luck.

I appreciate any advice given to me.

Many Thanks In Advance,

Jay

-------------------------------------------------------------------------
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

Reply via email to