Page 1 of 1

Access to a PC in an other tunnel - dosen't work

Posted: Thu Apr 08, 2021 6:42 pm
by gerdchen07

I have set up two VPN tunnels on a server. You shouldn't get from the network behind one tunnel into the network behind the other tunnel. To do this, the following entry in the iptables was previously required:

Code: Select all

iptables -I FORWARD -s -d -j DROP
iptables -I FORWARD -s -d -j DROP
A computer that is located behind tunnel number 1 should, however, also be accessible on a certain port from the network behind tunnel number 2. For this I had set up the following entry in the iptables:

Code: Select all

iptables -I FORWARD -s -p tcp --dport 15003 -d -j ACCEPT
So far it has worked very well. For some time now, that doesn't seem to work anymore. The only change that I can understand is an update that was performed on the server. I checked the settings, they are the same as before. Could it be that the update has changed something that prevents this option or ensures that it has to be set up differently?

Here some information about OpenVPN:

Code: Select all

openvpn --version
OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jan  9 2019
library versions: OpenSSL 1.0.2g  1 Mar 2016, LZO 2.08