Some weeks ago, I posted something like this on this list: This is the
way I do networking with several UMLs on one host.

hydra:~# iptables -t nat -L -n
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
DNAT       all  --  0.0.0.0/0            195.230.xxx.yyy    to:10.0.0.10

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
SNAT       all  --  10.0.0.10            0.0.0.0/0          to:195.230.xxx.yyy

where 10.0.0.10 is the IP inside the uml machine (tap0 on the host has 10.0.0.1)
and 195.230.xxx.yyy is the hosts second external IP. The disadvantage is,
that inside the uml machine you see a different IP than outside.  It
also works for several uml machines on the host (even talking to
each other) where everyone has its own external IP. You also can
access the host with its IP without any interferences from the umls...


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
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