How to route Client OpenVPN in LAN on Mac OS X OpenVPN Server
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have configured an OpenVPN Server on my Mac OS X High Sierra.
I did that using Easy RSA 3.04 which I had downloaded from github, and Tunnelblick to start and stop the server.
My LAN network is: 192.168.100.0/24, the Server IP is: 192.168.100.10 and the Gateway is: 192.168.100.1. The VPN network is the OpenVPN default 10.8.0.0/24 with server 10.8.0.1
"All works" but after the connection, the client can reach the Server LAN. In the OpenVPN server.conf, I put the following:
dev tun
proto udp
port 1194
ca ca.crt
cert server.crt
key server.key
dh dh.pem
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
route 192.168.100.0 255.255.255.0
client-config-dir /OpenVPN/ccd
push "route 192.186.100.0 255.255.255.0 192.168.100.1 1"
client-to-client
push "route 192.168.100.0 255.255.255.0"
keepalive 10 120
remote-cert-tls client
tls-version-min 1.2
tls-auth ta.key 0
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
crl-verify crl.pem
status-version 3
verb 1
Then I have abilitated the forwarding:
sudo sysctl -w net.inet.ip.forwarding=1
And after server connection the, results of the command:
netstat -rn
is:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.100.1 UGSc 92 485 en0
10.8/24 10.8.0.1 UGSc 0 0 utun1
10.8.0.1 10.8.0.1 UH 1 0 utun1
It seems that something is not correct in the routing of the OpenVPN server, but after several tests nothing works.
Can someone help me?
osx openvpn
add a comment |Â
up vote
0
down vote
favorite
I have configured an OpenVPN Server on my Mac OS X High Sierra.
I did that using Easy RSA 3.04 which I had downloaded from github, and Tunnelblick to start and stop the server.
My LAN network is: 192.168.100.0/24, the Server IP is: 192.168.100.10 and the Gateway is: 192.168.100.1. The VPN network is the OpenVPN default 10.8.0.0/24 with server 10.8.0.1
"All works" but after the connection, the client can reach the Server LAN. In the OpenVPN server.conf, I put the following:
dev tun
proto udp
port 1194
ca ca.crt
cert server.crt
key server.key
dh dh.pem
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
route 192.168.100.0 255.255.255.0
client-config-dir /OpenVPN/ccd
push "route 192.186.100.0 255.255.255.0 192.168.100.1 1"
client-to-client
push "route 192.168.100.0 255.255.255.0"
keepalive 10 120
remote-cert-tls client
tls-version-min 1.2
tls-auth ta.key 0
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
crl-verify crl.pem
status-version 3
verb 1
Then I have abilitated the forwarding:
sudo sysctl -w net.inet.ip.forwarding=1
And after server connection the, results of the command:
netstat -rn
is:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.100.1 UGSc 92 485 en0
10.8/24 10.8.0.1 UGSc 0 0 utun1
10.8.0.1 10.8.0.1 UH 1 0 utun1
It seems that something is not correct in the routing of the OpenVPN server, but after several tests nothing works.
Can someone help me?
osx openvpn
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have configured an OpenVPN Server on my Mac OS X High Sierra.
I did that using Easy RSA 3.04 which I had downloaded from github, and Tunnelblick to start and stop the server.
My LAN network is: 192.168.100.0/24, the Server IP is: 192.168.100.10 and the Gateway is: 192.168.100.1. The VPN network is the OpenVPN default 10.8.0.0/24 with server 10.8.0.1
"All works" but after the connection, the client can reach the Server LAN. In the OpenVPN server.conf, I put the following:
dev tun
proto udp
port 1194
ca ca.crt
cert server.crt
key server.key
dh dh.pem
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
route 192.168.100.0 255.255.255.0
client-config-dir /OpenVPN/ccd
push "route 192.186.100.0 255.255.255.0 192.168.100.1 1"
client-to-client
push "route 192.168.100.0 255.255.255.0"
keepalive 10 120
remote-cert-tls client
tls-version-min 1.2
tls-auth ta.key 0
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
crl-verify crl.pem
status-version 3
verb 1
Then I have abilitated the forwarding:
sudo sysctl -w net.inet.ip.forwarding=1
And after server connection the, results of the command:
netstat -rn
is:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.100.1 UGSc 92 485 en0
10.8/24 10.8.0.1 UGSc 0 0 utun1
10.8.0.1 10.8.0.1 UH 1 0 utun1
It seems that something is not correct in the routing of the OpenVPN server, but after several tests nothing works.
Can someone help me?
osx openvpn
I have configured an OpenVPN Server on my Mac OS X High Sierra.
I did that using Easy RSA 3.04 which I had downloaded from github, and Tunnelblick to start and stop the server.
My LAN network is: 192.168.100.0/24, the Server IP is: 192.168.100.10 and the Gateway is: 192.168.100.1. The VPN network is the OpenVPN default 10.8.0.0/24 with server 10.8.0.1
"All works" but after the connection, the client can reach the Server LAN. In the OpenVPN server.conf, I put the following:
dev tun
proto udp
port 1194
ca ca.crt
cert server.crt
key server.key
dh dh.pem
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
route 192.168.100.0 255.255.255.0
client-config-dir /OpenVPN/ccd
push "route 192.186.100.0 255.255.255.0 192.168.100.1 1"
client-to-client
push "route 192.168.100.0 255.255.255.0"
keepalive 10 120
remote-cert-tls client
tls-version-min 1.2
tls-auth ta.key 0
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
crl-verify crl.pem
status-version 3
verb 1
Then I have abilitated the forwarding:
sudo sysctl -w net.inet.ip.forwarding=1
And after server connection the, results of the command:
netstat -rn
is:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.100.1 UGSc 92 485 en0
10.8/24 10.8.0.1 UGSc 0 0 utun1
10.8.0.1 10.8.0.1 UH 1 0 utun1
It seems that something is not correct in the routing of the OpenVPN server, but after several tests nothing works.
Can someone help me?
osx openvpn
osx openvpn
edited Sep 19 at 14:42
Goro
6,16552762
6,16552762
asked Sep 19 at 14:36
Paolo Bertolli
11
11
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f470035%2fhow-to-route-client-openvpn-in-lan-on-mac-os-x-openvpn-server%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password