Thanks, Jan. I split my patch into three and started a new thread. I also put all options in -net user. Yes, TCP firewall is coming. You'll see some of the added functions will be shared.
Dai On Tue, Apr 12, 2011 at 9:38 AM, Jan Kiszka <jan.kis...@siemens.com> wrote: > On 2011-04-12 18:19, Daisuke Nojiri wrote: > > This patch adds: -drop-udp, -allow-udp ADDR:PORT, -drop-log FILE > > > > e.g.) $ qemu -net user -drop-log qemu.drop -drop-udp -allow-udp > > 10.0.2.3:53 > > No more stand-alone slirp arguments please. That syntax breaks when > instantiating >1 back-ends. > > > > > -drop-udp enables usermode firewall for out-going UDP packats from a > guest. > > All UDP packets except ones allowed by -allow-udp will be dropped. > Dropped > > packets are logged in the file specified by FILE. PORT can be a single > > number > > (e.g. 53) or a range (e.g. [80-81]). If ADDR is ommitted, all addresses > > match > > the rule. > > Will we see a TCP firewall as well? Can we prepare for a more generic > infrastructure, or what makes UDP special? > > Also, please break up in smaller bits (example: logging would be a > separate topic). And make sure that your patches aren't line-wrapped. > > Thanks, > Jan > > -- > Siemens AG, Corporate Technology, CT T DE IT 1 > Corporate Competence Center Embedded Linux >