[pve-devel] qemu nat mode and rate limiting ?

Alexandre DERUMIER aderumier at odiso.com
Tue Mar 5 09:31:33 CET 2013


Is it this setup ?: http://www.linux-kvm.org/page/Networking

"
iptables/routing
-----------------

Hostside: Allow IPv4 forwarding and add route to client (could be put in a script - route has to be added after the client has started):

sysctl -w net.ipv4.ip_forward=1                 # allow forwarding of IPv4
route add -host <ip-of-client> dev <tap-device> # add route to the client

Clientside: Default GW of the client is of course then the host (<ip-of-host> has to be in same subnet as <ip-of-client> ...):

route add default gw <ip-of-host>
"



Because I don't see ip address on tap, but only a route




----- Mail original ----- 

De: "Alexandre DERUMIER" <aderumier at odiso.com> 
À: "Dietmar Maurer" <dietmar at proxmox.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mardi 5 Mars 2013 09:19:42 
Objet: Re: [pve-devel] qemu nat mode and rate limiting ? 

>>That is not related to iptables. We just need to create a tap device, and assign an IP address 
>>to it (and maybe run a dhcp server for the tap device). 

How do is work exactly ? 


----------- ---------- 
| GUEST | | HOST | 
| ip |--->| TAP IP |---> outside world ? 
----------- ---------- 


----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mardi 5 Mars 2013 09:08:00 
Objet: RE: [pve-devel] qemu nat mode and rate limiting ? 

> >>Btw, someone wants to works on that (routed network mode)? 
> Not me , sorry, I'm not a big expert with iptables 

That is not related to iptables. We just need to create a tap device, and assign an IP address 
to it (and maybe run a dhcp server for the tap device). 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list