Hi !

I am still struggling with bridging setup (script is attached at the bottom) 
for 2-interface config on SuSE 10.2 and kernel 2.6.22

net -> eth1 - 83.xx.yy.zz
loc -> eth2 - 192.168.1.1 (also acts as router)

So, taking receipt from:
http://www1.shorewall.net/SimpleBridge.html


/etc/shorewall/interfaces:
#ZONE          INTERFACE       BROADCAST      OPTIONS
net eth1 detect tcpflags,norfc1918,routefilter,nosmurfs,logmartians
loc br0 192.168.1.255 routeback,bridge,tcpflags,detectnets,nosmurfs

/etc/shorewall/masq: <--- what should be here?
eth1                    br0

And finally, in Linux guest running under QEMU/KVM I could specify for example 
its network card (qtap0) with IP for example 192.168.1.10, netmask 
255.255.255.0 and default gateway 192.168.1.1.


Am I right or missing something?


******************************************************************************************
***   Bridging Script for QEMU/KVM from:
http://blog.cynapses.org/2007/07/12/qemu-kvm-internal-network-setup/
******************************************************************************************

#!/bin/bash

# id of the user running qemu (kvm)
USERID=1000

# number of TUN/TAP devices to setup
NUM_OF_DEVICES=2

case $1 in
        start)
                modprobe tun
                echo -n "Setting up bridge device br0"
                brctl addbr br0
                ifconfig br0 192.168.1.254 netmask 255.255.255.0 up
                for ((i=0; i < NUM_OF_DEVICES ; i++)); do
                        echo -n "Setting up "
                        tunctl -b -u $USERID -t qtap$i
                        brctl addif br0 qtap$i
                        ifconfig qtap$i up 0.0.0.0 promisc
                done
        ;;
        stop)
                for ((i=0; i < NUM_OF_DEVICES ; i++)); do
                        ifconfig qtap$i down
                        brctl delif br0 qtap$i
                        tunctl -d qtap$i
                done
                ifconfig br0 down
                brctl delbr br0
        ;;
        *)
                echo "Usage: $(basename $0) (start|stop)"
        ;;
esac


-------------------------------------------------------------------------
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/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to