cascade connection between SecureNAT and Local Bridge servers

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
json-ltl
Posts: 4
Joined: Fri Jul 07, 2023 12:21 pm

cascade connection between SecureNAT and Local Bridge servers

Post by json-ltl » Fri Jul 07, 2023 12:50 pm

Hello,

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

Last edited by json-ltl on Fri Jul 07, 2023 9:14 pm, edited 1 time in total.

solo
Posts: 1287
Joined: Sun Feb 14, 2021 10:31 am

Re: cascade connection between SecureNAT and Local Bridge servers

Post by solo » Fri Jul 07, 2023 4:35 pm

Simply disable SecureNAT on VPS_1 to make it work.

json-ltl
Posts: 4
Joined: Fri Jul 07, 2023 12:21 pm

Re: cascade connection between SecureNAT and Local Bridge servers

Post by json-ltl » Fri Jul 07, 2023 7:14 pm

I need to use the SecureNAT on VPS_1. My question is how can i use SecureNAT while the VPS_2 use the Local Bridge.

solo
Posts: 1287
Joined: Sun Feb 14, 2021 10:31 am

Re: cascade connection between SecureNAT and Local Bridge servers

Post by solo » Fri Jul 07, 2023 7:41 pm

No, you don't need it at all, look https://www.vpnusers.com/viewtopic.php? ... 838#p97123
You've only replaced VPS_2 SecureNAT with Linux equivalents and call it a "Local Bridge".

json-ltl
Posts: 4
Joined: Fri Jul 07, 2023 12:21 pm

Re: cascade connection between SecureNAT and Local Bridge servers

Post by json-ltl » Fri Jul 07, 2023 8:52 pm

so we can't have a connection between SecureNAT and Local Bridge servers!? what IP address should i use for default gateway?

solo
Posts: 1287
Joined: Sun Feb 14, 2021 10:31 am

Re: cascade connection between SecureNAT and Local Bridge servers

Post by solo » Fri Jul 07, 2023 9:04 pm

Well, you can't have two DHCP servers. You've already set a DG as dhcp-option=tap_soft,3,192.168.7.1 - remember?

json-ltl
Posts: 4
Joined: Fri Jul 07, 2023 12:21 pm

Re: cascade connection between SecureNAT and Local Bridge servers

Post by json-ltl » Fri Jul 07, 2023 9:24 pm

When I use the SecureNat on both servers, I have access to the Internet. I set the default gateway on both servers to the same IP address using the SecureNat. Now, I wonder why I cannot access the Internet by changing from SecureNat to Local Bridge on VPS_2, as you said they are equivalent.

solo
Posts: 1287
Joined: Sun Feb 14, 2021 10:31 am

Re: cascade connection between SecureNAT and Local Bridge servers

Post by solo » Fri Jul 07, 2023 9:36 pm

Re-read previous posts.

Post Reply