Answer the question
In order to leave comments, you need to log in
Setting up routing on openvpn?
Good afternoon!
There is an openvpn server in one place, there is an office that is connected to this openvpn, the connection is made to openvpn by a kinetic router.
The task is that when I connect to openvpn I could get to the entire internal network.
The network that is used in the office is 192.168.0.*
Server IP address: 10.8.0.1 server network 192.168.1.*
I need that when I connect to openvpn I can access all machines by ip: 192.168.0.* and 1.0
Here is the setting server.conf:
port 1194
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
cipher AES-256-CBC
tls-auth ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ifconfig-pool-persist ipp.txt
keepalive 10 120
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
client-to-client
client
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote **** 1194
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
key-direction 1
verb 3
Answer the question
In order to leave comments, you need to log in
> The task is to
> I need
https://chtoby-pravilno.ru/chtoby/
> I can access all machines by ip: 192.168.0.* and 1.0
push "route 192.168.0.0 255.255.255.0"
push "route 192.168.1.0 255.255.255.0"
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j MASQUERADE
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question