i have a task, where i should create br1 without link to eth* and give to this br1 access to internet. I have CentOS7. I have created the interface br1:
DEVICE=br1
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NM_CONTROLLED=no
In iptables i have written this:
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j SNAT --to-source 192.168.122.1
192.168.122.1 for example my main interface, that has access to internet.
My question: it is enough for get access to internet from my virtual machine on KVM, or i need do something else. Maybe i need some FORWARD rules. Because virbr0 interface working, but my br1 no.