Eu tenho comentários e sugestões. Os comentários são:
1) 'eth0' and 'eth2' can perfectly live without ip4 address.
An ip4 address is not mandatory at all.
2) 'eth2' seems to be dummy.
3) Virtual Ethernet is possible. Ethernet supports point-to-point.
Para mais informações sobre Ethernet virtual, eu recomendo lados como este ou that . lo
é virtual No entanto, um ssl / tls não é necessário para um túnel
Minhas sugestões são as seguintes:
1) 'eth0' and 'eth2' are ok. I don’t see any reason for changes.
You don’t need to add an ip address.
2) The mask of 'tun0' seems not to work. It could be that this is a bug or a feature.
I don’t know a workaround. Could you please crosscheck it?
3) You must setup also a route if you want to use a tunnel.
Please check with 'route -n' if you have set it.
I expect a route to '192.168.99.XYZ'.
4) If you haven’t set up any route, you can do it in 'interface' by adding this
'up iptables -t nat -A POSTROUTING -s 192.168.99.XYZ/255.255.255.252 -j MASQUERADE' and
'down iptables -t nat -A POSTROUTING -s 192.168.99.XYZ/255.255.255.252 -j MASQUERADE'
at the end of 'tun0'. Replace 'XYZ' with the ip address of server 2.
Maybe the mask at the ip addresses will work.
5) If you want to set a hardware address, you have to use the '-' instead of the ':'.
However, I doubt that 'hwaddress ether 00-00-00-00-00-00' will work because it is an
invalid address. But, give it a try.