Displaying 1 result from an estimated 1 matches for "public_internet_address".
2007 Apr 18
0
[Bridge] Virtual network and bridges
...0 0 eth0
I put 1 to /proc/sys/net/ip4/ip_forward to QEMU 1 and QEMU 2 and host, and here are the results I have:
I can ping all the computers from all the hosts.
Then I wanted to give internet access to everybody, so I added the rule:
iptables -A POSTROUTING -o eth0 -j SNAT --to-source <public_internet_address>.
The results: QEMU1 can access the net but not QEMU2, apparently netfilter doesn't want to
SNAT packets coming from QEMU2.(the packets are sent (from what I saw in tcpdump), with
the source address 192.168.1.5 to the internet).
So I investigated the problem and after adding some printks...