No internet access when toggling `redirect-gateway` in OpenVPN client configCan't access the internet when connected to OpenVPN serverProblem linking two Cisco routers with a static routeOpenVPN redirect-gateway does not work on Windows 7?redirect packet to different gatewayOpenVPN server cannot ping client IPsOpenVPN running on Internet Gateway, so all private clients can access VPN with no configAccess OpenVPN client network from serverTwo-way routing for router and openvpn server subnetsHow to setup route to gateway on different subnet with MikroTik Routers?How to set up single client TAP/TUN on the client for my OpenVPN?
Is it safe to use two single-pole breakers for a 240 V circuit?
How can we allow remote players to effectively interact with a physical tabletop battle-map?
Motorola 6845 and bitwise graphics
A case where Bishop for knight isn't a good trade
Developers demotivated due to working on same project for more than 2 years
Why are BJTs common in output stages of power amplifiers?
How to describe a building set which is like LEGO without using the "LEGO" word?
Is there any good reason to write "it is easy to see"?
Why does SSL Labs now consider CBC suites weak?
Filter a data-frame and add a new column according to the given condition
Promotion comes with unexpected 24/7/365 on-call
Why do the lights go out when someone enters the dining room on this ship?
Why can't I share a one use code with anyone else?
Why was my Canon Speedlite 600EX triggering other flashes?
is it correct to say "When it started to rain, I was in the open air."
How to not get blinded by an attack at dawn
Was this seat-belt sign activation standard procedure?
What is this old US Air Force plane?
Is 12 minutes connection in Bristol Temple Meads long enough?
Were any toxic metals used in the International Space Station?
Formal Definition of Dot Product
Is there an academic word that means "to split hairs over"?
How to continually let my readers know what time it is in my story, in an organic way?
Can I say: "When was your train leaving?" if the train leaves in the future?
No internet access when toggling `redirect-gateway` in OpenVPN client config
Can't access the internet when connected to OpenVPN serverProblem linking two Cisco routers with a static routeOpenVPN redirect-gateway does not work on Windows 7?redirect packet to different gatewayOpenVPN server cannot ping client IPsOpenVPN running on Internet Gateway, so all private clients can access VPN with no configAccess OpenVPN client network from serverTwo-way routing for router and openvpn server subnetsHow to setup route to gateway on different subnet with MikroTik Routers?How to set up single client TAP/TUN on the client for my OpenVPN?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have a router with IP 192.168.1.1
subnetting 192.168.1.0/24
.
On that subnet, a Synology NAS has an IP of 192.168.1.181
and is running a VPN server using subnet 192.168.2.0/24
.
When I connect a client to that server from outside both networks, I get assigned 192.168.2.6
. From that client I can ping machines on 192.168.1.0/24
(192.168.1.17 & 192.168.1.181 for example) and 192.168.1.1
& 192.168.2.1
.
From machines already on 192.168.1.0/24
, I can ping the VPN client (192.168.2.6) after adding a static route of route add 192.168.2.0 mask 255.255.255.0 192.168.1.181
(windows).
Before adding the redirect-gateway
line to the client config, I would be able to access the internet while on the VPN but was unable to access local web services like a router service or the Synology NAS web service (running within 192.168.1.0/24). I thought this was maybe because the external IP (whatmyip.org) from a VPN client showed the same external address as if I was not connected to the VPN.
After adding the redirect-gateway
line to the client config, I verified I had the correct external IP (matches the 192.168.1.0/24 clients external IP) when connected but could not access external sites (google.com) but could access internal web services (192.168.1.1's & 192.168.1.181's).
What am I missing?
Weird observation, not sure why but the client (192.168.2.6) gets a DHCP & gateway server of 192.168.2.5
which as far as I know, isn't anything that exists. I can't ping it. 192.168.2.1 is definitely the VPN server and I can access it's web service (192.168.1.181 on 192.168.1.0/24
).
Connected client ipconfig /all
:
Description . . . . . . . . . . . : TAP-Windows Adapter V9
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.2.6(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Lease Obtained. . . . . . . . . . : Thursday, August 13, 2015 11:55:43 AM
Lease Expires . . . . . . . . . . : Friday, August 12, 2016 11:55:42 AM
Default Gateway . . . . . . . . . : 192.168.2.5
DHCP Server . . . . . . . . . . . : 192.168.2.5
DNS Servers . . . . . . . . . . . : 192.168.2.1
NetBIOS over Tcpip. . . . . . . . : Enabled
routing router openvpn subnet gateway
add a comment |
I have a router with IP 192.168.1.1
subnetting 192.168.1.0/24
.
On that subnet, a Synology NAS has an IP of 192.168.1.181
and is running a VPN server using subnet 192.168.2.0/24
.
When I connect a client to that server from outside both networks, I get assigned 192.168.2.6
. From that client I can ping machines on 192.168.1.0/24
(192.168.1.17 & 192.168.1.181 for example) and 192.168.1.1
& 192.168.2.1
.
From machines already on 192.168.1.0/24
, I can ping the VPN client (192.168.2.6) after adding a static route of route add 192.168.2.0 mask 255.255.255.0 192.168.1.181
(windows).
Before adding the redirect-gateway
line to the client config, I would be able to access the internet while on the VPN but was unable to access local web services like a router service or the Synology NAS web service (running within 192.168.1.0/24). I thought this was maybe because the external IP (whatmyip.org) from a VPN client showed the same external address as if I was not connected to the VPN.
After adding the redirect-gateway
line to the client config, I verified I had the correct external IP (matches the 192.168.1.0/24 clients external IP) when connected but could not access external sites (google.com) but could access internal web services (192.168.1.1's & 192.168.1.181's).
What am I missing?
Weird observation, not sure why but the client (192.168.2.6) gets a DHCP & gateway server of 192.168.2.5
which as far as I know, isn't anything that exists. I can't ping it. 192.168.2.1 is definitely the VPN server and I can access it's web service (192.168.1.181 on 192.168.1.0/24
).
Connected client ipconfig /all
:
Description . . . . . . . . . . . : TAP-Windows Adapter V9
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.2.6(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Lease Obtained. . . . . . . . . . : Thursday, August 13, 2015 11:55:43 AM
Lease Expires . . . . . . . . . . : Friday, August 12, 2016 11:55:42 AM
Default Gateway . . . . . . . . . : 192.168.2.5
DHCP Server . . . . . . . . . . . : 192.168.2.5
DNS Servers . . . . . . . . . . . : 192.168.2.1
NetBIOS over Tcpip. . . . . . . . : Enabled
routing router openvpn subnet gateway
add a comment |
I have a router with IP 192.168.1.1
subnetting 192.168.1.0/24
.
On that subnet, a Synology NAS has an IP of 192.168.1.181
and is running a VPN server using subnet 192.168.2.0/24
.
When I connect a client to that server from outside both networks, I get assigned 192.168.2.6
. From that client I can ping machines on 192.168.1.0/24
(192.168.1.17 & 192.168.1.181 for example) and 192.168.1.1
& 192.168.2.1
.
From machines already on 192.168.1.0/24
, I can ping the VPN client (192.168.2.6) after adding a static route of route add 192.168.2.0 mask 255.255.255.0 192.168.1.181
(windows).
Before adding the redirect-gateway
line to the client config, I would be able to access the internet while on the VPN but was unable to access local web services like a router service or the Synology NAS web service (running within 192.168.1.0/24). I thought this was maybe because the external IP (whatmyip.org) from a VPN client showed the same external address as if I was not connected to the VPN.
After adding the redirect-gateway
line to the client config, I verified I had the correct external IP (matches the 192.168.1.0/24 clients external IP) when connected but could not access external sites (google.com) but could access internal web services (192.168.1.1's & 192.168.1.181's).
What am I missing?
Weird observation, not sure why but the client (192.168.2.6) gets a DHCP & gateway server of 192.168.2.5
which as far as I know, isn't anything that exists. I can't ping it. 192.168.2.1 is definitely the VPN server and I can access it's web service (192.168.1.181 on 192.168.1.0/24
).
Connected client ipconfig /all
:
Description . . . . . . . . . . . : TAP-Windows Adapter V9
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.2.6(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Lease Obtained. . . . . . . . . . : Thursday, August 13, 2015 11:55:43 AM
Lease Expires . . . . . . . . . . : Friday, August 12, 2016 11:55:42 AM
Default Gateway . . . . . . . . . : 192.168.2.5
DHCP Server . . . . . . . . . . . : 192.168.2.5
DNS Servers . . . . . . . . . . . : 192.168.2.1
NetBIOS over Tcpip. . . . . . . . : Enabled
routing router openvpn subnet gateway
I have a router with IP 192.168.1.1
subnetting 192.168.1.0/24
.
On that subnet, a Synology NAS has an IP of 192.168.1.181
and is running a VPN server using subnet 192.168.2.0/24
.
When I connect a client to that server from outside both networks, I get assigned 192.168.2.6
. From that client I can ping machines on 192.168.1.0/24
(192.168.1.17 & 192.168.1.181 for example) and 192.168.1.1
& 192.168.2.1
.
From machines already on 192.168.1.0/24
, I can ping the VPN client (192.168.2.6) after adding a static route of route add 192.168.2.0 mask 255.255.255.0 192.168.1.181
(windows).
Before adding the redirect-gateway
line to the client config, I would be able to access the internet while on the VPN but was unable to access local web services like a router service or the Synology NAS web service (running within 192.168.1.0/24). I thought this was maybe because the external IP (whatmyip.org) from a VPN client showed the same external address as if I was not connected to the VPN.
After adding the redirect-gateway
line to the client config, I verified I had the correct external IP (matches the 192.168.1.0/24 clients external IP) when connected but could not access external sites (google.com) but could access internal web services (192.168.1.1's & 192.168.1.181's).
What am I missing?
Weird observation, not sure why but the client (192.168.2.6) gets a DHCP & gateway server of 192.168.2.5
which as far as I know, isn't anything that exists. I can't ping it. 192.168.2.1 is definitely the VPN server and I can access it's web service (192.168.1.181 on 192.168.1.0/24
).
Connected client ipconfig /all
:
Description . . . . . . . . . . . : TAP-Windows Adapter V9
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.2.6(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Lease Obtained. . . . . . . . . . : Thursday, August 13, 2015 11:55:43 AM
Lease Expires . . . . . . . . . . : Friday, August 12, 2016 11:55:42 AM
Default Gateway . . . . . . . . . : 192.168.2.5
DHCP Server . . . . . . . . . . . : 192.168.2.5
DNS Servers . . . . . . . . . . . : 192.168.2.1
NetBIOS over Tcpip. . . . . . . . : Enabled
routing router openvpn subnet gateway
routing router openvpn subnet gateway
edited Aug 13 '15 at 16:04
Enigma
asked Aug 13 '15 at 15:11
EnigmaEnigma
110128
110128
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You must make sure your router has an outbound NAT entry for the VPN 192.168.2.0/24 network and that DNS has been set.
See this: https://openvpn.net/index.php/open-source/documentation/howto.html
You must redirect the gateway: push "redirect-gateway def1"
Make sure the client has DNS set or push it with openVPN using push "dhcp-option DNS x.x.x.x"
The final step as mentioned above is that your router must have outbound NAT configured for your VPN network, otherwise you won't get out onto the internet.
How does thepush "redirect-gateway def1"
? What isdef1
? I fiddled withdhcp-option DNS 192.168.2.1
in the client config. Not sure which DNS address I should be pointing to though.
– Enigma
Aug 13 '15 at 16:08
1
From the OpenVPN docs "def1 -- Use this flag to override the default gateway by using 0.0.0.0/1 and 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of overriding but not wiping out the original default gateway." You can choose any DNS you want, public or internal. Have you checked out the NAT on your router?
– tomstephens89
Aug 13 '15 at 16:15
That's a pretty huge howto link. Are there particular parts you could point me to that could help me set up an oubound NAT? Searched for outbound and got nothing.
– Enigma
Aug 13 '15 at 16:15
Outbound NAT has nothing to do with OpenVPN itself, it is a feature of IP networking that allows a router to translate addresses on one network, to an address on another. It will be a configuration option on your router somewhere and you must tell it to NAT your VPN range to your public IP. Be warned though, I have never seen an option to add additional outbound NAT set ups in any 'domestic/home' routers I have used.
– tomstephens89
Aug 13 '15 at 16:18
So is the idea that http requests coming from 192.168.2.6 will get redirected to an IP on 192.168.1.0 ? Hmm... So I have a farily new model of a verizon router but it is still very much a domestic/home router. It has static routing capabilities though.
– Enigma
Aug 13 '15 at 16:22
|
show 2 more comments
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f713963%2fno-internet-access-when-toggling-redirect-gateway-in-openvpn-client-config%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You must make sure your router has an outbound NAT entry for the VPN 192.168.2.0/24 network and that DNS has been set.
See this: https://openvpn.net/index.php/open-source/documentation/howto.html
You must redirect the gateway: push "redirect-gateway def1"
Make sure the client has DNS set or push it with openVPN using push "dhcp-option DNS x.x.x.x"
The final step as mentioned above is that your router must have outbound NAT configured for your VPN network, otherwise you won't get out onto the internet.
How does thepush "redirect-gateway def1"
? What isdef1
? I fiddled withdhcp-option DNS 192.168.2.1
in the client config. Not sure which DNS address I should be pointing to though.
– Enigma
Aug 13 '15 at 16:08
1
From the OpenVPN docs "def1 -- Use this flag to override the default gateway by using 0.0.0.0/1 and 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of overriding but not wiping out the original default gateway." You can choose any DNS you want, public or internal. Have you checked out the NAT on your router?
– tomstephens89
Aug 13 '15 at 16:15
That's a pretty huge howto link. Are there particular parts you could point me to that could help me set up an oubound NAT? Searched for outbound and got nothing.
– Enigma
Aug 13 '15 at 16:15
Outbound NAT has nothing to do with OpenVPN itself, it is a feature of IP networking that allows a router to translate addresses on one network, to an address on another. It will be a configuration option on your router somewhere and you must tell it to NAT your VPN range to your public IP. Be warned though, I have never seen an option to add additional outbound NAT set ups in any 'domestic/home' routers I have used.
– tomstephens89
Aug 13 '15 at 16:18
So is the idea that http requests coming from 192.168.2.6 will get redirected to an IP on 192.168.1.0 ? Hmm... So I have a farily new model of a verizon router but it is still very much a domestic/home router. It has static routing capabilities though.
– Enigma
Aug 13 '15 at 16:22
|
show 2 more comments
You must make sure your router has an outbound NAT entry for the VPN 192.168.2.0/24 network and that DNS has been set.
See this: https://openvpn.net/index.php/open-source/documentation/howto.html
You must redirect the gateway: push "redirect-gateway def1"
Make sure the client has DNS set or push it with openVPN using push "dhcp-option DNS x.x.x.x"
The final step as mentioned above is that your router must have outbound NAT configured for your VPN network, otherwise you won't get out onto the internet.
How does thepush "redirect-gateway def1"
? What isdef1
? I fiddled withdhcp-option DNS 192.168.2.1
in the client config. Not sure which DNS address I should be pointing to though.
– Enigma
Aug 13 '15 at 16:08
1
From the OpenVPN docs "def1 -- Use this flag to override the default gateway by using 0.0.0.0/1 and 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of overriding but not wiping out the original default gateway." You can choose any DNS you want, public or internal. Have you checked out the NAT on your router?
– tomstephens89
Aug 13 '15 at 16:15
That's a pretty huge howto link. Are there particular parts you could point me to that could help me set up an oubound NAT? Searched for outbound and got nothing.
– Enigma
Aug 13 '15 at 16:15
Outbound NAT has nothing to do with OpenVPN itself, it is a feature of IP networking that allows a router to translate addresses on one network, to an address on another. It will be a configuration option on your router somewhere and you must tell it to NAT your VPN range to your public IP. Be warned though, I have never seen an option to add additional outbound NAT set ups in any 'domestic/home' routers I have used.
– tomstephens89
Aug 13 '15 at 16:18
So is the idea that http requests coming from 192.168.2.6 will get redirected to an IP on 192.168.1.0 ? Hmm... So I have a farily new model of a verizon router but it is still very much a domestic/home router. It has static routing capabilities though.
– Enigma
Aug 13 '15 at 16:22
|
show 2 more comments
You must make sure your router has an outbound NAT entry for the VPN 192.168.2.0/24 network and that DNS has been set.
See this: https://openvpn.net/index.php/open-source/documentation/howto.html
You must redirect the gateway: push "redirect-gateway def1"
Make sure the client has DNS set or push it with openVPN using push "dhcp-option DNS x.x.x.x"
The final step as mentioned above is that your router must have outbound NAT configured for your VPN network, otherwise you won't get out onto the internet.
You must make sure your router has an outbound NAT entry for the VPN 192.168.2.0/24 network and that DNS has been set.
See this: https://openvpn.net/index.php/open-source/documentation/howto.html
You must redirect the gateway: push "redirect-gateway def1"
Make sure the client has DNS set or push it with openVPN using push "dhcp-option DNS x.x.x.x"
The final step as mentioned above is that your router must have outbound NAT configured for your VPN network, otherwise you won't get out onto the internet.
answered Aug 13 '15 at 16:03
tomstephens89tomstephens89
661823
661823
How does thepush "redirect-gateway def1"
? What isdef1
? I fiddled withdhcp-option DNS 192.168.2.1
in the client config. Not sure which DNS address I should be pointing to though.
– Enigma
Aug 13 '15 at 16:08
1
From the OpenVPN docs "def1 -- Use this flag to override the default gateway by using 0.0.0.0/1 and 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of overriding but not wiping out the original default gateway." You can choose any DNS you want, public or internal. Have you checked out the NAT on your router?
– tomstephens89
Aug 13 '15 at 16:15
That's a pretty huge howto link. Are there particular parts you could point me to that could help me set up an oubound NAT? Searched for outbound and got nothing.
– Enigma
Aug 13 '15 at 16:15
Outbound NAT has nothing to do with OpenVPN itself, it is a feature of IP networking that allows a router to translate addresses on one network, to an address on another. It will be a configuration option on your router somewhere and you must tell it to NAT your VPN range to your public IP. Be warned though, I have never seen an option to add additional outbound NAT set ups in any 'domestic/home' routers I have used.
– tomstephens89
Aug 13 '15 at 16:18
So is the idea that http requests coming from 192.168.2.6 will get redirected to an IP on 192.168.1.0 ? Hmm... So I have a farily new model of a verizon router but it is still very much a domestic/home router. It has static routing capabilities though.
– Enigma
Aug 13 '15 at 16:22
|
show 2 more comments
How does thepush "redirect-gateway def1"
? What isdef1
? I fiddled withdhcp-option DNS 192.168.2.1
in the client config. Not sure which DNS address I should be pointing to though.
– Enigma
Aug 13 '15 at 16:08
1
From the OpenVPN docs "def1 -- Use this flag to override the default gateway by using 0.0.0.0/1 and 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of overriding but not wiping out the original default gateway." You can choose any DNS you want, public or internal. Have you checked out the NAT on your router?
– tomstephens89
Aug 13 '15 at 16:15
That's a pretty huge howto link. Are there particular parts you could point me to that could help me set up an oubound NAT? Searched for outbound and got nothing.
– Enigma
Aug 13 '15 at 16:15
Outbound NAT has nothing to do with OpenVPN itself, it is a feature of IP networking that allows a router to translate addresses on one network, to an address on another. It will be a configuration option on your router somewhere and you must tell it to NAT your VPN range to your public IP. Be warned though, I have never seen an option to add additional outbound NAT set ups in any 'domestic/home' routers I have used.
– tomstephens89
Aug 13 '15 at 16:18
So is the idea that http requests coming from 192.168.2.6 will get redirected to an IP on 192.168.1.0 ? Hmm... So I have a farily new model of a verizon router but it is still very much a domestic/home router. It has static routing capabilities though.
– Enigma
Aug 13 '15 at 16:22
How does the
push "redirect-gateway def1"
? What is def1
? I fiddled with dhcp-option DNS 192.168.2.1
in the client config. Not sure which DNS address I should be pointing to though.– Enigma
Aug 13 '15 at 16:08
How does the
push "redirect-gateway def1"
? What is def1
? I fiddled with dhcp-option DNS 192.168.2.1
in the client config. Not sure which DNS address I should be pointing to though.– Enigma
Aug 13 '15 at 16:08
1
1
From the OpenVPN docs "def1 -- Use this flag to override the default gateway by using 0.0.0.0/1 and 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of overriding but not wiping out the original default gateway." You can choose any DNS you want, public or internal. Have you checked out the NAT on your router?
– tomstephens89
Aug 13 '15 at 16:15
From the OpenVPN docs "def1 -- Use this flag to override the default gateway by using 0.0.0.0/1 and 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of overriding but not wiping out the original default gateway." You can choose any DNS you want, public or internal. Have you checked out the NAT on your router?
– tomstephens89
Aug 13 '15 at 16:15
That's a pretty huge howto link. Are there particular parts you could point me to that could help me set up an oubound NAT? Searched for outbound and got nothing.
– Enigma
Aug 13 '15 at 16:15
That's a pretty huge howto link. Are there particular parts you could point me to that could help me set up an oubound NAT? Searched for outbound and got nothing.
– Enigma
Aug 13 '15 at 16:15
Outbound NAT has nothing to do with OpenVPN itself, it is a feature of IP networking that allows a router to translate addresses on one network, to an address on another. It will be a configuration option on your router somewhere and you must tell it to NAT your VPN range to your public IP. Be warned though, I have never seen an option to add additional outbound NAT set ups in any 'domestic/home' routers I have used.
– tomstephens89
Aug 13 '15 at 16:18
Outbound NAT has nothing to do with OpenVPN itself, it is a feature of IP networking that allows a router to translate addresses on one network, to an address on another. It will be a configuration option on your router somewhere and you must tell it to NAT your VPN range to your public IP. Be warned though, I have never seen an option to add additional outbound NAT set ups in any 'domestic/home' routers I have used.
– tomstephens89
Aug 13 '15 at 16:18
So is the idea that http requests coming from 192.168.2.6 will get redirected to an IP on 192.168.1.0 ? Hmm... So I have a farily new model of a verizon router but it is still very much a domestic/home router. It has static routing capabilities though.
– Enigma
Aug 13 '15 at 16:22
So is the idea that http requests coming from 192.168.2.6 will get redirected to an IP on 192.168.1.0 ? Hmm... So I have a farily new model of a verizon router but it is still very much a domestic/home router. It has static routing capabilities though.
– Enigma
Aug 13 '15 at 16:22
|
show 2 more comments
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f713963%2fno-internet-access-when-toggling-redirect-gateway-in-openvpn-client-config%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown