B
B
Bremned2014-09-07 20:03:00
openvpn
Bremned, 2014-09-07 20:03:00

How to configure vlan raised via openvpn on windows?

Local network 192.168.1.*
VPN network 10.8.0.* Server-
side settings:
server 10.8.0.0 255.255.255.0
push "route 192.168.1.0 255.255.255.0"
route 192.168.1.0 255.255.255.0 10.8.0.0
client-to- client
in the registry, the IPEnableRouter parameter is set to 1
On the client side settings:
push "route 192.168.1.0 255.255.255.0"
On the router side in the local network:
NAT is enabled
forwarded external port 1194 to server port 1194 via UDP
Routing 10.8.0.0 255.255.255.0 10.8 .0.1
The server is not a router. IP addresses are given to clients and the vpn server, but pings do not reach each other, when pinging, an error ": network address is not available" is issued.
Tell me which way to go?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cool Admin, 2014-09-07
@ifaustrue

Colleague, in the question the 802.1q protocol does not smell, what does VLAN have to do with it?
And in essence, you would tell in more detail what you are writing about

in the registry, the IPEnableRouter parameter is set to 1
and then
The server is not a router
, well, or draw a network diagram. And the config wouldn't hurt.

B
Bremned, 2014-09-07
@Bremned

I thought that the private network is also virtual, because it is built on top of the existing architecture.
In the registry, I registered this parameter for routing IP packets between networks. I wrote about the fact that the server is not a router to indicate that the main traffic still passes through the router (router). The rest of the config is standard:

proto udp
dev tun

ca ca.crt
cert server.crt
key server.key 
dh dh1024.pem

server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0"
route 192.168.1.0 255.255.255.0 10.8.0.0

client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3

Routing table:
1	10.8.0.1	255.255.255.255	0.0.0.0	        WAN
2	"Внешний IP"	255.255.255.252	0.0.0.0	        WAN
3	10.8.0.0	255.255.255.0	10.8.0.1	WAN
4	192.168.1.0	255.255.255.0	0.0.0.0	        LAN & WLAN
5	239.0.0.0	255.0.0.0	0.0.0.0	        LAN & WLAN
6	0.0.0.0	        0.0.0.0	        "Внешний IP"	WAN

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question