I am trying to make a cascade connection, but unfortunately, I cannot access the Internet. I have two VPS: the first one uses SecureNAT, and the second one uses Local Bridge. I set up the Local Bridge on VPS_2 with the help of the following link:
http://blog.lincoln.hk/blog/2013/05/17/ ... al-bridge/
On VPS_1, I enabled SecureNAT and set the default gateway to 192.168.7.1, but there is no Internet access through this gateway for the clients on VPS_1.
VPS_1 (SecureNAT) ---> (CASCADE Connection) ---> VPS_2 (Has access to Internet and it has dhcp server on interface tap_soft)
Code: Select all
VPS_2:
tap_soft: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.7.1 netmask 255.255.255.0 broadcast 192.168.7.255
inet6 fe80::5c69:fcff:fe10:719b prefixlen 64 scopeid 0x20<link>
ether 5e:69:fc:10:71:9b txqueuelen 1000 (Ethernet)
RX packets 6873 bytes 784195 (784.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 945 bytes 78022 (78.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 tap_soft
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all -- 192.168.7.0/24 anywhere to:VPS_2-IP