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

host+vpn+vm1+whonixgateaway

Hi all , in this scenario are two vistual machines
the first virtual machine is natted with host under vpn. this virtual has internet connection.
the first virtual has 2 adapters: nat(eth0) and “not attached”(eth1) adapter
the second virtual machine has bridge adapter(eth1)
All theese adapters are configured inside virtualbox settings.
sysctl.conf net.ipv4.forward=1

after ifconfig eth1 10.0.3.15 netmask 255.255.255.0 broadcast 10.0.3.255
ip route show
default via 10.0.2.2 dev eth0 proto static metric 100
10.0.2.0/24 dev eth0 proto kernel scope link src 10.0.2.15 metric 100
10.0.3.0/24 dev eth1 proto kernel scope link src 10.0.3.15

iptables-restore
nat
-A PREROUTING --src 0.0.0.0 -j DNAT --to-destination 10.0.3.15
-A POSTROUTING --src 10.0.3.15 -j SNAT --to 0.0.0.0
-A POSTROUTING -j MASQUERADE
filter
-A INPUT -i eth1 -j ACCEPT
-A OUTPUT -o eth1 -j ACCEPT
-A FORWARD -i eth0 -j ACCEPT
-A FORWARD -i eth1 -j ACCEPT

after ip route add default via 10.0.3.1 dev eth1 proto static metric 101
ip route show
default via 10.0.3.1 dev eth1 proto static metric 101
default via 10.0.2.2 dev eth0 proto static metric 100
10.0.2.0/24 dev eth0 proto kernel scope link src 10.0.2.15 metric 100
10.0.3.0/24 dev eth1 proto kernel scope link src 10.0.3.15

the first virtual is debian , the second virtual is choosing between debian, windows and others distros.
after all this commands I can’t have internet connection to second virtual machine.
where is wrong?
please help me
I am generous

Sounds crazy! What exactly are you trying to do? Enabling ip forwarding is asking for leaks

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