[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [DONATE]

Bridge internet eth0-br0-eth1

Hi all , I am new inside this forum.
I wish connect two virtual machines in bridge. Define enp0s3 - br0 - enp0s8
First virtual has enp0s3 (nat with internet connection) and enp0s8 (not attacched). This settings are inside virtualbox settings.
Second virtual has just bridge with enp0s8 inside setting virtualbox.
Second virtual must take internet connection by first virtual.

Now I do inside first virtual

ip link add name br0 type bridge

ip link set enp0s8 promisc on

ip link set dev enp0s8 master br0

ip link set up dev br0

ip link set enp0s8 promisc off

ip addr add 10.0.3.10/24 broadcast 10.0.3.255 dev br0
ip addr add 10.0.3.15/24 broadcast 10.0.3.255 dev enp0s8

ip route add default via 10.0.3.10 dev br0 proto static metric 101
ip route add 10.0.3.10 via 10.0.3.15 dev enp0s8 proto static metric 101

iptables-restore nat
-A PREROUTING --src 0.0.0.0 -j DNAT --to-destination 10.0.3.10
-A POSTROUTING --src 10.0.3.10 -j SNAT --to 0.0.0.0

ip route show
default via 10.0.2.2 dev enp0s3 proto static metric 100
default via 10.0.3.10 dev br0 proto static metric 101
10.0.2.0/24 dev enp0s3 proto kernel scope link src 10.0.2.15 metric 100
10.0.3.0/24 dev br0 proto kernel scope link src 10.0.3.10
10.0.3.0/24 dev enp0s8 proto kernel scope link src 10.0.3.15
10.0.3.10 via 10.0.3.15 dev enp0s8 proto static metric 101

Now I turn on second virtual (windows , debian , whonix , other distros) but it cant go internet

where am I wrong? Should you have the answer to do this connection correctly?
please help me.

[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Investors] [Priority Support] [Professional Support]