Hi,
i have several network's i.e.
192.168.x.x
40.x.x.x
10.4.x.x
my vpn server assign 10.8.x.x address to clients.
So now i want to use vpn on a 10.4.x.x but this won't work. Is it because it is not allowed to use a 10.x.x.x network?
What can be the simplest way to handle this problem? I can not change the 10.4. address (=no solution).
thx!
What to do i same network address layout is used?!
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 13
- Joined: Sat Jul 08, 2017 8:31 pm
- Pippin
- Forum Team
- Posts: 1201
- Joined: Wed Jul 01, 2015 8:03 am
- Location: irc://irc.libera.chat:6697/openvpn
Re: What to do i same network address layout is used?!
Please see:
viewtopic.php?t=22603
viewtopic.php?t=22603
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp
Halton Arp
-
- OpenVpn Newbie
- Posts: 13
- Joined: Sat Jul 08, 2017 8:31 pm
Re: What to do i same network address layout is used?!
I've red this:
https://openvpn.net/community-resources ... e-subnets/
That means a subnet with 10.8.X.X should not conflict with 10.4.X.X -> OR?
Therefore maybe i have to search if there is a firewall blocking me...
https://openvpn.net/community-resources ... e-subnets/
That means a subnet with 10.8.X.X should not conflict with 10.4.X.X -> OR?
Therefore maybe i have to search if there is a firewall blocking me...
-
- OpenVPN Super User
- Posts: 310
- Joined: Tue Apr 12, 2011 6:22 am
Re: What to do i same network address layout is used?!
The subnet is determined by the subnet mask , but if your subnet mask is not lower than or equal to 12 bits (ie. 255.240.0.0) you're ok ... it's not conflicting
Beside that , should we just guess what your configs look like and answer to your questions based on that ?
If that's the case, you're on your own
Pippin pointed out that topic url for a reason
Beside that , should we just guess what your configs look like and answer to your questions based on that ?
If that's the case, you're on your own

Pippin pointed out that topic url for a reason
-
- OpenVpn Newbie
- Posts: 13
- Joined: Sat Jul 08, 2017 8:31 pm
Re: What to do i same network address layout is used?!
Oh thx guys. Now i know what's going on. For some reason the client do not uses my dns. It uses the ip from me and my gateway but not my dns...
therefore there was a resolv problem. For shortly fix i added 8.8.8.8 to /etc/resolv.conf and set this file write protected.
Now i have to look whats the problem why my dns is not pushed.
My Server file:
my client looks like:
Did i made something wrong hiere?
therefore there was a resolv problem. For shortly fix i added 8.8.8.8 to /etc/resolv.conf and set this file write protected.
Now i have to look whats the problem why my dns is not pushed.
My Server file:
Code: Select all
client-to-client
ca /etc/openvpn/ca.crt
cert /etc/openvpn/vpn-server.crt
dev tun
dh /etc/openvpn/dh2048.pem
keepalive 10 120
key /etc/openvpn/vpn-server.key
port 1194
proto udp
server 10.8.0.0 255.255.255.0
verb 3
push redirect-gateway def1
push dhcp-option DNS 192.168.1.1
push route 192.168.1.0 255.255.255.0
Code: Select all
dev tun
proto udp
log openvpn.log
verb 3
ca ca.crt
cert client_XXX.crt
key client_XXX.key
client
remote-cert-tls server
remote dyndns.XXXX.at 1194
script-security 2
up /etc/openvpn/update-resolv.conf
down /etc/openvpn/update-resolv.conf
-
- OpenVPN Super User
- Posts: 310
- Joined: Tue Apr 12, 2011 6:22 am
Re: What to do i same network address layout is used?!
what linux distribution are you using on your client?